FIX: removed assests and string references from the library, making it more generic

This commit is contained in:
JohnE 2019-05-14 12:21:42 -07:00
parent 660af53553
commit 95b82901f9
5 changed files with 9 additions and 24 deletions

View File

@ -1,11 +0,0 @@
#!/bin/bash
# BUILD this JNI library
# - gradle task 'copyLibs' was created by me to copy the .so files to dist/
#
gradle clean
# there is a bug in the cleaner task, we need to blow away this artifact directory too
rm -rf .externalNativeBuild/
# build and copy the libs
# copy maven local so that flutter can find the lib (because Goog sucks at engineering)
gradle build copyLibs publishToMavenLocal

View File

@ -1,5 +1,9 @@
//
// WolfCrypt JNI Library
//
//
// will create an .aar file instead of .apk
apply plugin: 'com.android.library'
android {
compileSdkVersion 28
// a default can be used, but it is good practice to explicitly select build tools

3
wolfssl-jni/build.sh Executable file → Normal file
View File

@ -7,4 +7,5 @@ gradle clean
# there is a bug in the cleaner task, we need to blow away this artifact directory too
rm -rf .externalNativeBuild/
# build and copy the libs
gradle build copyLibs
# copy maven local so that flutter can find the lib (because Goog sucks at engineering)
gradle build copyLibs publishToMavenLocal

View File

@ -1,9 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.malloc.ccc">
<application android:allowBackup="true" android:label="@string/app_name"
android:supportsRtl="true">
</application>
</manifest>
package="io.malloc.ccc">
</manifest>

View File

@ -1,3 +0,0 @@
<resources>
<string name="app_name">WolfSSL JNI Lib</string>
</resources>