Git Product home page Git Product logo

android_mobile_application's Introduction

SPACEFORGREEN Mobile application

Step1: Basic test of Android APK generation from GitLab

Basic test using: https://appetize.io/

Alt text Alt text

Step2: How to add python chaquopy library

Chaquopy is distributed as a plugin for Android’s Gradle-based build system.

  1. In your top-level build.gradle file, set the Chaquopy version:

    plugins {
        id 'com.chaquo.python' version '13.0.0' apply false
    }
  2. In the module-level build.gradle file (usually in the app directory), apply the Chaquopy plugin after the Android plugin:

    plugins {
        id 'com.chaquo.python'
    }
  3. The Python interpreter is a native component, so you must use the abiFilters setting to specify which ABIs you want the app to support. In the module-level build.gradle file (usually in the app directory), apply the ABI filter inside of the Android plugin:

    android {
        ...
        defaultConfig {
            ndk {
                abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
            }
        }
        ...
    }
  4. Set buildPython. In the module-level build.gradle file (usually in the app directory), apply the buildPython inside of the Android plugin:

    android {
        ...
        python {
            buildPython "python"
        }
        ...
    }
  5. Add source code. To include Python source code from other directories, use the android.sourceSets block. In the module-level build.gradle file (usually in the app directory), apply the sourceSets inside of the Android plugin:

    android {
        ...
        sourceSets {
            main {
                python.srcDir "src/main/python/OSNMA"
            }
        }
        ...
    }
  6. Set startup. If the app only sometimes uses Python, then call Python.start() after first checking whether it’s already been started::

    if (! Python.isStarted()) {
        Python.start(new AndroidPlatform(context));
    }

To do

  1. Create the pipeline for GitHub.
  2. Bring OSNMA src code as submodule.

android_mobile_application's People

Contributors

sfl0r3nz05 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.