Created
September 4, 2017 07:41
-
-
Save Plamen5kov/d30265ba3b93ed2749770030acb5b206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ### 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