Resolved #4842 - solved Android/libs folder not being created on bundle, only on local assembly

This commit is contained in:
yairm210
2021-08-12 20:42:49 +03:00
parent fb266b07b2
commit 3b1fa58806

View File

@ -93,7 +93,8 @@ task("copyAndroidNatives") {
}
tasks.whenTaskAdded {
if ("package" in name || "assemble" in name) {
// See https://github.com/yairm210/Unciv/issues/4842
if ("package" in name || "assemble" in name || "bundleRelease" in name) {
dependsOn("copyAndroidNatives")
}
}
@ -122,26 +123,3 @@ dependencies {
implementation("androidx.core:core-ktx:1.3.2")
implementation("androidx.work:work-runtime-ktx:2.6.0-alpha02")
}
// sets up the Android Eclipse project, using the old Ant based build.
eclipse {
jdt {
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
}
classpath {
plusConfigurations = plusConfigurations.apply { add(project.configurations.compile.get()) }
containers("com.android.ide.eclipse.adt.ANDROID_FRAMEWORK", "com.android.ide.eclipse.adt.LIBRARIES")
}
project {
name = "${BuildConfig.appName}-android"
natures("com.android.ide.eclipse.adt.AndroidNature")
buildCommands.clear()
buildCommand("com.android.ide.eclipse.adt.ResourceManagerBuilder")
buildCommand("com.android.ide.eclipse.adt.PreCompilerBuilder")
buildCommand("org.eclipse.jdt.core.javabuilder")
buildCommand("com.android.ide.eclipse.adt.ApkBuilder")
}
}