11import org.gradle.api.tasks.testing.logging.TestLogEvent
2- import org.jetbrains.kotlin.gradle.plugin.mpp.pm20.util.archivesName
32
43plugins {
54 id(" com.android.library" )
65 id(" org.jetbrains.kotlin.android" )
76}
87
9- // Required for Groovy compatiblity , which cannot use Consts.kt
8+ // Required for Groovy compatibility , which cannot use Consts.kt
109ext {
1110 set(" mavenGroupId" , SDKConsts .MAVEN_GROUP_ID )
1211 set(" mavenArtifact" , SDKConsts .MAVEN_ARTIFACT )
@@ -26,7 +25,6 @@ android {
2625
2726 defaultConfig {
2827 minSdk = SDKConsts .MIN_SDK
29- targetSdk = SDKConsts .TARGET_SDK
3028
3129 buildConfigField(" String" , " SDK_VERSION" , " \" ${SDKConsts .VERSION } \" " )
3230 buildConfigField(" Integer" , " API_LEVEL" , " ${SDKConsts .API_LEVEL } " )
@@ -71,7 +69,6 @@ android {
7169 }
7270
7371 testOptions {
74- execution = " ANDROIDX_TEST_ORCHESTRATOR"
7572 unitTests {
7673 isReturnDefaultValues = true
7774 isIncludeAndroidResources = true
@@ -116,42 +113,34 @@ tasks.register("printVersion") {
116113}
117114
118115dependencies {
116+
119117 val androidXLibraryVersion = SDKConsts .DependenciesVersions .ANDROIDX
120- val playServicesVersion = SDKConsts .DependenciesVersions .PLAY_SERVICES
121- val kotlinVersion = ProjectConsts .KOTLIN_VERSION
122118 val kotlinCoroutinesVersion = ProjectConsts .KOTLIN_COROUTINES_VERSION
123119
124- compileOnly(" com.google.android.gms:play-services-gcm:${playServicesVersion} " )
125- compileOnly(" com.google.android.gms:play-services-location:${playServicesVersion} " )
126- compileOnly(" com.google.android.gms:play-services-nearby:${playServicesVersion} " )
127- compileOnly(" com.google.android.play:review:2.0.1" )
128- compileOnly(" com.google.firebase:firebase-iid:21.1.0" )
129- compileOnly(" com.google.firebase:firebase-messaging:22.0.0" )
120+ api(" androidx.core:core:${androidXLibraryVersion} " )
121+
130122 compileOnly(project(" :sdk-stubs" ))
131123 compileOnly(project(" :sdk-processor" ))
132124 annotationProcessor(project(" :sdk-processor" ))
133125 lintChecks(project(" :sdk-lint" ))
134126
135- api( " androidx.core:core: ${androidXLibraryVersion} " )
136- compileOnly(" androidx.appcompat:appcompat: ${androidXLibraryVersion} " )
127+ compileOnly( " com.google.android.play:review:2.0.1 " )
128+ compileOnly(" com.google.firebase:firebase-messaging:22.0.0 " )
137129 compileOnly(" com.google.android.material:material:${androidXLibraryVersion} " )
130+ compileOnly(" androidx.appcompat:appcompat:${androidXLibraryVersion} " )
138131 compileOnly(" androidx.dynamicanimation:dynamicanimation:$androidXLibraryVersion " )
139132
140133 androidTestImplementation(" junit:junit:4.13.2" )
141- androidTestImplementation(" androidx.annotation:annotation:${androidXLibraryVersion} " )
142134 androidTestImplementation(" androidx.test:core-ktx:1.5.0" )
143135 androidTestImplementation(" androidx.test:rules:1.5.0" )
144136 androidTestImplementation(" androidx.test:runner:1.5.2" )
145137 androidTestImplementation(" androidx.test.ext:junit:1.1.5" )
146138 androidTestImplementation(" androidx.test.espresso:espresso-intents:3.5.1" )
147139 androidTestImplementation(" androidx.test.espresso:espresso-core:3.5.1" )
148140 androidTestImplementation(" androidx.test.ext:truth:1.5.0" )
149-
150- androidTestImplementation(" com.google.android.gms:play-services-gcm:${playServicesVersion} " )
151- androidTestImplementation(" com.google.android.gms:play-services-location:${playServicesVersion} " )
152- androidTestImplementation(" com.google.android.gms:play-services-nearby:${playServicesVersion} " )
153141 androidTestImplementation(" com.google.firebase:firebase-core:17.4.3" )
154142 androidTestImplementation(" androidx.appcompat:appcompat:${androidXLibraryVersion} " )
143+ androidTestImplementation(" androidx.annotation:annotation:${androidXLibraryVersion} " )
155144
156145 testImplementation(" junit:junit:4.13.2" )
157146 testImplementation(" org.mockito:mockito-core:5.4.0" )
@@ -162,9 +151,6 @@ dependencies {
162151 testImplementation(" androidx.test.espresso:espresso-intents:3.5.1" )
163152 testImplementation(" androidx.test.espresso:espresso-core:3.5.1" )
164153 testImplementation(" androidx.test.ext:truth:1.5.0" )
165- testImplementation(" com.google.android.gms:play-services-gcm:${playServicesVersion} " )
166- testImplementation(" com.google.android.gms:play-services-location:${playServicesVersion} " )
167- testImplementation(" com.google.android.gms:play-services-nearby:${playServicesVersion} " )
168154 testImplementation(" androidx.appcompat:appcompat:${androidXLibraryVersion} " )
169155
170156 testImplementation(" org.robolectric:robolectric:4.9.2" )
0 commit comments