summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Maylone <Corey@livioconnect.com>2016-01-27 10:26:14 -0500
committerCorey Maylone <Corey@livioconnect.com>2016-01-27 10:26:14 -0500
commit85ce8b2f9c0b7d1c64334c5745e0ba436f418723 (patch)
treeb788b2ce4ac6a96b09ab3e14218260450b9e6bbd
parentff204a1d36e122923917d4174a243f94133c09e1 (diff)
downloadsdl_android-85ce8b2f9c0b7d1c64334c5745e0ba436f418723.tar.gz
added travis-ci config file and a gradle build for travis-ci to use
-rw-r--r--.travis.yml8
-rw-r--r--build.gradle47
2 files changed, 55 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..a3c1d6c2d
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,8 @@
+language: android
+android:
+ components:
+ # 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')
+ }
+}