summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Grover <joeygrover@gmail.com>2016-03-09 10:44:03 -0500
committerJoey Grover <joeygrover@gmail.com>2016-03-09 10:44:03 -0500
commitb8c33a544065885bcad1c31f1424ff2c9a78f296 (patch)
tree3d57194357dab48a3602839b169b0ac360536401
parent81564f2ce948db8426fe468a8b6bf088af14b067 (diff)
parentd99fdb3d6b5466ccc03391ef44313c2af66a8d44 (diff)
downloadsdl_android-b8c33a544065885bcad1c31f1424ff2c9a78f296.tar.gz
Merge pull request #280 from smartdevicelink/feature/travisci-build
Add travis-ci automated build
-rw-r--r--.travis.yml12
-rw-r--r--build.gradle47
2 files changed, 59 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..47ad9677a
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,12 @@
+language: android
+android:
+ components:
+ # use the latest revision of Android SDK Tools
+ - platform-tools
+ - tools
+
+ # The BuildTools version used by your project
+ - build-tools-23.0.2
+
+ # The SDK version used to compile your project
+ - android-18 \ No newline at end of file
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 000000000..241c951c6
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,47 @@
+buildscript {
+ repositories {
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:1.1.0'
+ }
+}
+apply plugin: 'com.android.library'
+
+dependencies {
+ compile fileTree(dir: 'libs', include: '*.jar')
+}
+
+android {
+ compileSdkVersion 18
+ buildToolsVersion "23.0.2"
+
+ lintOptions {
+ // When we start automating build deployments this should be removed
+ abortOnError false
+ }
+
+ sourceSets {
+ main {
+ manifest.srcFile 'sdl_android_lib/AndroidManifest.xml'
+ java.srcDirs = ['src']
+ resources.srcDirs = ['src']
+ aidl.srcDirs = ['src']
+ renderscript.srcDirs = ['src']
+ res.srcDirs = ['res']
+ assets.srcDirs = ['assets']
+ }
+
+ // Move the tests to tests/java, tests/res, etc...
+ instrumentTest.setRoot('tests')
+
+ // Move the build types to build-types/<type>
+ // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
+ // This moves them out of them default location under src/<type>/... which would
+ // conflict with src/ being used by the main source set.
+ // Adding new build types or product flavors should be accompanied
+ // by a similar customization.
+ debug.setRoot('build-types/debug')
+ release.setRoot('build-types/release')
+ }
+}