Skip to content

Guang1234567/docker_script_android_ndk_go_rust_swift_crossplatform

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[[TOC]]

BUILD WITH DOCKER

  • Clone the repo using git clone --recurse-submodules <repo> or update submodules using git submodule update --init --recursive

  • Run docker run --rm -v ${PWD}:/build -w /build lihansey/android_ndk_go_rust_swift_crossplatform ./gradlew assembleDebug

Support Android API

List of circleci/android:api-XXX

Example

  • shadowsocks/shadowsocks-android

    # 1) git clone project
    git clone --recurse-submodules https://github.com/shadowsocks/shadowsocks-android  ~/dev_kit/src_code/shadowsocks/shadowsocks-android
    
    # 2) cd 
    cd ~/dev_kit/src_code/shadowsocks/shadowsocks-android
    
    # 3) build apk by docker
    docker run --rm -v ${PWD}:/build -w /build lihansey/android_ndk_go_rust_swift_crossplatform ./gradlew assembleDebug
  • Create a demo_hello_world_android project by Android Studio -_-||

    # 1) git clone project
    git clone --recurse-submodules https://github.com/Guang1234567/android_ndk_go_rust_swift_crossplatform  ~/dev_kit/src_code/android_ndk_go_rust_swift_crossplatform
    
    # 2) cd 
    cd ~/dev_kit/src_code/android_ndk_go_rust_swift_crossplatform/example
    
    # 3) build apk by docker
    docker run --rm -v ${PWD}:/build -w /build lihansey/android_ndk_go_rust_swift_crossplatform ./gradlew assembleDebug
    
    # 4) if build successful
    ╰─ docker run --rm -v ${PWD}:/build -w /build lihansey/android_ndk_go_rust_swift_crossplatform ./gradlew assembleDebug
    ...
    > Task :app:mergeDebugJniLibFolders
    > Task :app:mergeProjectDexDebug
    > Task :app:validateSigningDebug
    > Task :app:mergeDebugNativeLibs
    > Task :app:stripDebugDebugSymbols
    > Task :app:mergeExtDexDebug
    > Task :app:packageDebug
    > Task :app:assembleDebug
    
    BUILD SUCCESSFUL in 9m 6s
    25 actionable tasks: 25 executed
    
    # adb install apk to your android device
    adb install app/build/outputs/apk/debug/app-debug.apk

About

Circle CI Android image with NDK and golang + rust, for building golang and/or rust for NDK.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 66.9%
  • Kotlin 33.1%