Skip to content

Instantly share code, notes, and snippets.

@Plamen5kov
Created September 4, 2017 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Plamen5kov/d30265ba3b93ed2749770030acb5b206 to your computer and use it in GitHub Desktop.
Save Plamen5kov/d30265ba3b93ed2749770030acb5b206 to your computer and use it in GitHub Desktop.
// ### how to integrate a 3.1.1 project with android stuio ###
// 1. comment out the assembleRelease and assembleDebug in buildapk task
// 2. add when task added as shown bellow right after buildaoj task
// Note: both changes should be applied in <app_name>platforms/android/build.gradle
task buildapk {
// problem is compile dependencies need to be changed before configuration stage
// and this is the only way so far
tasks.copyAarDependencies.execute()
tasks.addAarDependencies.execute()
// //done to build only necessary apk
// if(project.hasProperty("release")) {
// dependsOn "assembleRelease"
// }
// else {
// dependsOn "assembleDebug"
// }
}
tasks.whenTaskAdded { task ->
if (task.name == 'assembleDebug') {
task.finalizedBy 'buildapk'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment