Closed SDRausty closed 2 years ago
Unifying native artifacts should be a simple solution. File bootclasspath.sh is created to ease inegration of native libraries that are present on device.
Warning: A script that uses a library does not run as quickly as it would if all the code were contained within a single script project. Although libraries can make development and maintenance more convenient, you should use them sparingly in projects where speed is critical. Because of this issue, library use should be limited in add-ons.
Reference https://developers.google.com/apps-script/guides/libraries
Commit https://github.com/BuildAPKs/buildAPKs/commit/6554e05452df0f5eaee1bb97dae0aee17ba2f38d adds a couple more places to place artifacts so they can be loaded into the build.
[ -d "$RDR"/var/cache/lib ] && DIRLIST="$(find -L "$RDR"/var/cache/lib/ -type f -iname "*.aar" -or -iname "*.jar" -or -iname "*.apk" 2>/dev/null)" ||:
[ -d "$RDR"/../libs ] && DIRLIST="$DIRLIST $(find -L /system/ -type f -iname "*.aar" -or -iname "*.jar" -or -iname "*.apk" 2>/dev/null)" ||:
[ -d "$RDR"/libs ] && DIRLIST="$DIRLIST $(find -L /system/ -type f -iname "*.aar" -or -iname "*.jar" -or -iname "*.apk" 2>/dev/null)" ||:
[ -d /system ] && DIRLIST="$DIRLIST $(find -L /system/ -type f -iname "*.aar" -or -iname "*.jar" -or -iname "*.apk" 2>/dev/null)" ||:
Commit https://github.com/BuildAPKs/buildAPKs/commit/5343925146f47e6a2b0a1214651c0ef950dd0976 creates a simple way to add artifacts and libraries into the compilation. Change the first line of file .conf/LIBAUTH to true
to enable loading of artifacts and libraries into the APK compilation.
Commit https://github.com/BuildAPKs/buildAPKs/commit/95ab17987865ff41e1a220b2ea49ec689f3f2236 contains artifact search paths. Modify array LIBDIRPATH
to suit the projects.
old issue sanse activity message
Adding libraries and artifacts is important to build many Android Aplication Kits. The method of adding libraries is one of a few ways to resolve building source code that depends on libraries and artifacts. This issues is devoted to modifying build.one.bash, build.sh and build.zsh so these scripts can parse the APK project configuration file(s) and add the desired components for a succeccfull build on device.