From 6bdfbcb228cd228b4a7a84e859f06948e0f69ead Mon Sep 17 00:00:00 2001 From: J!nl!n Date: Mon, 4 Sep 2023 16:36:47 +0800 Subject: [PATCH] Fix #1631, Disable BuildConfig for android modules --- android/koin-android-compat/build.gradle | 6 +++++- android/koin-android-test/build.gradle | 6 +++++- android/koin-android/build.gradle | 4 ++++ android/koin-androidx-navigation/build.gradle | 6 +++++- android/koin-androidx-workmanager/build.gradle | 6 +++++- compose/koin-androidx-compose-navigation/build.gradle | 1 + compose/koin-androidx-compose/build.gradle | 1 + 7 files changed, 26 insertions(+), 4 deletions(-) diff --git a/android/koin-android-compat/build.gradle b/android/koin-android-compat/build.gradle index 12e2eb9bf..7318a4c18 100644 --- a/android/koin-android-compat/build.gradle +++ b/android/koin-android-compat/build.gradle @@ -14,6 +14,10 @@ android { minSdkVersion android_min_version // testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } + + buildFeatures { + buildConfig false + } } dependencies { @@ -21,4 +25,4 @@ dependencies { api project(":koin-android") } -apply from: '../../gradle/publish-to-central.gradle' \ No newline at end of file +apply from: '../../gradle/publish-to-central.gradle' diff --git a/android/koin-android-test/build.gradle b/android/koin-android-test/build.gradle index cfd0f63ff..1174f870d 100644 --- a/android/koin-android-test/build.gradle +++ b/android/koin-android-test/build.gradle @@ -14,6 +14,10 @@ android { minSdkVersion android_min_version } + buildFeatures { + buildConfig false + } + compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 @@ -32,4 +36,4 @@ dependencies { } -apply from: '../../gradle/publish-to-central.gradle' \ No newline at end of file +apply from: '../../gradle/publish-to-central.gradle' diff --git a/android/koin-android/build.gradle b/android/koin-android/build.gradle index 8a83d3b7e..5b90189d2 100644 --- a/android/koin-android/build.gradle +++ b/android/koin-android/build.gradle @@ -14,6 +14,10 @@ android { minSdkVersion android_min_version } + buildFeatures { + buildConfig false + } + compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 diff --git a/android/koin-androidx-navigation/build.gradle b/android/koin-androidx-navigation/build.gradle index 76d6fbf10..c1f78e784 100644 --- a/android/koin-androidx-navigation/build.gradle +++ b/android/koin-androidx-navigation/build.gradle @@ -17,6 +17,10 @@ android { } + buildFeatures { + buildConfig false + } + kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8.toString() } @@ -34,4 +38,4 @@ dependencies { api "androidx.navigation:navigation-fragment-ktx:2.5.3" } -apply from: '../../gradle/publish-to-central.gradle' \ No newline at end of file +apply from: '../../gradle/publish-to-central.gradle' diff --git a/android/koin-androidx-workmanager/build.gradle b/android/koin-androidx-workmanager/build.gradle index 07f2f9f3b..9c57b9180 100644 --- a/android/koin-androidx-workmanager/build.gradle +++ b/android/koin-androidx-workmanager/build.gradle @@ -17,6 +17,10 @@ android { } + buildFeatures { + buildConfig false + } + kotlinOptions { jvmTarget = JavaVersion.VERSION_1_8.toString() } @@ -38,4 +42,4 @@ dependencies { testImplementation "org.mockito:mockito-inline:$mockito_version" } -apply from: '../../gradle/publish-to-central.gradle' \ No newline at end of file +apply from: '../../gradle/publish-to-central.gradle' diff --git a/compose/koin-androidx-compose-navigation/build.gradle b/compose/koin-androidx-compose-navigation/build.gradle index c69c878ef..c5c60d76f 100644 --- a/compose/koin-androidx-compose-navigation/build.gradle +++ b/compose/koin-androidx-compose-navigation/build.gradle @@ -28,6 +28,7 @@ android { buildFeatures { compose true + buildConfig false } composeOptions { diff --git a/compose/koin-androidx-compose/build.gradle b/compose/koin-androidx-compose/build.gradle index 95219c581..ab27e6131 100644 --- a/compose/koin-androidx-compose/build.gradle +++ b/compose/koin-androidx-compose/build.gradle @@ -29,6 +29,7 @@ android { buildFeatures { compose true + buildConfig false } composeOptions {