[AC-3136] V8 libraries embedded in Rhino APK
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-02-21T14:29:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | apk, rhino |
Reporter | Mark Ruys |
Assignee | Mauro Parra-Miranda |
Created | 2012-01-19T15:56:08.000+0000 |
Updated | 2016-03-08T07:48:12.000+0000 |
Description
The Android builder always embed the V8 libraries, even for a Rhino build. This makes the size of Rhino APK's unnecessary big.
Fix would be easy, I guess, just add a test on 'v8':
# add sdk runtime native libraries
if self.runtime == 'v8':
sdk_native_libs = os.path.join(template_dir, 'native', 'libs')
apk_zip.write(os.path.join(sdk_native_libs, 'armeabi', 'libkroll-v8.so'), 'lib/armeabi/libkroll-v8.so')
apk_zip.write(os.path.join(sdk_native_libs, 'armeabi', 'libstlport_shared.so'), 'lib/armeabi/libstlport_shared.so')
apk_zip.write(os.path.join(sdk_native_libs, 'armeabi-v7a', 'libkroll-v8.so'), 'lib/armeabi-v7a/libkroll-v8.so')
apk_zip.write(os.path.join(sdk_native_libs, 'armeabi-v7a', 'libstlport_shared.so'), 'lib/armeabi-v7a/libstlport_shared.so')
Closing since it's a dup.