davidliu
Committed by GitHub

add replace note in build.gradle (#127)

@@ -33,6 +33,10 @@ android { @@ -33,6 +33,10 @@ android {
33 33
34 dependencies { 34 dependencies {
35 35
  36 + // If building the sample app outside the context of this repo, replace the following with:
  37 + // implementation "io.livekit:livekit-android:<version>"
  38 + implementation project(":livekit-android-sdk")
  39 +
36 implementation "androidx.core:core-ktx:${versions.androidx_core}" 40 implementation "androidx.core:core-ktx:${versions.androidx_core}"
37 implementation 'androidx.appcompat:appcompat:1.4.2' 41 implementation 'androidx.appcompat:appcompat:1.4.2'
38 implementation "androidx.activity:activity-ktx:1.5.1" 42 implementation "androidx.activity:activity-ktx:1.5.1"
@@ -43,7 +47,7 @@ dependencies { @@ -43,7 +47,7 @@ dependencies {
43 implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" 47 implementation "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}"
44 implementation 'com.google.android.material:material:1.6.1' 48 implementation 'com.google.android.material:material:1.6.1'
45 implementation 'androidx.constraintlayout:constraintlayout:2.1.4' 49 implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
46 - implementation project(":livekit-android-sdk") 50 +
47 testImplementation 'junit:junit:4.13.2' 51 testImplementation 'junit:junit:4.13.2'
48 androidTestImplementation 'androidx.test.ext:junit:1.1.3' 52 androidTestImplementation 'androidx.test.ext:junit:1.1.3'
49 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' 53 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
@@ -50,6 +50,10 @@ android { @@ -50,6 +50,10 @@ android {
50 50
51 dependencies { 51 dependencies {
52 52
  53 + // If building the sample app outside the context of this repo, replace the following with:
  54 + // api "io.livekit:livekit-android:<version>"
  55 + api project(":livekit-android-sdk")
  56 +
53 api "androidx.core:core-ktx:${versions.androidx_core}" 57 api "androidx.core:core-ktx:${versions.androidx_core}"
54 api 'androidx.appcompat:appcompat:1.4.0' 58 api 'androidx.appcompat:appcompat:1.4.0'
55 api 'com.google.android.material:material:1.4.0' 59 api 'com.google.android.material:material:1.4.0'
@@ -59,7 +63,6 @@ dependencies { @@ -59,7 +63,6 @@ dependencies {
59 api "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}" 63 api "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.androidx_lifecycle}"
60 api "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}" 64 api "androidx.lifecycle:lifecycle-common-java8:${versions.androidx_lifecycle}"
61 api "com.google.protobuf:protobuf-javalite:${versions.protobuf}" 65 api "com.google.protobuf:protobuf-javalite:${versions.protobuf}"
62 - api project(":livekit-android-sdk")  
63 api 'androidx.preference:preference-ktx:1.1.1' 66 api 'androidx.preference:preference-ktx:1.1.1'
64 // debugImplementation because LeakCanary should only run in debug builds. 67 // debugImplementation because LeakCanary should only run in debug builds.
65 debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1' 68 debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.8.1'
@@ -48,6 +48,11 @@ android { @@ -48,6 +48,11 @@ android {
48 } 48 }
49 49
50 dependencies { 50 dependencies {
  51 +
  52 + // Sample-app-common contains the livekit-android-sdk dependency and others
  53 + // as well as classes common to both sample apps.
  54 + implementation project(":sample-app-common")
  55 +
51 implementation fileTree(dir: 'libs', include: ['*.jar']) 56 implementation fileTree(dir: 'libs', include: ['*.jar'])
52 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 57 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
53 implementation deps.coroutines.lib 58 implementation deps.coroutines.lib
@@ -66,8 +71,6 @@ dependencies { @@ -66,8 +71,6 @@ dependencies {
66 implementation 'com.google.accompanist:accompanist-pager:0.19.0' 71 implementation 'com.google.accompanist:accompanist-pager:0.19.0'
67 implementation 'com.google.accompanist:accompanist-pager-indicators:0.19.0' 72 implementation 'com.google.accompanist:accompanist-pager-indicators:0.19.0'
68 implementation deps.timber 73 implementation deps.timber
69 - implementation project(":sample-app-common")  
70 - implementation project(":livekit-android-sdk")  
71 testImplementation 'junit:junit:4.+' 74 testImplementation 'junit:junit:4.+'
72 androidTestImplementation 'androidx.test.ext:junit:1.1.3' 75 androidTestImplementation 'androidx.test.ext:junit:1.1.3'
73 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' 76 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
@@ -34,6 +34,10 @@ android { @@ -34,6 +34,10 @@ android {
34 } 34 }
35 35
36 dependencies { 36 dependencies {
  37 + // Sample-app-common contains the livekit-android-sdk dependency and others
  38 + // as well as classes common to both sample apps.
  39 + implementation project(":sample-app-common")
  40 +
37 implementation fileTree(dir: 'libs', include: ['*.jar']) 41 implementation fileTree(dir: 'libs', include: ['*.jar'])
38 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 42 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
39 implementation deps.coroutines.lib 43 implementation deps.coroutines.lib
@@ -50,7 +54,6 @@ dependencies { @@ -50,7 +54,6 @@ dependencies {
50 implementation "com.github.lisawray.groupie:groupie:${versions.groupie}" 54 implementation "com.github.lisawray.groupie:groupie:${versions.groupie}"
51 implementation "com.github.lisawray.groupie:groupie-viewbinding:${versions.groupie}" 55 implementation "com.github.lisawray.groupie:groupie-viewbinding:${versions.groupie}"
52 implementation deps.timber 56 implementation deps.timber
53 - implementation project(":sample-app-common")  
54 testImplementation 'junit:junit:4.12' 57 testImplementation 'junit:junit:4.12'
55 androidTestImplementation 'androidx.test.ext:junit:1.1.2' 58 androidTestImplementation 'androidx.test.ext:junit:1.1.2'
56 androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' 59 androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'