{"id":19075331,"url":"https://github.com/gershnik/android-cmdline-jni","last_synced_at":"2025-04-29T23:29:08.208Z","repository":{"id":143477788,"uuid":"351861548","full_name":"gershnik/android-cmdline-jni","owner":"gershnik","description":"How to create a native Android command-line application that loads and uses ART virtual machine","archived":false,"fork":false,"pushed_at":"2021-03-29T05:18:01.000Z","size":15,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T19:41:59.979Z","etag":null,"topics":["android-runtime","command-line","cplusplus","cpp","jni-android"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gershnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-26T17:29:55.000Z","updated_at":"2025-01-18T17:54:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"dfb478ff-5825-4c80-bad8-72b08d15fbcf","html_url":"https://github.com/gershnik/android-cmdline-jni","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fandroid-cmdline-jni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fandroid-cmdline-jni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fandroid-cmdline-jni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fandroid-cmdline-jni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gershnik","download_url":"https://codeload.github.com/gershnik/android-cmdline-jni/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599130,"owners_count":21615468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-runtime","command-line","cplusplus","cpp","jni-android"],"created_at":"2024-11-09T01:54:24.587Z","updated_at":"2025-04-29T23:29:08.202Z","avatar_url":"https://github.com/gershnik.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains minimal code to create a native Android command-line application that loads and uses ART virtual machine.\n\nMore details can be found at https://gershnik.github.io/2021/03/26/load-art-from-native.html\n\nTo build and run:\n\n* Make sure you have an emulator running or device connected.\n\n* Run the following, substituting \n  * your NDK location for `$ANDROID_NDK_PATH`\n  * `Release` or `Debug` etc. for `$BUILD_TYPE` \n  * `x86_64`, `x86`, `armeabi-v7a` or `arm64-v8a` for `$NDK_ARCH`\n  * If desired change `ANDROID_PLATFORM` value to something bigger than 19\n\n```bash\nmkdir -p build\ncd build\ncmake .. \\\n    -DCMAKE_BUILD_TYPE:STRING=$BUILD_TYPE \\\n    -DCMAKE_TOOLCHAIN_FILE:FILEPATH=$ANDROID_NDK_PATH/build/cmake/android.toolchain.cmake \\\n    -DANDROID_ABI:STRING=$NDK_ARCH \\\n    -DANDROID_PLATFORM:STRING=19 \\\n    -DANDROID_STL:STRING=c++_static\ncmake --build . --config $BUILD_TYPE --target run\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgershnik%2Fandroid-cmdline-jni","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgershnik%2Fandroid-cmdline-jni","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgershnik%2Fandroid-cmdline-jni/lists"}