Skip to content

Commit

Permalink
Goodbye package; hello merge and JniLibFolders
Browse files Browse the repository at this point in the history
I don't know why this works, but PokeMMO and I were having an experiment on Discord and `assembleRelease` seems to want that in order to copy the natives
  • Loading branch information
Frosty-J committed Apr 15, 2022
1 parent 4d30319 commit da24ad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ task copyAndroidNatives {
}

tasks.whenTaskAdded { packageTask ->
if (packageTask.name.contains("package")) {
if (packageTask.name.contains("merge") && packageTask.name.contains("JniLibFolders")) {
packageTask.dependsOn 'copyAndroidNatives'
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/gdx-tests-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ task copyAndroidNatives() {
}

tasks.whenTaskAdded { packageTask ->
if (packageTask.name.contains("package")) {
if (packageTask.name.contains("merge") && packageTask.name.contains("JniLibFolders")) {
packageTask.dependsOn 'copyAndroidNatives'
}
}

0 comments on commit da24ad6

Please sign in to comment.