New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apk Size Increased drastically after using JNI #736

Merged
merged 1 commit into from Aug 2, 2017
Jump to file or symbol
Failed to load files and symbols.
+20 −0
Diff settings

Always

Just for now

@@ -114,6 +114,26 @@ android {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError' events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
} }
} }
splits {
abi {
enable true
reset()
include 'arm64-v8a', 'armeabi', 'armeabi-v7a', 'mips', 'mips64', 'x86', 'x86_64'
universalApk false
}
}
}
ext.abiCodes = ['arm64-v8a':'1', 'armeabi':'2', 'armeabi-v7a':'3', 'mips':'4', 'mips64':'5',
'x86':'6', 'x86_64':'7']
import com.android.build.OutputFile
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def baseVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
if (baseVersionCode != null) {
output.versionCodeOverride = Integer.valueOf(baseVersionCode + variant.versionCode)
}
}
} }
task buildAndEMailAPK(type: Exec, description: 'Builds and Generates a Signed APK and emails it') { task buildAndEMailAPK(type: Exec, description: 'Builds and Generates a Signed APK and emails it') {
ProTip! Use n and p to navigate between commits in a pull request.