David Liu

sdk module

@@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
9 <set> 9 <set>
10 <option value="$PROJECT_DIR$" /> 10 <option value="$PROJECT_DIR$" />
11 <option value="$PROJECT_DIR$/app" /> 11 <option value="$PROJECT_DIR$/app" />
  12 + <option value="$PROJECT_DIR$/livekit-android-sdk" />
12 </set> 13 </set>
13 </option> 14 </option>
14 <option name="resolveModulePerSourceSet" value="false" /> 15 <option name="resolveModulePerSourceSet" value="false" />
  1 +apply plugin: 'com.android.library'
  2 +apply plugin: 'kotlin-android'
  3 +apply plugin: 'kotlin-android-extensions'
  4 +android {
  5 + compileSdkVersion 29
  6 + buildToolsVersion "29.0.3"
  7 +
  8 +
  9 + defaultConfig {
  10 + minSdkVersion 21
  11 + targetSdkVersion 29
  12 + versionCode 1
  13 + versionName "1.0"
  14 +
  15 + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  16 + consumerProguardFiles 'consumer-rules.pro'
  17 + }
  18 +
  19 + buildTypes {
  20 + release {
  21 + minifyEnabled false
  22 + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  23 + }
  24 + }
  25 +
  26 + android {
  27 + compileOptions {
  28 + sourceCompatibility 1.8
  29 + targetCompatibility 1.8
  30 + }
  31 + }
  32 +}
  33 +
  34 +dependencies {
  35 + implementation fileTree(dir: 'libs', include: ['*.jar'])
  36 + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
  37 + implementation 'androidx.appcompat:appcompat:1.2.0'
  38 + implementation 'androidx.core:core-ktx:1.3.2'
  39 + testImplementation 'junit:junit:4.12'
  40 + androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  41 + androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  42 +}
  1 +# Add project specific ProGuard rules here.
  2 +# You can control the set of applied configuration files using the
  3 +# proguardFiles setting in build.gradle.
  4 +#
  5 +# For more details, see
  6 +# http://developer.android.com/guide/developing/tools/proguard.html
  7 +
  8 +# If your project uses WebView with JS, uncomment the following
  9 +# and specify the fully qualified class name to the JavaScript interface
  10 +# class:
  11 +#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  12 +# public *;
  13 +#}
  14 +
  15 +# Uncomment this to preserve the line number information for
  16 +# debugging stack traces.
  17 +#-keepattributes SourceFile,LineNumberTable
  18 +
  19 +# If you keep the line number information, uncomment this to
  20 +# hide the original source file name.
  21 +#-renamesourcefileattribute SourceFile
  1 +package io.livekit.android
  2 +
  3 +import androidx.test.platform.app.InstrumentationRegistry
  4 +import androidx.test.ext.junit.runners.AndroidJUnit4
  5 +
  6 +import org.junit.Test
  7 +import org.junit.runner.RunWith
  8 +
  9 +import org.junit.Assert.*
  10 +
  11 +/**
  12 + * Instrumented test, which will execute on an Android device.
  13 + *
  14 + * See [testing documentation](http://d.android.com/tools/testing).
  15 + */
  16 +@RunWith(AndroidJUnit4::class)
  17 +class ExampleInstrumentedTest {
  18 + @Test
  19 + fun useAppContext() {
  20 + // Context of the app under test.
  21 + val appContext = InstrumentationRegistry.getInstrumentation().targetContext
  22 + assertEquals("io.livekit.android.test", appContext.packageName)
  23 + }
  24 +}
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android"
  2 + package="io.livekit.android" />
  1 +<resources>
  2 + <string name="app_name">livekit-android-sdk</string>
  3 +</resources>
  1 +package io.livekit.android
  2 +
  3 +import org.junit.Test
  4 +
  5 +import org.junit.Assert.*
  6 +
  7 +/**
  8 + * Example local unit test, which will execute on the development machine (host).
  9 + *
  10 + * See [testing documentation](http://d.android.com/tools/testing).
  11 + */
  12 +class ExampleUnitTest {
  13 + @Test
  14 + fun addition_isCorrect() {
  15 + assertEquals(4, 2 + 2)
  16 + }
  17 +}
1 -include ':app' 1 +include ':app', ':livekit-android-sdk'
2 rootProject.name='livekit-android' 2 rootProject.name='livekit-android'