Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #373 from cco3/signing
Browse files Browse the repository at this point in the history
Read signing configuration from signing.gradle
  • Loading branch information
g-ortuno committed May 9, 2015
2 parents 2b6169b + 2774a5c commit fa63908
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
7 changes: 6 additions & 1 deletion android/PhysicalWeb/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Keystore files for signing
*.jks
*.keystore

.gradle
local.properties
.idea
.DS_Store
build
local.properties
signing.properties
21 changes: 21 additions & 0 deletions android/PhysicalWeb/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,31 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

if(new File("signing.properties").exists()) {
Properties signingProperties = new Properties()
signingProperties.load(new FileInputStream(new File('signing.properties')))

signingConfigs {
release {
storeFile new File(signingProperties['storeFile'])
storePassword signingProperties['storePassword']
keyAlias signingProperties['keyAlias']
keyPassword signingProperties['keyPassword']
}
}

buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
}

repositories{
Expand Down

0 comments on commit fa63908

Please sign in to comment.