diff --git a/play-services-base-core/build.gradle b/play-services-base-core/build.gradle index b9262817..809b3252 100644 --- a/play-services-base-core/build.gradle +++ b/play-services-base-core/build.gradle @@ -9,7 +9,7 @@ apply plugin: 'maven-publish' apply plugin: 'signing' dependencies { - api project(':play-services-basement') + api project(':play-services-basement-ktx') api "androidx.lifecycle:lifecycle-service:$lifecycleVersion" implementation "androidx.annotation:annotation:$annotationVersion" diff --git a/play-services-basement-ktx/build.gradle b/play-services-basement-ktx/build.gradle new file mode 100644 index 00000000..67109194 --- /dev/null +++ b/play-services-basement-ktx/build.gradle @@ -0,0 +1,32 @@ +/* + * SPDX-FileCopyrightText: 2021, microG Project Team + * SPDX-License-Identifier: Apache-2.0 + */ + +apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' +apply plugin: 'maven-publish' +apply plugin: 'signing' + +dependencies { + api project(":play-services-basement") + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" +} + +android { + compileSdkVersion androidCompileSdk + buildToolsVersion "$androidBuildVersionTools" + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + compileOptions { + sourceCompatibility = 1.8 + targetCompatibility = 1.8 + } +} + +apply from: '../gradle/publish-android.gradle' + +description = 'microG kotlin extensions for play-services-basement' diff --git a/play-services-basement-ktx/src/main/AndroidManifest.xml b/play-services-basement-ktx/src/main/AndroidManifest.xml new file mode 100644 index 00000000..1380d199 --- /dev/null +++ b/play-services-basement-ktx/src/main/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/play-services-basement/src/main/kotlin/com/google/android/gms/dynamic/ObjectWrapper.kt b/play-services-basement-ktx/src/main/kotlin/com/google/android/gms/dynamic/ObjectWrapper.kt similarity index 100% rename from play-services-basement/src/main/kotlin/com/google/android/gms/dynamic/ObjectWrapper.kt rename to play-services-basement-ktx/src/main/kotlin/com/google/android/gms/dynamic/ObjectWrapper.kt diff --git a/play-services-basement/build.gradle b/play-services-basement/build.gradle index 84ebb440..30acbe04 100644 --- a/play-services-basement/build.gradle +++ b/play-services-basement/build.gradle @@ -15,7 +15,6 @@ */ apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' apply plugin: 'maven-publish' apply plugin: 'signing' @@ -23,7 +22,6 @@ dependencies { api "org.microg:safe-parcel:$safeParcelVersion" implementation "androidx.annotation:annotation:$annotationVersion" - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion" } android { @@ -42,10 +40,6 @@ android { buildConfigField "int", "VERSION_CODE", "$appVersionCode" } - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 diff --git a/settings.gradle b/settings.gradle index 23264525..dff2bb69 100644 --- a/settings.gradle +++ b/settings.gradle @@ -17,10 +17,30 @@ include ':play-services-wearable-api' include ':play-services-api' +include ':play-services-base' +include ':play-services-cast' +include ':play-services-droidguard' +include ':play-services-gcm' +include ':play-services-iid' +include ':play-services-location' +include ':play-services-nearby' +include ':play-services-vision' +include ':play-services-vision-common' +include ':play-services-wearable' + +include ':play-services' + +include ':firebase-auth-api' +include ':firebase-dynamic-links-api' + +// core only + include ':play-services-core-proto' include ':play-services-nearby-core-proto' include ':play-services-wearable-proto' +include ':play-services-basement-ktx' + include ':play-services-base-core' include ':play-services-conscrypt-provider-core' include ':play-services-cronet-core' @@ -35,23 +55,7 @@ include ':play-services-vision-core' include ':play-services-base-core-ui' include ':play-services-nearby-core-ui' -include ':firebase-auth-api' -include ':firebase-dynamic-links-api' - include ':firebase-auth-core' include ':play-services-core:microg-ui-tools' // Legacy include ':play-services-core' - -include ':play-services-base' -include ':play-services-cast' -include ':play-services-droidguard' -include ':play-services-gcm' -include ':play-services-iid' -include ':play-services-location' -include ':play-services-nearby' -include ':play-services-vision' -include ':play-services-vision-common' -include ':play-services-wearable' - -include ':play-services'