@@ -18,25 +18,26 @@ plugins {
18
18
}
19
19
20
20
android {
21
- compileSdkVersion 30
21
+ compileSdkVersion 31
22
22
23
23
defaultConfig {
24
24
applicationId " com.googletest.firebase.appdistribution.testapp"
25
25
minSdkVersion 19
26
- targetSdkVersion 30
26
+ targetSdkVersion 31
27
27
versionName " 1.0"
28
28
versionCode 1
29
29
30
30
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
31
31
}
32
32
33
33
buildTypes {
34
- // This is so we can build the "release" variant for the "dev -app" (and the SDK) without
34
+ // This is so we can build the "release" variant for the "test -app" (and the SDK) without
35
35
// needing to have the app signed.
36
36
release {
37
37
initWith debug
38
38
}
39
39
}
40
+
40
41
compileOptions {
41
42
sourceCompatibility JavaVersion . VERSION_1_8
42
43
targetCompatibility JavaVersion . VERSION_1_8
@@ -50,15 +51,18 @@ dependencies {
50
51
// TODO(rachelprince): Add flag to build with public version of SDK
51
52
println (" Building with HEAD version ':firebase-appdistribution' of SDK" )
52
53
53
- // Debug variant uses full SDK
54
- debugImplementation project(' :firebase-appdistribution-api' ) // TODO(lkellogg): why doesn't this get picked up transitively?
55
- debugImplementation project(' :firebase-appdistribution' )
56
-
57
- // Release variant just uses the API, as if publishing to Play
58
- releaseImplementation project(' :firebase-appdistribution-api' )
54
+ // All variants use the API
55
+ implementation project(' :firebase-appdistribution-api:ktx' )
59
56
57
+ // In this test project we also need to explicitly declare these dependencies
58
+ implementation project(' :firebase-appdistribution-api' )
59
+ implementation project(' :firebase-common:ktx' )
60
60
implementation " com.google.android.gms:play-services-tasks:18.0.1"
61
61
62
+ // Debug uses the full implementation
63
+ debugImplementation project(' :firebase-appdistribution' )
64
+
65
+ // Other dependencies
62
66
implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion "
63
67
implementation ' androidx.core:core-ktx:1.5.0'
64
68
implementation " androidx.core:core:1.6.0"
0 commit comments