ppgirl Member Licensed User Longtime User Jan 9, 2017 #1 Dear Erel , I have a two SLC questions , 1. How to add resource files ("res\.") to make a library ? 2. JNI .so files need compress a zip file , rename to jar and place to additional directory , is right ?
Dear Erel , I have a two SLC questions , 1. How to add resource files ("res\.") to make a library ? 2. JNI .so files need compress a zip file , rename to jar and place to additional directory , is right ?
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2017 #2 1. Resource files cannot be added to the jar file. You can create an additional aar file that holds the resources. You can see an example in AppCompact library: https://www.b4x.com/android/forum/t...le-with-older-android-versions.48423/#content Make sure to add the aar file to the @DependsOn list. 2. No. Example of library structure with so files: https://www.b4x.com/android/forum/threads/slc-tool-and-structures.58467/#post-368176
1. Resource files cannot be added to the jar file. You can create an additional aar file that holds the resources. You can see an example in AppCompact library: https://www.b4x.com/android/forum/t...le-with-older-android-versions.48423/#content Make sure to add the aar file to the @DependsOn list. 2. No. Example of library structure with so files: https://www.b4x.com/android/forum/threads/slc-tool-and-structures.58467/#post-368176
ppgirl Member Licensed User Longtime User Jan 9, 2017 #3 Erel , Thank for replay . About question 1 , I have a workaround without SLC. place .java code in Objects\src\package.name and place their resource files to Objects\res , set them to read-only . Then , we can compile those java code and b4a code together .
Erel , Thank for replay . About question 1 , I have a workaround without SLC. place .java code in Objects\src\package.name and place their resource files to Objects\res , set them to read-only . Then , we can compile those java code and b4a code together .