├── sample ├── libproject │ ├── lib1 │ │ ├── .gitignore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ └── strings.xml │ │ │ │ │ └── layout │ │ │ │ │ │ └── activity_lib1_scala.xml │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ ├── Lib1Scala.scala │ │ │ │ │ │ └── Lib1ScalaActivity.scala │ │ │ │ ├── java │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ └── Lib1Java.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── androidTest │ │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── lib1 │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ └── Lib1ScalaActivityTest.scala │ │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── libproject │ │ │ │ └── lib1 │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ └── build.gradle │ ├── app │ │ ├── .gitignore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ │ └── strings.xml │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── layout │ │ │ │ │ │ └── activity_app.xml │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── scala │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── AppActivity.scala │ │ │ └── androidTest │ │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── app │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ └── Lib1ScalaActivityTest.scala │ │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── libproject │ │ │ │ └── app │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ └── build.gradle │ ├── settings.gradle │ ├── .gitignore │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── build.gradle │ └── gradlew.bat ├── hello │ ├── .gitignore │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── strings.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_hello.xml │ │ │ ├── java │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── HelloJava.java │ │ │ ├── AndroidManifest.xml │ │ │ └── scala │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── HelloActivity.scala │ │ └── androidTest │ │ │ ├── res │ │ │ ├── drawable-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ └── drawable-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── AndroidManifest.xml │ │ │ ├── scala │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── HelloActivityTest.scala │ │ │ └── java │ │ │ └── jp │ │ │ └── leafytree │ │ │ └── android │ │ │ └── hello │ │ │ └── HelloActivityJavaTest.java │ ├── build.gradle │ ├── gradlew.bat │ └── gradlew └── simple │ ├── .gitignore │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── src │ └── main │ │ ├── res │ │ ├── drawable-hdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-mdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xhdpi │ │ │ └── ic_launcher.png │ │ ├── drawable-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ └── strings.xml │ │ └── layout │ │ │ └── activity_simple.xml │ │ ├── scala │ │ └── jp │ │ │ └── leafytree │ │ │ └── android │ │ │ └── simple │ │ │ └── SimpleActivity.scala │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradlew.bat │ └── gradlew ├── src ├── integTest │ ├── noScala │ │ ├── lib │ │ │ ├── .gitignore │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_lib1_scala.xml │ │ │ │ │ ├── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ │ ├── Lib1Java.java │ │ │ │ │ │ │ └── Lib1JavaActivity.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ └── java │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── lib1 │ │ │ │ │ └── Lib1JavaTest.java │ │ │ └── build.gradle │ │ ├── app │ │ │ ├── .gitignore │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_app.xml │ │ │ │ │ ├── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── AppActivity.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ └── java │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── app │ │ │ │ │ ├── Lib1JavaTest.java │ │ │ │ │ ├── AppActivityJavaTest.java │ │ │ │ │ └── Lib1JavaActivityJavaTest.java │ │ │ └── build.gradle │ │ ├── settings.gradle │ │ ├── .gitignore │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.jar │ │ ├── build.gradle │ │ └── gradlew.bat │ ├── useScalaOnlyTest │ │ ├── lib │ │ │ ├── .gitignore │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_lib1_scala.xml │ │ │ │ │ ├── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ │ ├── Lib1Java.java │ │ │ │ │ │ │ └── Lib1JavaActivity.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ ├── java │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ │ │ │ └── scala │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── lib1 │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ └── Lib1JavaActivityTest.scala │ │ │ └── build.gradle │ │ ├── app │ │ │ ├── .gitignore │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_app.xml │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ └── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── AppActivity.java │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── app │ │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ │ └── Lib1JavaActivityTest.scala │ │ │ │ │ └── java │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── app │ │ │ │ │ └── Lib1JavaActivityJavaTest.java │ │ │ └── build.gradle │ │ ├── settings.gradle │ │ ├── .gitignore │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.jar │ │ ├── build.gradle │ │ └── gradlew.bat │ ├── appAndLib │ │ ├── settings.gradle │ │ ├── lib │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_lib1_scala.xml │ │ │ │ │ ├── scala │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ │ ├── Lib1Scala.scala │ │ │ │ │ │ │ └── Lib1ScalaActivity.scala │ │ │ │ │ ├── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ │ └── Lib1Java.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ │ └── Lib1ScalaActivityTest.scala │ │ │ │ │ └── java │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── lib1 │ │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ │ └── build.gradle │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.jar │ │ ├── app │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_app.xml │ │ │ │ │ ├── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── AppActivity.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── app │ │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ │ └── Lib1ScalaActivityTest.scala │ │ │ │ │ └── java │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── app │ │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ │ └── build.gradle │ │ ├── .gitignore │ │ ├── build.gradle │ │ └── gradlew.bat │ ├── largeAppAndLib │ │ ├── settings.gradle │ │ ├── lib │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_lib1_scala.xml │ │ │ │ │ ├── scala │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ │ ├── Lib1Scala.scala │ │ │ │ │ │ │ └── Lib1ScalaActivity.scala │ │ │ │ │ ├── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ │ └── Lib1Java.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ │ └── Lib1ScalaActivityTest.scala │ │ │ │ │ └── java │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── lib1 │ │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ │ └── build.gradle │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.jar │ │ ├── app │ │ │ ├── src │ │ │ │ ├── main │ │ │ │ │ ├── res │ │ │ │ │ │ ├── values │ │ │ │ │ │ │ └── strings.xml │ │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ └── activity_app.xml │ │ │ │ │ ├── java │ │ │ │ │ │ └── jp │ │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ │ └── android │ │ │ │ │ │ │ └── libproject │ │ │ │ │ │ │ └── AppActivity.java │ │ │ │ │ └── AndroidManifest.xml │ │ │ │ └── androidTest │ │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── app │ │ │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ │ │ └── Lib1ScalaActivityTest.scala │ │ │ │ │ └── java │ │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── app │ │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ │ └── build.gradle │ │ ├── .gitignore │ │ ├── build.gradle │ │ └── gradlew.bat │ ├── .gitignore │ ├── lib │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ └── strings.xml │ │ │ │ │ └── layout │ │ │ │ │ │ └── activity_lib1_scala.xml │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ ├── Lib1Scala.scala │ │ │ │ │ │ └── Lib1ScalaActivity.scala │ │ │ │ ├── java │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── libproject │ │ │ │ │ │ └── lib1 │ │ │ │ │ │ └── Lib1Java.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── androidTest │ │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── java │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── libproject │ │ │ │ │ └── lib1 │ │ │ │ │ ├── Lib1ScalaTest.java │ │ │ │ │ └── Lib1ScalaActivityJavaTest.java │ │ │ │ └── scala │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── libproject │ │ │ │ └── lib1 │ │ │ │ ├── Lib1JavaTest.scala │ │ │ │ └── Lib1ScalaActivityTest.scala │ │ ├── .gitignore │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.jar │ │ ├── build.gradle │ │ └── gradlew.bat │ ├── app │ │ ├── .gitignore │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.jar │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ │ └── strings.xml │ │ │ │ │ └── layout │ │ │ │ │ │ └── activity_hello.xml │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── hello │ │ │ │ │ │ ├── HelloScala.scala │ │ │ │ │ │ └── HelloActivity.scala │ │ │ │ ├── java │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── hello │ │ │ │ │ │ └── HelloJava.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── androidTest │ │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── HelloActivityTest.scala │ │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── HelloActivityJavaTest.java │ │ ├── build.gradle │ │ └── gradlew.bat │ ├── apt │ │ ├── .gitignore │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.jar │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── drawable-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ │ └── strings.xml │ │ │ │ │ └── layout │ │ │ │ │ │ └── activity_hello.xml │ │ │ │ ├── scala │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── hello │ │ │ │ │ │ └── HelloScala.scala │ │ │ │ ├── java │ │ │ │ │ └── jp │ │ │ │ │ │ └── leafytree │ │ │ │ │ │ └── android │ │ │ │ │ │ └── hello │ │ │ │ │ │ ├── HelloJava.java │ │ │ │ │ │ └── HelloActivity.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── androidTest │ │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── HelloActivityTest.scala │ │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── HelloActivityJavaTest.java │ │ ├── build.gradle │ │ └── gradlew.bat │ └── simpleFlavor │ │ ├── .gitignore │ │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.jar │ │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values │ │ │ │ │ └── strings.xml │ │ │ │ └── layout │ │ │ │ │ └── activity_hello.xml │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── HelloScalaActivity.scala │ │ │ ├── java │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── HelloJavaActivity.java │ │ │ └── AndroidManifest.xml │ │ ├── flavor1 │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── FlavorScala.scala │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── FlavorJava.java │ │ ├── flavor2 │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── FlavorScala.scala │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── FlavorJava.java │ │ ├── flavor3Moved │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── FlavorScala.scala │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── FlavorJava.java │ │ ├── androidTest │ │ │ ├── res │ │ │ │ ├── drawable-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── drawable-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ └── drawable-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ ├── AndroidManifest.xml │ │ │ ├── scala │ │ │ │ └── jp │ │ │ │ │ └── leafytree │ │ │ │ │ └── android │ │ │ │ │ └── hello │ │ │ │ │ └── HelloScalaActivityTest.scala │ │ │ └── java │ │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── HelloJavaActivityTest.java │ │ └── flavor3 │ │ │ ├── scala │ │ │ └── jp │ │ │ │ └── leafytree │ │ │ │ └── android │ │ │ │ └── hello │ │ │ │ └── FlavorScala.scala │ │ │ └── java │ │ │ └── jp │ │ │ └── leafytree │ │ │ └── android │ │ │ └── hello │ │ │ └── FlavorJava.java │ │ ├── build.gradle │ │ └── gradlew.bat ├── main │ ├── resources │ │ └── META-INF │ │ │ └── gradle-plugins │ │ │ └── jp.leafytree.android-scala.properties │ └── groovy │ │ └── jp │ │ └── leafytree │ │ └── gradle │ │ └── AndroidScalaPluginExtension.groovy └── test │ └── groovy │ └── jp │ └── leafytree │ └── gradle │ └── AndroidLibraryScalaPluginTest.groovy ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── .travis.yml ├── gradlew.bat └── gradlew /sample/libproject/lib1/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /*.iml 3 | -------------------------------------------------------------------------------- /sample/libproject/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /*.iml 3 | 4 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /*.iml 3 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = "gradle-android-scala-plugin" 2 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /*.iml 3 | 4 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /*.iml 3 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /*.iml 3 | 4 | -------------------------------------------------------------------------------- /sample/libproject/settings.gradle: -------------------------------------------------------------------------------- 1 | include ":app" 2 | include ":lib1" 3 | -------------------------------------------------------------------------------- /src/integTest/noScala/settings.gradle: -------------------------------------------------------------------------------- 1 | include ":app" 2 | include ":lib" 3 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/settings.gradle: -------------------------------------------------------------------------------- 1 | include ":app" 2 | include ":lib" 3 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/settings.gradle: -------------------------------------------------------------------------------- 1 | include ":app" 2 | include ":lib" 3 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/settings.gradle: -------------------------------------------------------------------------------- 1 | include ":app" 2 | include ":lib" 3 | -------------------------------------------------------------------------------- /src/integTest/.gitignore: -------------------------------------------------------------------------------- 1 | /.gradle/ 2 | /.idea/ 3 | /*.iml 4 | /local.properties 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /sample/libproject/.gitignore: -------------------------------------------------------------------------------- 1 | /.gradle/ 2 | /.idea/ 3 | /build/ 4 | /*.iml 5 | /local.properties 6 | .DS_Store 7 | -------------------------------------------------------------------------------- /sample/libproject/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/main/resources/META-INF/gradle-plugins/jp.leafytree.android-scala.properties: -------------------------------------------------------------------------------- 1 | implementation-class=jp.leafytree.gradle.AndroidScalaPlugin 2 | -------------------------------------------------------------------------------- /src/integTest/lib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello world! 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/hello/.gitignore: -------------------------------------------------------------------------------- 1 | /local.properties 2 | /.classpath 3 | /.project 4 | /*.iml 5 | /*.ipr 6 | /*.iws 7 | /.idea/ 8 | /build/ 9 | /.gradle/ 10 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello world! 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/simple/.gitignore: -------------------------------------------------------------------------------- 1 | /local.properties 2 | /.classpath 3 | /.project 4 | /*.iml 5 | /*.ipr 6 | /*.iws 7 | /.idea/ 8 | /build/ 9 | /.gradle/ 10 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello world! 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello world! 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/hello/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/app/.gitignore: -------------------------------------------------------------------------------- 1 | /*.iml 2 | /.gradle/ 3 | /.idea/ 4 | /build/ 5 | /gradle.properties 6 | /gradle/wrapper/gradle-wrapper.properties 7 | /local.properties 8 | -------------------------------------------------------------------------------- /src/integTest/apt/.gitignore: -------------------------------------------------------------------------------- 1 | /*.iml 2 | /.gradle/ 3 | /.idea/ 4 | /build/ 5 | /gradle.properties 6 | /gradle/wrapper/gradle-wrapper.properties 7 | /local.properties 8 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello world! 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/lib/.gitignore: -------------------------------------------------------------------------------- 1 | /*.iml 2 | /.gradle/ 3 | /.idea/ 4 | /build/ 5 | /gradle.properties 6 | /gradle/wrapper/gradle-wrapper.properties 7 | /local.properties 8 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello world! 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/simple/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/simple/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/noScala/.gitignore: -------------------------------------------------------------------------------- 1 | /*.iml 2 | /.gradle/ 3 | /.idea/ 4 | /build/ 5 | /gradle.properties 6 | /gradle/wrapper/gradle-wrapper.properties 7 | /local.properties 8 | -------------------------------------------------------------------------------- /sample/libproject/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/app/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/apt/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/lib/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/lib/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/.gitignore: -------------------------------------------------------------------------------- 1 | /*.iml 2 | /.gradle/ 3 | /.idea/ 4 | /build/ 5 | /gradle.properties 6 | /gradle/wrapper/gradle-wrapper.properties 7 | /local.properties 8 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/.gitignore: -------------------------------------------------------------------------------- 1 | /*.iml 2 | /.gradle/ 3 | /.idea/ 4 | /build/ 5 | /gradle.properties 6 | /gradle/wrapper/gradle-wrapper.properties 7 | /local.properties 8 | -------------------------------------------------------------------------------- /sample/hello/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/hello/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/hello/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/simple/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/simple/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/simple/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/simple/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/hello/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/simple/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/simple/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/simple/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/simple/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/hello/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/hello/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/hello/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/hello/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/hello/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LibprojectSample 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/integTest/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /sample/libproject/app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LibprojectSample 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/integTest/app/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/app/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LibprojectSample 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/integTest/apt/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/apt/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/apt/src/main/scala/jp/leafytree/android/hello/HelloScala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | class HelloScala { 4 | def say = { 5 | "Hello. I'm Scala !" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | /.gradle/ 3 | /.idea/ 4 | /app/build/ 5 | /build/ 6 | /gradle.properties 7 | /gradle/wrapper/gradle-wrapper.properties 8 | /lib/build/ 9 | /local.properties 10 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LibprojectSample 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor1/scala/jp/leafytree/android/hello/FlavorScala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | class FlavorScala { 4 | def name() = { 5 | "flavor1Scala" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor2/scala/jp/leafytree/android/hello/FlavorScala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | class FlavorScala { 4 | def name() = { 5 | "flavor2Scala" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | LibprojectSample 5 | 6 | 7 | -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/lib1/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/lib1/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/lib1/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/sample/libproject/lib1/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | /.gradle/ 3 | /.idea/ 4 | /app/build/ 5 | /build/ 6 | /gradle.properties 7 | /gradle/wrapper/gradle-wrapper.properties 8 | /lib/build/ 9 | /local.properties 10 | -------------------------------------------------------------------------------- /src/integTest/lib/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1Scala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | class Lib1Scala { 4 | def getName: String = getClass.getSimpleName 5 | } 6 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor3Moved/scala/jp/leafytree/android/hello/FlavorScala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | class FlavorScala { 4 | def name() = { 5 | "flavor3Scala" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /sample/hello/src/main/java/jp/leafytree/android/hello/HelloJava.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | public class HelloJava { 4 | public String say() { 5 | return "Hello. I'm Java !"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1Scala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | class Lib1Scala { 4 | def getName: String = getClass.getSimpleName 5 | } 6 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/app/src/main/scala/jp/leafytree/android/hello/HelloScala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | class HelloScala { 4 | def say = { 5 | "Hello. I'm Scala !\n℀℁ℂ℃℄℅℆ℇ℈℉ℊℋℌℍℎℏ" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/appAndLib/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1Scala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | class Lib1Scala { 4 | def getName: String = getClass.getSimpleName 5 | } 6 | -------------------------------------------------------------------------------- /src/integTest/apt/src/main/java/jp/leafytree/android/hello/HelloJava.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | public class HelloJava { 4 | public String say() { 5 | return "Hello. I'm Java !"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/noScala/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/simpleFlavor/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1Scala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | class Lib1Scala { 4 | def getName: String = getClass.getSimpleName 5 | } 6 | -------------------------------------------------------------------------------- /sample/hello/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/hello/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello 5 | Hello world! 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/largeAppAndLib/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor1/java/jp/leafytree/android/hello/FlavorJava.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | public class FlavorJava { 4 | public String name() { 5 | return "flavor1Java"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor2/java/jp/leafytree/android/hello/FlavorJava.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | public class FlavorJava { 4 | public String name() { 5 | return "flavor2Java"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /sample/simple/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Simple 5 | Hello, Scala ! 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/integTest/app/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello 5 | Hello world! 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/integTest/apt/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/apt/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello 5 | Hello world! 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor3Moved/java/jp/leafytree/android/hello/FlavorJava.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | public class FlavorJava { 4 | public String name() { 5 | return "flavor3Java"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/app/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/angebagui/gradle-android-scala-plugin/master/src/integTest/useScalaOnlyTest/lib/src/androidTest/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /src/integTest/app/src/main/java/jp/leafytree/android/hello/HelloJava.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | public class HelloJava { 4 | public String say() { 5 | return "Hello. I'm Java !\n∀∁∂∃∄∅∆∇∈∉∊∋∌∍∎∏"; 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Hello 5 | Hello world! 6 | 7 | 8 | -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/lib/src/main/java/jp/leafytree/android/libproject/lib1/Lib1Java.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | public class Lib1Java { 4 | public String getName() { 5 | return Lib1Java.class.getSimpleName(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/main/java/jp/leafytree/android/libproject/lib1/Lib1Java.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | public class Lib1Java { 4 | public String getName() { 5 | return Lib1Java.class.getSimpleName(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/main/java/jp/leafytree/android/libproject/lib1/Lib1Java.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | public class Lib1Java { 4 | public String getName() { 5 | return Lib1Java.class.getSimpleName(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/main/java/jp/leafytree/android/libproject/lib1/Lib1Java.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | public class Lib1Java { 4 | public String getName() { 5 | return Lib1Java.class.getSimpleName(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor3/scala/jp/leafytree/android/hello/FlavorScala.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import junit.framework.Assert 4 | 5 | class FlavorScala { 6 | def name() = { 7 | Assert.fail("flavor3 moved!") 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/main/java/jp/leafytree/android/libproject/lib1/Lib1Java.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | public class Lib1Java { 4 | public String getName() { 5 | return Lib1Java.class.getSimpleName(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/main/java/jp/leafytree/android/libproject/lib1/Lib1Java.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | public class Lib1Java { 4 | public String getName() { 5 | return Lib1Java.class.getSimpleName(); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Mar 27 14:09:39 JST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip 7 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/flavor3/java/jp/leafytree/android/hello/FlavorJava.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | import junit.framework.Assert; 4 | 5 | public class FlavorJava { 6 | public String name() { 7 | Assert.fail("flavor3 moved!"); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /sample/hello/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Feb 06 13:02:18 JST 2014 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-bin.zip 7 | -------------------------------------------------------------------------------- /sample/simple/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Feb 06 12:48:11 JST 2014 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-bin.zip 7 | -------------------------------------------------------------------------------- /sample/libproject/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Feb 06 12:57:32 JST 2014 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-bin.zip 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.gradle/ 2 | /build/ 3 | /classes/ 4 | /out/ 5 | /repo/ 6 | /.idea/ 7 | /src/integTest/gradle/wrapper/gradle-wrapper.properties 8 | /*.iml 9 | /*.ipr 10 | /*.iws 11 | /gh-pages/ 12 | /gradle.properties 13 | /buildSrc/.gradle/ 14 | /buildSrc/build/ 15 | /buildSrc/*.iml 16 | 17 | .DS_Store 18 | Thumbs.db 19 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import junit.framework.{TestCase, Assert} 4 | 5 | class Lib1JavaTest extends TestCase { 6 | def test1() { 7 | Assert.assertEquals("Lib1Scala", new Lib1Scala().getName) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import junit.framework.{TestCase, Assert} 4 | 5 | class Lib1JavaTest extends TestCase { 6 | def test1() { 7 | Assert.assertEquals("Lib1Scala", new Lib1Scala().getName) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import junit.framework.TestCase; 4 | 5 | public class Lib1ScalaTest extends TestCase { 6 | public void test1() { 7 | assertEquals("Lib1Scala", new Lib1Scala().getName()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import junit.framework.{TestCase, Assert} 4 | 5 | class Lib1JavaTest extends TestCase { 6 | def test1() { 7 | Assert.assertEquals("Lib1Scala", new Lib1Scala().getName) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1JavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import junit.framework.TestCase; 4 | 5 | public class Lib1JavaTest extends TestCase { 6 | public void test1() { 7 | assertEquals("Lib1Java", new Lib1Java().getName()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import junit.framework.TestCase; 4 | 5 | public class Lib1ScalaTest extends TestCase { 6 | public void test1() { 7 | assertEquals("Lib1Scala", new Lib1Scala().getName()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import junit.framework.TestCase; 4 | 5 | public class Lib1ScalaTest extends TestCase { 6 | public void test1() { 7 | assertEquals("Lib1Scala", new Lib1Scala().getName()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import junit.framework.TestCase; 4 | 5 | public class Lib1ScalaTest extends TestCase { 6 | public void test1() { 7 | assertEquals("Lib1Java", new Lib1Java().getName()); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import junit.framework.TestCase; 4 | 5 | public class Lib1ScalaTest extends TestCase { 6 | public void testCallScalaClass() { 7 | assertEquals("Lib1Scala", new Lib1Scala().getName()); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /sample/libproject/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | } 5 | 6 | dependencies { 7 | classpath "com.android.tools.build:gradle:1.3.1" 8 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.4" 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | jcenter() 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import junit.framework.{TestCase, Assert} 4 | import jp.leafytree.android.libproject.lib1.Lib1Scala 5 | 6 | class Lib1JavaTest extends TestCase { 7 | def test1() { 8 | Assert.assertEquals("Lib1Scala", new Lib1Scala().getName) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import junit.framework.{TestCase, Assert} 4 | import jp.leafytree.android.libproject.lib1.Lib1Scala 5 | 6 | class Lib1JavaTest extends TestCase { 7 | def test1() { 8 | Assert.assertEquals("Lib1Scala", new Lib1Scala().getName) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import junit.framework.{TestCase, Assert} 4 | import jp.leafytree.android.libproject.lib1.Lib1Scala 5 | 6 | class Lib1JavaTest extends TestCase { 7 | def test1() { 8 | Assert.assertEquals("Lib1Scala", new Lib1Scala().getName) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import junit.framework.TestCase; 4 | 5 | import jp.leafytree.android.libproject.lib1.Lib1Scala; 6 | 7 | public class Lib1ScalaTest extends TestCase { 8 | public void test1() { 9 | assertEquals("Lib1Scala", new Lib1Scala().getName()); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1JavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import junit.framework.TestCase; 4 | 5 | import jp.leafytree.android.libproject.lib1.Lib1Java; 6 | 7 | public class Lib1JavaTest extends TestCase { 8 | public void test1() { 9 | assertEquals("Lib1Java", new Lib1Java().getName()); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /sample/libproject/app/src/main/res/layout/activity_app.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import junit.framework.TestCase; 4 | 5 | import jp.leafytree.android.libproject.lib1.Lib1Scala; 6 | 7 | public class Lib1ScalaTest extends TestCase { 8 | public void test1() { 9 | assertEquals("Lib1Scala", new Lib1Scala().getName()); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/integTest/lib/src/main/res/layout/activity_lib1_scala.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/main/res/layout/activity_lib1_scala.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/res/layout/activity_app.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1ScalaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import junit.framework.TestCase; 4 | 5 | import jp.leafytree.android.libproject.lib1.Lib1Scala; 6 | 7 | public class Lib1ScalaTest extends TestCase { 8 | public void test1() { 9 | assertEquals("Lib1Scala", new Lib1Scala().getName()); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/res/layout/activity_app.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/main/res/layout/activity_lib1_scala.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/res/layout/activity_app.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/main/res/layout/activity_lib1_scala.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/main/res/layout/activity_lib1_scala.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/res/layout/activity_app.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /sample/simple/src/main/scala/jp/leafytree/android/simple/SimpleActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.simple 2 | 3 | import android.app.Activity 4 | import android.widget.TextView 5 | import android.os.Bundle 6 | 7 | class SimpleActivity extends Activity { 8 | protected override def onCreate(savedInstanceState: Bundle) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_simple) 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import junit.framework.{TestCase, Assert} 4 | 5 | class Lib1JavaTest extends TestCase { 6 | def test1() { 7 | Assert.assertEquals("Lib1Java", new Lib1Java().getName) 8 | Assert.assertEquals(List("Lib1Java").last, Option(new Lib1Java().getName).get) 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/main/res/layout/activity_lib1_scala.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /sample/hello/src/main/res/layout/activity_hello.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /sample/simple/src/main/res/layout/activity_simple.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/app/src/main/res/layout/activity_hello.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/apt/src/main/res/layout/activity_hello.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import junit.framework.{TestCase, Assert} 4 | 5 | class Lib1JavaTest extends TestCase { 6 | def testCallScalaClass() { 7 | Assert.assertEquals("Lib1Scala", new Lib1Scala().getName) 8 | } 9 | 10 | // def testScalazUsability() { 11 | // Assert.assertEquals(12345, "12345".parseInt.getOrElse(0)) 12 | // } 13 | } 14 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/res/layout/activity_hello.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/integTest/noScala/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | dependencies { 9 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 10 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | jcenter() 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 11 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | dependencies { 9 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 10 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | jcenter() 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1JavaTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import junit.framework.{TestCase, Assert} 4 | import jp.leafytree.android.libproject.lib1.Lib1Java 5 | 6 | class Lib1JavaTest extends TestCase { 7 | def test1() { 8 | Assert.assertEquals("Lib1Java", new Lib1Java().getName) 9 | Assert.assertEquals(List("Lib1Java").last, Option(new Lib1Java().getName).get) 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 11 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /sample/hello/src/androidTest/scala/jp/leafytree/android/hello/HelloActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import junit.framework.Assert 6 | 7 | class HelloActivityTest extends ActivityInstrumentationTestCase2[HelloActivity](classOf[HelloActivity]) { 8 | def test1() { 9 | Assert.assertTrue(true) 10 | } 11 | 12 | def test2() { 13 | Assert.assertEquals("Hello. I'm Java !", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/integTest/app/src/main/scala/jp/leafytree/android/hello/HelloActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import android.app.Activity 4 | import android.os.Bundle 5 | import android.widget.TextView 6 | 7 | class HelloActivity extends Activity { 8 | override def onCreate(savedInstanceState: Bundle) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_hello) 11 | val scalaTextView = findViewById(R.id.scala_text_view).asInstanceOf[TextView] 12 | scalaTextView.setText(new HelloJava().say + "\n" + new HelloScala().say) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/src/main/java/jp/leafytree/android/libproject/lib1/Lib1JavaActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | public class Lib1JavaActivity extends Activity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | TextView textView = new TextView(this); 12 | textView.setText("Lib1Java"); 13 | setContentView(textView); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/scala/jp/leafytree/android/hello/HelloScalaActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import android.app.Activity 4 | import android.os.Bundle 5 | import android.widget.TextView 6 | 7 | class HelloScalaActivity extends Activity { 8 | override def onCreate(savedInstanceState: Bundle) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_hello) 11 | val scalaTextView = findViewById(R.id.scala_text_view).asInstanceOf[TextView] 12 | scalaTextView.setText(new FlavorJava().name + new FlavorScala().name) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/main/java/jp/leafytree/android/libproject/lib1/Lib1JavaActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | public class Lib1JavaActivity extends Activity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | TextView textView = new TextView(this); 12 | textView.setText("Lib1Java"); 13 | setContentView(textView); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/integTest/lib/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.os.Bundle 4 | import android.app.Activity 5 | import android.widget.TextView 6 | 7 | class Lib1ScalaActivity extends Activity { 8 | override protected def onCreate(savedInstanceState: Bundle) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_lib1_scala) 11 | val scalaTextView = findViewById(R.id.scala_text_view).asInstanceOf[TextView] 12 | scalaTextView.setText(new Lib1Java().getName) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.os.Bundle 4 | import android.app.Activity 5 | import android.widget.TextView 6 | 7 | class Lib1ScalaActivity extends Activity { 8 | override protected def onCreate(savedInstanceState: Bundle) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_lib1_scala) 11 | val scalaTextView = findViewById(R.id.scala_text_view).asInstanceOf[TextView] 12 | scalaTextView.setText(new Lib1Java().getName) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.os.Bundle 4 | import android.app.Activity 5 | import android.widget.TextView 6 | 7 | class Lib1ScalaActivity extends Activity { 8 | override protected def onCreate(savedInstanceState: Bundle) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_lib1_scala) 11 | val scalaTextView = findViewById(R.id.scala_text_view).asInstanceOf[TextView] 12 | scalaTextView.setText(new Lib1Java().getName) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/main/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.os.Bundle 4 | import android.app.Activity 5 | import android.widget.TextView 6 | 7 | class Lib1ScalaActivity extends Activity { 8 | override protected def onCreate(savedInstanceState: Bundle) { 9 | super.onCreate(savedInstanceState) 10 | setContentView(R.layout.activity_lib1_scala) 11 | val scalaTextView = findViewById(R.id.scala_text_view).asInstanceOf[TextView] 12 | scalaTextView.setText(new Lib1Java().getName) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/java/jp/leafytree/android/hello/HelloJavaActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | public class HelloJavaActivity extends Activity { 8 | public void onCreate(Bundle savedInstanceState) { 9 | super.onCreate(savedInstanceState); 10 | setContentView(R.layout.activity_hello); 11 | TextView scalaTextView = (TextView) findViewById(R.id.scala_text_view); 12 | scalaTextView.setText(new FlavorJava().name() + new FlavorScala().name()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import junit.framework.Assert 6 | 7 | class Lib1ScalaActivityTest extends ActivityInstrumentationTestCase2[Lib1ScalaActivity](classOf[Lib1ScalaActivity]) { 8 | def test1() { 9 | Assert.assertTrue(true) 10 | } 11 | 12 | def test2() { 13 | Assert.assertEquals("Lib1Java", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /sample/hello/src/androidTest/java/jp/leafytree/android/hello/HelloActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | public class HelloActivityJavaTest extends ActivityInstrumentationTestCase2 { 7 | public HelloActivityJavaTest() { 8 | super(HelloActivity.class); 9 | } 10 | 11 | public void test1() { 12 | assertTrue(true); 13 | } 14 | 15 | public void test2() { 16 | assertEquals("Hello. I'm Java !", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/java/jp/leafytree/android/libproject/AppActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | import jp.leafytree.android.libproject.lib1.Lib1Java; 8 | 9 | public class AppActivity extends Activity { 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_app); 14 | TextView messageTextView = (TextView) findViewById(R.id.message_text_view); 15 | messageTextView.setText(new Lib1Java().getName()); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/java/jp/leafytree/android/libproject/AppActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | import jp.leafytree.android.libproject.lib1.Lib1Java; 8 | 9 | public class AppActivity extends Activity { 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_app); 14 | TextView messageTextView = (TextView) findViewById(R.id.message_text_view); 15 | messageTextView.setText(new Lib1Java().getName()); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/java/jp/leafytree/android/libproject/AppActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | import jp.leafytree.android.libproject.lib1.Lib1Java; 8 | 9 | public class AppActivity extends Activity { 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_app); 14 | TextView messageTextView = (TextView) findViewById(R.id.message_text_view); 15 | messageTextView.setText(new Lib1Java().getName()); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/main/java/jp/leafytree/android/libproject/AppActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | import jp.leafytree.android.libproject.lib1.Lib1Java; 8 | 9 | public class AppActivity extends Activity { 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | setContentView(R.layout.activity_app); 14 | TextView messageTextView = (TextView) findViewById(R.id.message_text_view); 15 | messageTextView.setText(new Lib1Java().getName()); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /sample/libproject/lib1/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.library" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion "android-22" 6 | buildToolsVersion "22.0.1" 7 | 8 | defaultConfig { 9 | minSdkVersion 8 10 | targetSdkVersion 22 11 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 12 | versionCode 1 13 | versionName "1.0" 14 | } 15 | } 16 | 17 | dependencies { 18 | compile "org.scala-lang:scala-library:2.11.7" 19 | compile "com.android.support:multidex:1.0.1" 20 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 21 | } 22 | -------------------------------------------------------------------------------- /sample/libproject/lib1/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 7 | public Lib1ScalaActivityJavaTest() { 8 | super(Lib1ScalaActivity.class); 9 | } 10 | 11 | public void test1() { 12 | assertTrue(true); 13 | } 14 | 15 | public void test2() { 16 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 7 | public Lib1ScalaActivityJavaTest() { 8 | super(Lib1ScalaActivity.class); 9 | } 10 | 11 | public void test1() { 12 | assertTrue(true); 13 | } 14 | 15 | public void test2() { 16 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 7 | public Lib1ScalaActivityJavaTest() { 8 | super(Lib1ScalaActivity.class); 9 | } 10 | 11 | public void test1() { 12 | assertTrue(true); 13 | } 14 | 15 | public void test2() { 16 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/integTest/apt/src/main/java/jp/leafytree/android/hello/HelloActivity.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.widget.TextView; 6 | 7 | import org.androidannotations.annotations.AfterViews; 8 | import org.androidannotations.annotations.EActivity; 9 | import org.androidannotations.annotations.ViewById; 10 | 11 | @EActivity(R.layout.activity_hello) 12 | public class HelloActivity extends Activity { 13 | @ViewById 14 | TextView scalaTextView; 15 | 16 | @AfterViews 17 | public void fillScalaTextView() { 18 | scalaTextView.setText(new HelloJava().say() + "\n" + new HelloScala().say()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1ScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import jp.leafytree.android.libproject.R 6 | import junit.framework.Assert 7 | import jp.leafytree.android.libproject.lib1.Lib1ScalaActivity 8 | 9 | class Lib1ScalaActivityTest extends ActivityInstrumentationTestCase2[Lib1ScalaActivity](classOf[Lib1ScalaActivity]) { 10 | def test1() { 11 | Assert.assertTrue(true) 12 | } 13 | 14 | def test2() { 15 | Assert.assertEquals("Lib1Java", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/integTest/noScala/lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.library" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | 15 | dexOptions { 16 | incremental androidPluginIncremental.toBoolean() 17 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 18 | jumboMode androidPluginJumboMode.toBoolean() 19 | javaMaxHeapSize "2g" 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import junit.framework.Assert 6 | import scala.io.Source 7 | 8 | class Lib1ScalaActivityTest extends ActivityInstrumentationTestCase2[Lib1ScalaActivity](classOf[Lib1ScalaActivity]) { 9 | def test1() { 10 | Assert.assertTrue(true) 11 | } 12 | 13 | def test2() { 14 | Assert.assertEquals("Lib1Java", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 15 | } 16 | 17 | def test3() { 18 | Assert.assertEquals(Source.fromString("x").toList(0), 'x') 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import junit.framework.Assert 6 | import scala.io.Source 7 | 8 | class Lib1ScalaActivityTest extends ActivityInstrumentationTestCase2[Lib1ScalaActivity](classOf[Lib1ScalaActivity]) { 9 | def test1() { 10 | Assert.assertTrue(true) 11 | } 12 | 13 | def test2() { 14 | Assert.assertEquals("Lib1Java", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 15 | } 16 | 17 | def test3() { 18 | Assert.assertEquals(Source.fromString("x").toList(0), 'x') 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.view.ViewGroup; 5 | import android.widget.TextView; 6 | 7 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 8 | public Lib1ScalaActivityJavaTest() { 9 | super(Lib1JavaActivity.class); 10 | } 11 | 12 | public void test1() { 13 | assertTrue(true); 14 | } 15 | 16 | public void test2() { 17 | assertEquals("Lib1Java", ((TextView)((ViewGroup) getActivity().findViewById(android.R.id.content)).getChildAt(0)).getText()); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | 15 | dexOptions { 16 | incremental androidPluginIncremental.toBoolean() 17 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 18 | jumboMode androidPluginJumboMode.toBoolean() 19 | javaMaxHeapSize "2g" 20 | } 21 | } 22 | 23 | dependencies { 24 | compile project(":lib") 25 | } 26 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/java/jp/leafytree/android/libproject/app/AppActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import android.app.Activity; 4 | import android.test.ActivityInstrumentationTestCase2; 5 | import android.widget.TextView; 6 | import jp.leafytree.android.libproject.AppActivity; 7 | import jp.leafytree.android.libproject.R; 8 | 9 | public class AppActivityJavaTest extends ActivityInstrumentationTestCase2 { 10 | public AppActivityJavaTest() { 11 | super(AppActivity.class); 12 | } 13 | 14 | public void test1() { 15 | assertTrue(true); 16 | } 17 | 18 | public void test2() { 19 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.message_text_view)).getText()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /sample/libproject/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | import jp.leafytree.android.libproject.R; 6 | import jp.leafytree.android.libproject.lib1.Lib1ScalaActivity; 7 | 8 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 9 | public Lib1ScalaActivityJavaTest() { 10 | super(Lib1ScalaActivity.class); 11 | } 12 | 13 | public void test1() { 14 | assertTrue(true); 15 | } 16 | 17 | public void test2() { 18 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /sample/libproject/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | import jp.leafytree.android.libproject.R; 7 | import jp.leafytree.android.libproject.lib1.Lib1ScalaActivity; 8 | 9 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 10 | public Lib1ScalaActivityJavaTest() { 11 | super(Lib1ScalaActivity.class); 12 | } 13 | 14 | public void test1() { 15 | assertTrue(true); 16 | } 17 | 18 | public void test2() { 19 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | import jp.leafytree.android.libproject.R; 6 | import jp.leafytree.android.libproject.lib1.Lib1ScalaActivity; 7 | 8 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 9 | public Lib1ScalaActivityJavaTest() { 10 | super(Lib1ScalaActivity.class); 11 | } 12 | 13 | public void test1() { 14 | assertTrue(true); 15 | } 16 | 17 | public void test2() { 18 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /sample/hello/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /sample/simple/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/integTest/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/integTest/apt/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/integTest/noScala/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1JavaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.view.ViewGroup; 5 | import android.widget.TextView; 6 | 7 | 8 | import jp.leafytree.android.libproject.R; 9 | import jp.leafytree.android.libproject.lib1.Lib1JavaActivity; 10 | 11 | public class Lib1JavaActivityJavaTest extends ActivityInstrumentationTestCase2 { 12 | public Lib1JavaActivityJavaTest() { 13 | super(Lib1JavaActivity.class); 14 | } 15 | 16 | public void test1() { 17 | assertTrue(true); 18 | } 19 | 20 | public void test2() { 21 | assertEquals("Lib1Java", ((TextView)((ViewGroup) getActivity().findViewById(android.R.id.content)).getChildAt(0)).getText()); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/java/jp/leafytree/android/libproject/app/Lib1JavaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.view.ViewGroup; 5 | import android.widget.TextView; 6 | 7 | import jp.leafytree.android.libproject.R; 8 | import jp.leafytree.android.libproject.lib1.Lib1JavaActivity; 9 | 10 | public class Lib1JavaActivityJavaTest extends ActivityInstrumentationTestCase2 { 11 | public Lib1JavaActivityJavaTest() { 12 | super(Lib1JavaActivity.class); 13 | } 14 | 15 | public void test1() { 16 | assertTrue(true); 17 | } 18 | 19 | public void test2() { 20 | assertEquals("Lib1Java", ((TextView)((ViewGroup) getActivity().findViewById(android.R.id.content)).getChildAt(0)).getText()); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /sample/hello/src/main/scala/jp/leafytree/android/hello/HelloActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import android.app.Activity 4 | import android.os.Bundle 5 | import android.util.Log 6 | import android.widget.TextView 7 | import com.google.common.collect.ImmutableSet 8 | import org.apache.commons.math3.analysis.function.Abs 9 | import scalaz.Scalaz._ 10 | 11 | class HelloActivity extends Activity { 12 | override def onCreate(savedInstanceState: Bundle) { 13 | super.onCreate(savedInstanceState) 14 | setContentView(R.layout.activity_hello) 15 | val scalaTextView = findViewById(R.id.scala_text_view).asInstanceOf[TextView] 16 | scalaTextView.setText(new HelloJava().say()) 17 | 18 | val values = for { 19 | str <- List("1", "2", "3", "string", "5") 20 | int <- str.parseInt.toOption 21 | } yield (new Abs()).value(int) 22 | Log.d("debug", "" + ImmutableSet.of(values)) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1JavaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.view.ViewGroup 5 | import android.widget.TextView 6 | import jp.leafytree.android.libproject.R 7 | import junit.framework.Assert 8 | import jp.leafytree.android.libproject.lib1.{Lib1Java, Lib1JavaActivity} 9 | import scala.io.Source 10 | 11 | class Lib1JavaActivityTest extends ActivityInstrumentationTestCase2[Lib1JavaActivity](classOf[Lib1JavaActivity]) { 12 | def test1() { 13 | Assert.assertTrue(true) 14 | } 15 | 16 | def test2() { 17 | Assert.assertEquals("Lib1Java", getActivity.findViewById(android.R.id.content).asInstanceOf[ViewGroup].getChildAt(0).asInstanceOf[TextView].getText) 18 | } 19 | 20 | def test3() { 21 | Assert.assertEquals(Source.fromString("x").toList(0), 'x') 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/test/groovy/jp/leafytree/gradle/AndroidLibraryScalaPluginTest.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package jp.leafytree.gradle 17 | 18 | class AndroidLibraryScalaPluginTest extends AndroidScalaPluginTest { 19 | @Override 20 | public String androidPluginName() { 21 | "android-library" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1JavaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.view.ViewGroup 5 | import android.widget.TextView 6 | import junit.framework.Assert 7 | import scala.collection.concurrent.TrieMap 8 | 9 | class Lib1JavaActivityTest extends ActivityInstrumentationTestCase2[Lib1JavaActivity](classOf[Lib1JavaActivity]) { 10 | def test1() { 11 | Assert.assertTrue(true) 12 | } 13 | 14 | def test2() { 15 | Assert.assertEquals("Lib1Java", getActivity.findViewById(android.R.id.content).asInstanceOf[ViewGroup].getChildAt(0).asInstanceOf[TextView].getText) 16 | } 17 | 18 | def test3() { 19 | val map = TrieMap[String, String]() 20 | map.put("1", "Lib1Java") 21 | map.put("2", new Lib1Java().getName) 22 | Assert.assertEquals(map("1"), map("2")) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /sample/libproject/app/src/main/scala/jp/leafytree/android/libproject/AppActivity.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject 2 | 3 | import android.app.Activity 4 | import android.os.Bundle 5 | import android.util.Log 6 | import android.widget.TextView 7 | import com.google.common.collect.ImmutableSet 8 | import scalaz.Scalaz._ 9 | import jp.leafytree.android.libproject.lib1.Lib1Java 10 | import org.apache.commons.math3.analysis.function.Abs 11 | 12 | class AppActivity extends Activity { 13 | override def onCreate(savedInstanceState: Bundle) { 14 | super.onCreate(savedInstanceState) 15 | setContentView(R.layout.activity_app) 16 | val messageTextView = findViewById(R.id.message_text_view).asInstanceOf[TextView] 17 | messageTextView.setText(new Lib1Java().getName()) 18 | 19 | val values = for { 20 | str <- List("1", "2", "-3", "string", "5") 21 | int <- str.parseInt.toOption 22 | } yield (new Abs()).value(int) 23 | Log.d("debug", "" + ImmutableSet.of(values)) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/scala/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import scala.collection.concurrent.TrieMap 6 | import junit.framework.Assert 7 | 8 | class Lib1ScalaActivityTest extends ActivityInstrumentationTestCase2[Lib1ScalaActivity]("jp.leafytree.android.libproject.lib1", classOf[Lib1ScalaActivity]) { 9 | def testSimpleAssertion { 10 | Assert.assertTrue(true) 11 | } 12 | 13 | def testSimpleActivityAssertion { 14 | Assert.assertEquals("Lib1Java", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 15 | } 16 | 17 | def testCallScalaLibraryClassOfNotUsedByMainApp { 18 | val map = new TrieMap[String, String] 19 | map.put("x", "Lib1Java") 20 | Assert.assertEquals(map("x"), getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1ScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import jp.leafytree.android.libproject.R 6 | import junit.framework.Assert 7 | import jp.leafytree.android.libproject.lib1.{Lib1Java, Lib1ScalaActivity} 8 | import scala.collection.concurrent.TrieMap 9 | 10 | class Lib1ScalaActivityTest extends ActivityInstrumentationTestCase2[Lib1ScalaActivity](classOf[Lib1ScalaActivity]) { 11 | def test1() { 12 | Assert.assertTrue(true) 13 | } 14 | 15 | def test2() { 16 | Assert.assertEquals("Lib1Java", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 17 | } 18 | 19 | def test3() { 20 | val map = TrieMap[String, String]() 21 | map.put("1", "Lib1Java") 22 | map.put("2", new Lib1Java().getName) 23 | Assert.assertEquals(map("1"), map("2")) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | 15 | packagingOptions { 16 | exclude "META-INF/LICENSE.txt" 17 | exclude "META-INF/NOTICE.txt" 18 | } 19 | 20 | dexOptions { 21 | incremental androidPluginIncremental.toBoolean() 22 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 23 | jumboMode androidPluginJumboMode.toBoolean() 24 | javaMaxHeapSize "2g" 25 | } 26 | } 27 | 28 | dependencies { 29 | compile project(":lib") 30 | androidTestCompile "org.scala-lang:scala-library:$scalaLibraryVersion" 31 | } 32 | -------------------------------------------------------------------------------- /src/integTest/app/src/androidTest/scala/jp/leafytree/android/hello/HelloActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import junit.framework.Assert 6 | import scala.collection.concurrent.TrieMap 7 | 8 | class HelloActivityTest extends ActivityInstrumentationTestCase2[HelloActivity]("jp.leafytree.android.hello", classOf[HelloActivity]) { 9 | def testSimpleAssertion() { 10 | Assert.assertTrue(true) 11 | } 12 | 13 | def testSimpleActivityAssertion() { 14 | Assert.assertEquals(new HelloJava().say + "\n" + new HelloScala().say, getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 15 | } 16 | 17 | def testCallScalaLibraryClassOfNotUsedByMainApp() { 18 | val map = new TrieMap[String, String] 19 | map.put("x", new HelloJava().say + "\n" + new HelloScala().say) 20 | Assert.assertEquals(map("x"), getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/integTest/apt/src/androidTest/scala/jp/leafytree/android/hello/HelloActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import junit.framework.Assert 6 | import scala.collection.concurrent.TrieMap 7 | 8 | class HelloActivityTest extends ActivityInstrumentationTestCase2[HelloActivity_]("jp.leafytree.android.hello", classOf[HelloActivity_]) { 9 | def testSimpleAssertion() { 10 | Assert.assertTrue(true) 11 | } 12 | 13 | def testSimpleActivityAssertion() { 14 | Assert.assertEquals(new HelloJava().say + "\n" + new HelloScala().say, getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 15 | } 16 | 17 | def testCallScalaLibraryClassOfNotUsedByMainApp() { 18 | val map = new TrieMap[String, String] 19 | map.put("x", new HelloJava().say + "\n" + new HelloScala().say) 20 | Assert.assertEquals(map("x"), getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.library" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 12 | versionCode 1 13 | versionName "1.0" 14 | multiDexEnabled true 15 | } 16 | 17 | dexOptions { 18 | incremental androidPluginIncremental.toBoolean() 19 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 20 | jumboMode androidPluginJumboMode.toBoolean() 21 | javaMaxHeapSize "2g" 22 | } 23 | } 24 | 25 | dependencies { 26 | compile "org.scala-lang:scala-library:$scalaLibraryVersion" 27 | compile "com.android.support:multidex:1.0.1" 28 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 29 | } 30 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.library" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 12 | versionCode 1 13 | versionName "1.0" 14 | multiDexEnabled true 15 | } 16 | 17 | dexOptions { 18 | incremental androidPluginIncremental.toBoolean() 19 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 20 | jumboMode androidPluginJumboMode.toBoolean() 21 | javaMaxHeapSize "2g" 22 | } 23 | } 24 | 25 | dependencies { 26 | compile "org.scala-lang:scala-library:$scalaLibraryVersion" 27 | compile "com.android.support:multidex:1.0.1" 28 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 29 | } 30 | -------------------------------------------------------------------------------- /sample/simple/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | } 5 | 6 | dependencies { 7 | classpath "com.android.tools.build:gradle:1.3.1" 8 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.4" 9 | } 10 | } 11 | 12 | repositories { 13 | jcenter() 14 | } 15 | 16 | apply plugin: "com.android.application" 17 | apply plugin: "jp.leafytree.android-scala" 18 | 19 | android { 20 | compileSdkVersion "android-22" 21 | buildToolsVersion "22.0.1" 22 | 23 | defaultConfig { 24 | targetSdkVersion 22 25 | versionCode 1 26 | versionName "1.0" 27 | multiDexEnabled true 28 | } 29 | 30 | dexOptions { 31 | preDexLibraries false 32 | javaMaxHeapSize "2g" 33 | } 34 | 35 | productFlavors { 36 | dev { 37 | minSdkVersion 21 // To reduce compilation time 38 | } 39 | 40 | prod { 41 | minSdkVersion 8 42 | } 43 | } 44 | } 45 | 46 | dependencies { 47 | compile "org.scala-lang:scala-library:2.11.7" 48 | compile "com.android.support:multidex:1.0.1" 49 | } 50 | -------------------------------------------------------------------------------- /src/integTest/lib/src/androidTest/java/jp/leafytree/android/libproject/lib1/Lib1ScalaActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.lib1; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | 7 | import scala.collection.concurrent.TrieMap; 8 | 9 | public class Lib1ScalaActivityJavaTest extends ActivityInstrumentationTestCase2 { 10 | public Lib1ScalaActivityJavaTest() { 11 | super("jp.leafytree.android.libproject.lib1", Lib1ScalaActivity.class); 12 | } 13 | 14 | public void testSimpleAssertion() { 15 | assertTrue(true); 16 | } 17 | 18 | public void testSimpleActivityAssertion() { 19 | assertEquals("Lib1Java", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 20 | } 21 | 22 | public void testCallScalaLibraryClassOfNotUsedByMainApp() { 23 | TrieMap map = new TrieMap(); 24 | map.put("x", "Lib1Java"); 25 | assertEquals(map.apply("x"), ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/src/androidTest/scala/jp/leafytree/android/libproject/app/Lib1ScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.libproject.app 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import jp.leafytree.android.libproject.R 6 | import junit.framework.Assert 7 | import jp.leafytree.android.libproject.lib1.{Lib1Java, Lib1ScalaActivity} 8 | import scala.collection.concurrent.TrieMap 9 | import scalaz._ 10 | import Scalaz._ 11 | 12 | class Lib1ScalaActivityTest extends ActivityInstrumentationTestCase2[Lib1ScalaActivity](classOf[Lib1ScalaActivity]) { 13 | def test1() { 14 | Assert.assertTrue(true) 15 | } 16 | 17 | def test2() { 18 | Assert.assertEquals("Lib1Java", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 19 | } 20 | 21 | def test3() { 22 | val map = TrieMap[String, String]() 23 | map.put("1", "Lib1Java") 24 | map.put("2", new Lib1Java().getName) 25 | Assert.assertEquals(map("1"), map("2")) 26 | } 27 | 28 | def test4() { 29 | Assert.assertEquals(Success(123), "123".parseInt) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | jdk: oraclejdk7 3 | sudo: false 4 | addons: 5 | apt: 6 | packages: 7 | - expect 8 | - lib32z1 9 | - libstdc++6:i386 10 | env: 11 | - TERM=dumb # to get clean gradle output 12 | 13 | before_install: 14 | # Install base Android SDK 15 | - export COMPONENTS=build-tools-22.0.1,android-22,android-18,sys-img-armeabi-v7a-android-18,extra-google-m2repository,extra-android-m2repository,extra-android-support 16 | - curl -L https://raw.github.com/embarkmobile/android-sdk-installer/version-2/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS 17 | - source ~/.android-sdk-installer/env 18 | 19 | # Create and start emulator 20 | - echo no | android create avd --force -n test -t android-18 --abi armeabi-v7a 21 | - emulator -avd test -no-audio -no-window -memory 512 -wipe-data > emulator.log 2>&1 & 22 | - adb logcat > logcat.log & 23 | - wait_for_emulator 24 | 25 | script: 26 | - ./gradlew --debug check 27 | - ./gradlew --debug uploadArchives 28 | - ./gradlew --stop 29 | - ./gradlew --debug integTest 30 | 31 | after_failure: 32 | - cat emulator.log 33 | - cat logcat.log 34 | -------------------------------------------------------------------------------- /src/integTest/app/src/androidTest/java/jp/leafytree/android/hello/HelloActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | import scala.collection.concurrent.TrieMap; 7 | 8 | public class HelloActivityJavaTest extends ActivityInstrumentationTestCase2 { 9 | @SuppressWarnings("deprecation") 10 | public HelloActivityJavaTest() { 11 | super("jp.leafytree.android.hello", HelloActivity.class); 12 | } 13 | 14 | public void testSimpleAssertion() { 15 | assertTrue(true); 16 | } 17 | 18 | public void testSimpleActivityAssertion() { 19 | assertEquals(new HelloJava().say() + "\n" + new HelloScala().say(), ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 20 | } 21 | 22 | public void testCallScalaLibraryClassOfNotUsedByMainApp() { 23 | TrieMap map = new TrieMap(); 24 | map.put("x", new HelloJava().say() + "\n" + new HelloScala().say()); 25 | assertEquals(map.apply("x"), ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/integTest/apt/src/androidTest/java/jp/leafytree/android/hello/HelloActivityJavaTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | 6 | import scala.collection.concurrent.TrieMap; 7 | 8 | public class HelloActivityJavaTest extends ActivityInstrumentationTestCase2 { 9 | @SuppressWarnings("deprecation") 10 | public HelloActivityJavaTest() { 11 | super("jp.leafytree.android.hello", HelloActivity_.class); 12 | } 13 | 14 | public void testSimpleAssertion() { 15 | assertTrue(true); 16 | } 17 | 18 | public void testSimpleActivityAssertion() { 19 | assertEquals(new HelloJava().say() + "\n" + new HelloScala().say(), ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 20 | } 21 | 22 | public void testCallScalaLibraryClassOfNotUsedByMainApp() { 23 | TrieMap map = new TrieMap(); 24 | map.put("x", new HelloJava().say() + "\n" + new HelloScala().say()); 25 | assertEquals(map.apply("x"), ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/androidTest/scala/jp/leafytree/android/hello/HelloScalaActivityTest.scala: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello 2 | 3 | import android.test.ActivityInstrumentationTestCase2 4 | import android.widget.TextView 5 | import junit.framework.Assert 6 | import scala.collection.concurrent.TrieMap 7 | 8 | class HelloScalaActivityTest extends ActivityInstrumentationTestCase2[HelloScalaActivity]("jp.leafytree.android.hello", classOf[HelloScalaActivity]) { 9 | var flavor: String = _ 10 | 11 | override def setUp() { 12 | flavor = getInstrumentation().getTargetContext().getPackageName().replaceFirst(".*\\.", "") 13 | } 14 | 15 | def testSimpleAssertion() { 16 | Assert.assertTrue(true) 17 | } 18 | 19 | def testSimpleActivityAssertion() { 20 | Assert.assertEquals(f"${flavor}Java${flavor}Scala", getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 21 | } 22 | 23 | def testCallScalaLibraryClassOfNotUsedByMainApp() { 24 | val map = new TrieMap[String, String] 25 | map.put("x", f"${flavor}Java${flavor}Scala") 26 | Assert.assertEquals(map("x"), getActivity.findViewById(R.id.scala_text_view).asInstanceOf[TextView].getText) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /sample/libproject/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion "android-22" 6 | buildToolsVersion "22.0.1" 7 | 8 | defaultConfig { 9 | targetSdkVersion 22 10 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 11 | versionCode 1 12 | versionName "1.0" 13 | multiDexEnabled true 14 | } 15 | 16 | productFlavors { 17 | dev { 18 | minSdkVersion 21 // To reduce compilation time 19 | } 20 | 21 | prod { 22 | minSdkVersion 8 23 | } 24 | } 25 | 26 | dexOptions { 27 | preDexLibraries false 28 | javaMaxHeapSize "2g" 29 | } 30 | } 31 | 32 | dependencies { 33 | compile "org.scala-lang:scala-library:2.11.7" 34 | compile "com.android.support:multidex:1.0.1" 35 | compile project(":lib1") 36 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 37 | 38 | // to break 64k limit 39 | compile "org.scalaz:scalaz-core_2.11:7.1.0" 40 | compile "com.google.guava:guava-jdk5:17.0" 41 | compile "org.apache.commons:commons-math3:3.3" 42 | } 43 | 44 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 12 | versionCode 1 13 | versionName "1.0" 14 | multiDexEnabled true 15 | } 16 | 17 | dexOptions { 18 | incremental androidPluginIncremental.toBoolean() 19 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 20 | jumboMode androidPluginJumboMode.toBoolean() 21 | javaMaxHeapSize "2g" 22 | } 23 | } 24 | 25 | dependencies { 26 | compile "org.scala-lang:scala-library:$scalaLibraryVersion" 27 | compile 'com.android.support:multidex:1.0.1' 28 | compile project(":lib") 29 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 30 | } 31 | 32 | tasks.withType(ScalaCompile) { 33 | scalaCompileOptions.deprecation = false 34 | } 35 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/src/androidTest/java/jp/leafytree/android/hello/HelloJavaActivityTest.java: -------------------------------------------------------------------------------- 1 | package jp.leafytree.android.hello; 2 | 3 | import android.test.ActivityInstrumentationTestCase2; 4 | import android.widget.TextView; 5 | import scala.collection.concurrent.TrieMap; 6 | 7 | public class HelloJavaActivityTest extends ActivityInstrumentationTestCase2 { 8 | String flavor; 9 | 10 | @SuppressWarnings("deprecation") 11 | public HelloJavaActivityTest() { 12 | super("jp.leafytree.android.hello", HelloJavaActivity.class); 13 | } 14 | 15 | @Override 16 | public void setUp() { 17 | flavor = getInstrumentation().getTargetContext().getPackageName().replaceFirst(".*\\.", ""); 18 | } 19 | 20 | public void testSimpleAssertion() { 21 | assertTrue(true); 22 | } 23 | 24 | public void testSimpleActivityAssertion() { 25 | assertEquals(flavor + "Java" + flavor + "Scala", ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 26 | } 27 | 28 | public void testCallScalaLibraryClassOfNotUsedByMainApp() { 29 | TrieMap map = new TrieMap(); 30 | map.put("x", flavor + "Java" + flavor + "Scala"); 31 | assertEquals(map.apply("x"), ((TextView) getActivity().findViewById(R.id.scala_text_view)).getText()); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/groovy/jp/leafytree/gradle/AndroidScalaPluginExtension.groovy: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 the original author or authors. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package jp.leafytree.gradle 17 | 18 | /** 19 | * AndroidScalaPluginExtension has the configuration of scala. 20 | */ 21 | class AndroidScalaPluginExtension { 22 | /** scalac additional parameters */ 23 | public String addparams = "" 24 | 25 | /** 26 | * Sets scalac additional parameters 27 | * 28 | * @param addparams the additional parameters. 29 | */ 30 | public void addparams(String addparams) { 31 | this.addparams = addparams 32 | } 33 | 34 | /** 35 | * Sets scalac additional parameters 36 | * 37 | * @param target the additional parameters. 38 | */ 39 | public void additionalParameters(String addparams) { 40 | this.addparams(addparams) 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/integTest/app/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 11 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 12 | } 13 | } 14 | 15 | repositories { 16 | jcenter() 17 | } 18 | 19 | apply plugin: "com.android.application" 20 | apply plugin: "jp.leafytree.android-scala" 21 | 22 | android { 23 | compileSdkVersion androidPluginCompileSdkVersion 24 | buildToolsVersion androidPluginBuildToolsVersion 25 | 26 | defaultConfig { 27 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 28 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 29 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 30 | versionCode 1 31 | versionName "1.0" 32 | multiDexEnabled true 33 | } 34 | 35 | dexOptions { 36 | incremental androidPluginIncremental.toBoolean() 37 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 38 | jumboMode androidPluginJumboMode.toBoolean() 39 | javaMaxHeapSize "2g" 40 | } 41 | } 42 | 43 | dependencies { 44 | compile "org.scala-lang:scala-library:$scalaLibraryVersion" 45 | compile "com.android.support:multidex:1.0.1" 46 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 47 | } 48 | 49 | tasks.withType(ScalaCompile) { 50 | scalaCompileOptions.deprecation = false 51 | } 52 | -------------------------------------------------------------------------------- /sample/hello/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | } 5 | 6 | dependencies { 7 | classpath "com.android.tools.build:gradle:1.3.1" 8 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:1.4" 9 | } 10 | } 11 | 12 | repositories { 13 | jcenter() 14 | } 15 | 16 | apply plugin: "com.android.application" 17 | apply plugin: "jp.leafytree.android-scala" 18 | 19 | android { 20 | compileSdkVersion "android-22" 21 | buildToolsVersion "22.0.1" 22 | 23 | defaultConfig { 24 | targetSdkVersion 22 25 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 26 | versionCode 1 27 | versionName "1.0" 28 | multiDexEnabled true 29 | } 30 | 31 | productFlavors { 32 | dev { 33 | minSdkVersion 21 // To reduce compilation time 34 | } 35 | 36 | prod { 37 | minSdkVersion 8 38 | } 39 | } 40 | 41 | dexOptions { 42 | preDexLibraries false 43 | javaMaxHeapSize "2g" 44 | } 45 | 46 | packagingOptions { 47 | exclude 'META-INF/LICENSE.txt' 48 | exclude 'META-INF/NOTICE.txt' 49 | } 50 | } 51 | 52 | dependencies { 53 | compile "org.scala-lang:scala-library:2.11.7" 54 | compile "com.android.support:multidex:1.0.1" 55 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 56 | 57 | // to break 64k limit 58 | compile "org.scalaz:scalaz-core_2.11:7.1.0" 59 | compile "com.google.guava:guava-jdk5:17.0" 60 | compile "org.apache.commons:commons-math3:3.3" 61 | } 62 | -------------------------------------------------------------------------------- /src/integTest/lib/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | dependencies { 9 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 10 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 11 | } 12 | } 13 | 14 | repositories { 15 | jcenter() 16 | } 17 | 18 | apply plugin: "com.android.library" 19 | apply plugin: "jp.leafytree.android-scala" 20 | 21 | android { 22 | compileSdkVersion androidPluginCompileSdkVersion 23 | buildToolsVersion androidPluginBuildToolsVersion 24 | 25 | defaultConfig { 26 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 27 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 28 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 29 | versionCode 1 30 | versionName "1.0" 31 | multiDexEnabled true 32 | } 33 | 34 | dexOptions { 35 | incremental androidPluginIncremental.toBoolean() 36 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 37 | jumboMode androidPluginJumboMode.toBoolean() 38 | javaMaxHeapSize "2g" 39 | } 40 | } 41 | 42 | dependencies { 43 | compile "org.scala-lang:scala-library:$scalaLibraryVersion" 44 | //compile "org.scalaz:scalaz-core_$scalaDependencyVersion:7.0.6" 45 | compile "com.android.support:multidex:1.0.1" 46 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 47 | } 48 | 49 | tasks.withType(ScalaCompile) { 50 | scalaCompileOptions.deprecation = false 51 | } 52 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/lib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.library" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 12 | versionCode 1 13 | versionName "1.0" 14 | multiDexEnabled true 15 | } 16 | 17 | dexOptions { 18 | incremental androidPluginIncremental.toBoolean() 19 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 20 | jumboMode androidPluginJumboMode.toBoolean() 21 | javaMaxHeapSize "2g" 22 | } 23 | 24 | packagingOptions { 25 | exclude "META-INF/LICENSE.txt" 26 | exclude "META-INF/NOTICE.txt" 27 | } 28 | } 29 | 30 | dependencies { 31 | compile "com.android.support:multidex:1.0.1" 32 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 33 | androidTestCompile "org.scala-lang:scala-library:$scalaLibraryVersion" 34 | 35 | // to break 65535 method limitation 36 | //androidTestCompile "org.scalaz:scalaz-core_$scalaDependencyVersion:7.0.6" 37 | //androidTestCompile "org.apache.commons:commons-lang3:3.3.2" 38 | //androidTestCompile "org.apache.commons:commons-math3:3.2" 39 | //androidTestCompile "org.apache.commons:commons-io:1.3.2" 40 | //androidTestCompile "com.google.guava:guava:16.0.1" 41 | //androidTestCompile "com.google.code.findbugs:jsr305:2.0.3" 42 | } 43 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | apply plugin: "jp.leafytree.android-scala" 3 | 4 | android { 5 | compileSdkVersion androidPluginCompileSdkVersion 6 | buildToolsVersion androidPluginBuildToolsVersion 7 | 8 | defaultConfig { 9 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 10 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 11 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 12 | versionCode 1 13 | versionName "1.0" 14 | multiDexEnabled true 15 | } 16 | 17 | productFlavors { 18 | flavor1 {} 19 | flavor2 {} 20 | } 21 | 22 | packagingOptions { 23 | exclude "META-INF/LICENSE.txt" 24 | exclude "META-INF/NOTICE.txt" 25 | } 26 | 27 | buildTypes { 28 | debug {} 29 | debug2 {} 30 | } 31 | 32 | dexOptions { 33 | incremental androidPluginIncremental.toBoolean() 34 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 35 | jumboMode androidPluginJumboMode.toBoolean() 36 | javaMaxHeapSize "2g" 37 | } 38 | } 39 | 40 | dependencies { 41 | flavor1Compile "org.scala-lang:scala-library:$scalaLibraryVersion" 42 | flavor2Compile "org.scala-lang:scala-library:$scalaLibraryVersion" 43 | compile "com.android.support:multidex:1.0.1" 44 | compile project(":lib") 45 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 46 | 47 | // to break 65535 method limitation 48 | compile "org.scalaz:scalaz-core_$scalaDependencyVersion:7.0.6" 49 | compile "org.apache.commons:commons-lang3:3.3.2" 50 | compile "org.apache.commons:commons-math3:3.2" 51 | compile "org.apache.commons:commons-io:1.3.2" 52 | compile "com.google.guava:guava:16.0.1" 53 | compile "com.google.code.findbugs:jsr305:2.0.3" 54 | } 55 | -------------------------------------------------------------------------------- /src/integTest/apt/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 11 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 12 | classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4+' 13 | } 14 | } 15 | 16 | repositories { 17 | jcenter() 18 | } 19 | 20 | apply plugin: "com.android.application" 21 | apply plugin: "com.neenbedankt.android-apt" 22 | apply plugin: "jp.leafytree.android-scala" 23 | 24 | android { 25 | compileSdkVersion androidPluginCompileSdkVersion 26 | buildToolsVersion androidPluginBuildToolsVersion 27 | 28 | defaultConfig { 29 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 30 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 31 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 32 | versionCode 1 33 | versionName "1.0" 34 | multiDexEnabled true 35 | } 36 | 37 | dexOptions { 38 | incremental androidPluginIncremental.toBoolean() 39 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 40 | jumboMode androidPluginJumboMode.toBoolean() 41 | javaMaxHeapSize "2g" 42 | } 43 | } 44 | 45 | apt { 46 | arguments { 47 | resourcePackageName "jp.leafytree.android.hello" 48 | androidManifestFile "src/main/AndroidManifest.xml" 49 | } 50 | } 51 | 52 | def AAVersion = "3.2" 53 | 54 | dependencies { 55 | apt "org.androidannotations:androidannotations:$AAVersion" 56 | compile "org.androidannotations:androidannotations-api:$AAVersion" 57 | compile "org.scala-lang:scala-library:$scalaLibraryVersion" 58 | compile "com.android.support:multidex:1.0.1" 59 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 60 | } 61 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | mavenCentral() 4 | maven { 5 | url snaphotRepositoryUrl 6 | } 7 | } 8 | 9 | dependencies { 10 | classpath "com.android.tools.build:gradle:$androidPluginVersion" 11 | classpath "jp.leafytree.gradle:gradle-android-scala-plugin:$androidScalaPluginVersion" 12 | } 13 | } 14 | 15 | repositories { 16 | jcenter() 17 | } 18 | 19 | apply plugin: "com.android.application" 20 | apply plugin: "jp.leafytree.android-scala" 21 | 22 | android { 23 | compileSdkVersion androidPluginCompileSdkVersion 24 | buildToolsVersion androidPluginBuildToolsVersion 25 | 26 | defaultConfig { 27 | minSdkVersion Integer.decode(androidPluginMinSdkVersion) 28 | targetSdkVersion Integer.decode(androidPluginTargetSdkVersion) 29 | testInstrumentationRunner "com.android.test.runner.MultiDexTestRunner" 30 | versionCode 1 31 | versionName "1.0" 32 | multiDexEnabled true 33 | } 34 | 35 | productFlavors { 36 | flavor1 { 37 | applicationId "jp.leafytree.android.hello.flavor1" 38 | } 39 | 40 | flavor2 { 41 | applicationId "jp.leafytree.android.hello.flavor2" 42 | } 43 | 44 | flavor3 { 45 | applicationId "jp.leafytree.android.hello.flavor3" 46 | } 47 | } 48 | 49 | sourceSets { 50 | flavor3 { 51 | java { 52 | srcDirs = ['src/flavor3Moved/java'] 53 | } 54 | 55 | scala { 56 | srcDirs = ['src/flavor3Moved/scala'] 57 | } 58 | } 59 | } 60 | 61 | dexOptions { 62 | incremental androidPluginIncremental.toBoolean() 63 | preDexLibraries androidPluginPreDexLibraries.toBoolean() 64 | jumboMode androidPluginJumboMode.toBoolean() 65 | javaMaxHeapSize "2g" 66 | } 67 | } 68 | 69 | dependencies { 70 | compile "org.scala-lang:scala-library:$scalaLibraryVersion" 71 | compile "com.android.support:multidex:1.0.1" 72 | androidTestCompile "com.android.support:multidex-instrumentation:1.0.1", { exclude module: "multidex" } 73 | } 74 | -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /sample/hello/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /sample/simple/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /sample/libproject/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/app/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/apt/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/lib/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/noScala/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/appAndLib/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/simpleFlavor/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/largeAppAndLib/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /src/integTest/useScalaOnlyTest/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /sample/hello/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /sample/simple/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | --------------------------------------------------------------------------------