Skip to content

chenakam/scalroid-build-demo

Repository files navigation

scalroid-build-demo

Demo project for test scalroid, which is a scala-kotlin-java joint compilation plugin built on Gradle.

Usage

  1. Clone projects:

    cd <PATH/TO/YOUR/WORKSPACE>
    git clone [email protected]:chenakam/scalroid-build-demo.git <PROJECT_ALIAS_NAME>
    
    cd <PROJECT_ALIAS_NAME>
  2. Clone buildSrc (optional):

    // dir name `buildSrc` should not be changed
    git clone [email protected]:chenakam/scalroid.git buildSrc

    Alternatively, if you have not done this step, please make sure the line below is uncommented in the /build.gradle file:

    plugins {
        // ...
        id 'cash.bdo.scalroid' version '[1.3,)' apply false
    }
  3. Clone sub-projects:

    The command are:

    cd <PROJECT_ALIAS_NAME>
    git clone https://github.com/bdo-cash/annoid.git
    git clone https://github.com/bdo-cash/assoid.git
    
    cd annoid
    git checkout v.gradle
    
    cd ../assoid
    git checkout v.gradle
  4. Open the project with Android Studio. Try run:

    ./gradlew :app:assembleDebug
    # or with variants (github/googleplay/xxx):
    ./gradlew :app:assembleGithubDebug
    ./gradlew :app:assembleGoogleplayDebug
    ./gradlew :app:assembleXxxDebug
    
    # or
    ./gradlew :app:assembleRelease
    # or with variants (github/googleplay/xxx):
    ./gradlew :app:assembleGithubRelease
    ./gradlew :app:assembleGoogleplayRelease
    ./gradlew :app:assembleXxxRelease
    
    # or
    ./gradlew :app:assemble # include all above
    
    # or
    ./gradlew :app:assembleAndroidTest
    # or with variants (github/googleplay/xxx):
    ./gradlew :app:assembleGithubDebugAndroidTest
    ./gradlew :app:assembleGoogleplayDebugAndroidTest
    ./gradlew :app:assembleXxxDebugAndroidTest
    
    # or
    ./gradlew :app:test

    in the Terminal, and you can find the outputs in dir app/build/outputs/apk when the :app:assembleXxx is executes successfully.

About

Demo project for test scalroid.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published