From 5930d674a2370607263af839197e2e723b34b8eb Mon Sep 17 00:00:00 2001 From: Jack Palevich Date: Sat, 14 Feb 2015 10:09:49 -0800 Subject: [PATCH] Add pathbroadcasts to gradle build --- examples/pathbroadcasts/.gitignore | 1 + examples/pathbroadcasts/ant.properties | 17 ----------- examples/pathbroadcasts/build.gradle | 28 +++++++++++++++++++ examples/pathbroadcasts/proguard-project.txt | 20 ------------- examples/pathbroadcasts/project.properties | 14 ---------- .../{ => src/main}/AndroidManifest.xml | 0 .../{ => src/main}/assets/hello | 0 .../pathbroadcasts/{ => src/main}/assets/ls | 0 .../{ => src/main}/res/values/strings.xml | 0 settings.gradle | 3 +- 10 files changed, 31 insertions(+), 52 deletions(-) create mode 100644 examples/pathbroadcasts/.gitignore delete mode 100644 examples/pathbroadcasts/ant.properties create mode 100644 examples/pathbroadcasts/build.gradle delete mode 100644 examples/pathbroadcasts/proguard-project.txt delete mode 100644 examples/pathbroadcasts/project.properties rename examples/pathbroadcasts/{ => src/main}/AndroidManifest.xml (100%) rename examples/pathbroadcasts/{ => src/main}/assets/hello (100%) rename examples/pathbroadcasts/{ => src/main}/assets/ls (100%) rename examples/pathbroadcasts/{ => src/main}/res/values/strings.xml (100%) diff --git a/examples/pathbroadcasts/.gitignore b/examples/pathbroadcasts/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/examples/pathbroadcasts/.gitignore @@ -0,0 +1 @@ +/build diff --git a/examples/pathbroadcasts/ant.properties b/examples/pathbroadcasts/ant.properties deleted file mode 100644 index b0971e8..0000000 --- a/examples/pathbroadcasts/ant.properties +++ /dev/null @@ -1,17 +0,0 @@ -# This file is used to override default values used by the Ant build system. -# -# This file must be checked into Version Control Systems, as it is -# integral to the build system of your project. - -# This file is only used by the Ant script. - -# You can use this to override default values such as -# 'source.dir' for the location of your java source folder and -# 'out.dir' for the location of your output folder. - -# You can also use it define how the release builds are signed by declaring -# the following properties: -# 'key.store' for the location of your keystore and -# 'key.alias' for the name of the key to use. -# The password will be asked during the build when you use the 'release' target. - diff --git a/examples/pathbroadcasts/build.gradle b/examples/pathbroadcasts/build.gradle new file mode 100644 index 0000000..2472d6a --- /dev/null +++ b/examples/pathbroadcasts/build.gradle @@ -0,0 +1,28 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 11 + buildToolsVersion "21.1.2" + + defaultConfig { + applicationId "jackpal.androidterm.sample.pathbroadcasts" + minSdkVersion 3 + targetSdkVersion 11 + + ndk { + moduleName "libjackpal-androidterm4" + ldLibs "log" + } + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } +} + +dependencies { + compile project(':emulatorview') +} diff --git a/examples/pathbroadcasts/proguard-project.txt b/examples/pathbroadcasts/proguard-project.txt deleted file mode 100644 index f2fe155..0000000 --- a/examples/pathbroadcasts/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/examples/pathbroadcasts/project.properties b/examples/pathbroadcasts/project.properties deleted file mode 100644 index 4d07452..0000000 --- a/examples/pathbroadcasts/project.properties +++ /dev/null @@ -1,14 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system edit -# "ant.properties", and override values to adapt the script to your -# project structure. -# -# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): -#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt - -# Project target. -target=android-11 diff --git a/examples/pathbroadcasts/AndroidManifest.xml b/examples/pathbroadcasts/src/main/AndroidManifest.xml similarity index 100% rename from examples/pathbroadcasts/AndroidManifest.xml rename to examples/pathbroadcasts/src/main/AndroidManifest.xml diff --git a/examples/pathbroadcasts/assets/hello b/examples/pathbroadcasts/src/main/assets/hello similarity index 100% rename from examples/pathbroadcasts/assets/hello rename to examples/pathbroadcasts/src/main/assets/hello diff --git a/examples/pathbroadcasts/assets/ls b/examples/pathbroadcasts/src/main/assets/ls similarity index 100% rename from examples/pathbroadcasts/assets/ls rename to examples/pathbroadcasts/src/main/assets/ls diff --git a/examples/pathbroadcasts/res/values/strings.xml b/examples/pathbroadcasts/src/main/res/values/strings.xml similarity index 100% rename from examples/pathbroadcasts/res/values/strings.xml rename to examples/pathbroadcasts/src/main/res/values/strings.xml diff --git a/settings.gradle b/settings.gradle index 222e808..28a8ffa 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,4 @@ include ':emulatorview' -include ':examples:intents' include ':term' +include ':examples:intents' +include ':examples:pathbroadcasts'