Giter Site home page Giter Site logo

android-app.g8's Introduction

Android App in Scala

giter8 template to get an Android sbt project up and running in a matter of seconds

How to use

To use this template, g8 needs to be installed first. Read g8's readme.

All done? Now fire up your favorite shell and enter

g8 jberkel/android-app
cd <name-of-app>
sbt android:package-debug

What you get

Your android sbt project contains 2 subprojects:

  • MainProject
    • generated AndroidManifest.xml
    • Activity.scala (the "hello world" activity)
  • TestProject (tests)

Installing & Running

$ sbt
$ android:emulator-start <tab>
$ android:install-emulator

How to run unit tests (src/test/scala/*)

$ sbt
> test
[info] Specs:
[info] a spec
[info] - should do something
[info] Passed: : Total 1, Failed 0, Errors 0, Passed 1, Skipped 0

How to run integration tests (tests/src/main/scala/*)

The main apk under test needs to be installed first. Then:

$ sbt
> project tests
> android:install-emulator
> android:test-emulator
[info]
[info] my.android.project.tests.ActivityTests:.
[info] my.android.project.tests.AndroidTests:..
[info] Test results for InstrumentationTestRunner=...
[info] Time: 1.492
[info]
[info] OK (3 tests)

android-app.g8's People

Contributors

jberkel avatar gseitz avatar philcali avatar paulbutcher avatar mlc avatar xuwei-k avatar

Watchers

Gregg Carrier avatar James Cloos 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.