the-mac / AndroidJniHelpers

Tools for writing secure Android/JNI code, based upon Spotify's Jni Helpers Library
http://on.fb.me/1MIc51o
MIT License
37 stars 5 forks source link

Publish Latest Version #7

Open cdm2012 opened 6 years ago

cdm2012 commented 6 years ago

The latest version is 1.1.8 (as of 05/18/18) and needs to be published and marketed. The library should be allowed to work in v4 of Android (Donut 1.6 - September 15, 2009 - 4).

The current library config is as follows:


android {
    compileSdkVersion 24
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 24
        versionCode 1
        versionName libraryVersion
        ...
   }
...
}

The new config should be based upon API Level 8 (due to espresso-core dependency):


android {
    compileSdkVersion 8

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 8
        versionCode 1
        versionName libraryVersion
        ...
   }
...
}

Possible Places to distribute dependency (compile 'us.the.mac:AndroidJniHelpers:1.1.8'):

- Reddit - https://reddit.com/r/android
- Hacker News - https://news.ycombinator.com
- Official Android Google+ - https://plus.google.com/communities/105153134372062985968
cdm2012 commented 6 years ago

There needs to be a way to extract aar and reference the .so files:

/Users/christopher/.gradle/caches/modules-2/files-2.1/us.the.mac/AndroidJniHelpers/1.1.7/1b0fb1e1b317fd164309f2d057937bdcd3511e6b/AndroidJniHelpers-1.1.7.aar
/Users/christopher/.m2/repository/us/the/mac/AndroidJniHelpers/1.1.7/AndroidJniHelpers-1.1.7.aar

Unix/Mac OS X – ~/.m2
Windows – C:\Documents and Settings\{your-username}\.m2

task extractSo(type: Copy) {
    from zipTree("${project.rootDir}/libraries/jni-helpers-lib.aar")
    into "${project.rootDir}/libraries/"
    include "jni/**/jni-helpers-lib.so"
}
cdm2012 commented 6 years ago

Setting up for semi-manual export of jni directory:

- https://stackoverflow.com/questions/3065154/undefined-reference-to-vtable
- https://github.com/libpd/pd-for-android/issues/75
- https://raw.githubusercontent.com/square/okhttp/master/README.md
- /the-mac/SampleLibrary/demo/CMakeLists.txt
- https://www.praqma.com/stories/gradle-plugin-bootstrap/