Skip to content

Commit

Permalink
Fix InsertKoinIO#1631, Disable BuildConfig for android modules
Browse files Browse the repository at this point in the history
  • Loading branch information
J!nl!n committed Sep 4, 2023
1 parent 31af085 commit 6bdfbcb
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 4 deletions.
6 changes: 5 additions & 1 deletion android/koin-android-compat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ android {
minSdkVersion android_min_version
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

buildFeatures {
buildConfig false
}
}

dependencies {
// Koin
api project(":koin-android")
}

apply from: '../../gradle/publish-to-central.gradle'
apply from: '../../gradle/publish-to-central.gradle'
6 changes: 5 additions & 1 deletion android/koin-android-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ android {
minSdkVersion android_min_version
}

buildFeatures {
buildConfig false
}

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
Expand All @@ -32,4 +36,4 @@ dependencies {

}

apply from: '../../gradle/publish-to-central.gradle'
apply from: '../../gradle/publish-to-central.gradle'
4 changes: 4 additions & 0 deletions android/koin-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ android {
minSdkVersion android_min_version
}

buildFeatures {
buildConfig false
}

compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
Expand Down
6 changes: 5 additions & 1 deletion android/koin-androidx-navigation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ android {

}

buildFeatures {
buildConfig false
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
Expand All @@ -34,4 +38,4 @@ dependencies {
api "androidx.navigation:navigation-fragment-ktx:2.5.3"
}

apply from: '../../gradle/publish-to-central.gradle'
apply from: '../../gradle/publish-to-central.gradle'
6 changes: 5 additions & 1 deletion android/koin-androidx-workmanager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ android {

}

buildFeatures {
buildConfig false
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
Expand All @@ -38,4 +42,4 @@ dependencies {
testImplementation "org.mockito:mockito-inline:$mockito_version"
}

apply from: '../../gradle/publish-to-central.gradle'
apply from: '../../gradle/publish-to-central.gradle'
1 change: 1 addition & 0 deletions compose/koin-androidx-compose-navigation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ android {

buildFeatures {
compose true
buildConfig false
}

composeOptions {
Expand Down
1 change: 1 addition & 0 deletions compose/koin-androidx-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {

buildFeatures {
compose true
buildConfig false
}

composeOptions {
Expand Down

0 comments on commit 6bdfbcb

Please sign in to comment.