Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #85 from Sonicadvance1/Android-OSXpain
Make it possible to build Dolphin for Android in OS X and also less of a pain with gradle.
  • Loading branch information
delroth committed Feb 23, 2014
2 parents 4ba9cb2 + cf6e0b6 commit f9ed70b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Source/Android/build.gradle
Expand Up @@ -3,7 +3,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
classpath 'com.android.tools.build:gradle:0.8.+'
}
}
apply plugin: 'android'
Expand All @@ -28,6 +28,7 @@ android {
tasks.withType(Compile) {
compileTask -> compileTask.dependsOn(nativeLibsToJar)
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
Expand All @@ -51,14 +52,19 @@ android {
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}

signingConfigs {
release {
storeFile file(System.getenv("KEYSTORE"))
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEY_ALIAS")
keyPassword System.getenv("KEY_PASSWORD")
if (System.getenv("KEYSTORE") != null)
{
storeFile file(System.getenv("KEYSTORE"))
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEY_ALIAS")
keyPassword System.getenv("KEY_PASSWORD")
}
}
}

buildTypes {
release {
signingConfig signingConfigs.release
Expand Down

0 comments on commit f9ed70b

Please sign in to comment.