Skip to content
This repository has been archived by the owner on Aug 8, 2021. It is now read-only.

Commit

Permalink
Update .gitignore, add in signing setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
lwis committed Jan 10, 2015
1 parent a69c629 commit 577cceb
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
.gradle/
.idea/
# built application files
*.apk
*.ap_

# files for the dex VM
*.dex

# Java class files
*.class

# generated files
bin/
gen/
out/
build/
local.properties
.gradle/

# Project files
*.iml
.idea
# .idea/workspace.xml

# Local configuration file (sdk path, etc)
local.properties
keystore.properties

# Windows thumbnail db
.DS_Store

# Idea non-crucial project fileS
*.iws

# Sandbox stuff
_sandbox
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,28 @@ android {
targetSdkVersion 21
}

signingConfigs {
release {
def Properties localProps = new Properties()
localProps.load(new FileInputStream(file('local.properties')))
def Properties keyProps = new Properties()
if (localProps['keystore.props.file'] != null) {
keyProps.load(new FileInputStream(file(localProps['keystore.props.file'])))
}
storeFile keyProps["store"] != null ? file(keyProps["store"]) : null
keyAlias keyProps["alias"]
storePassword keyProps["storePass"]
keyPassword keyProps["pass"]
}
}

buildTypes {
release {
shrinkResources true
zipAlignEnabled true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
signingConfig signingConfigs.release
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions keystore.properties.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This is an example keystore.properties file.
store=/path/to/your.keystore
alias=your_alias
pass=your_password
storePass=your_keystore_password
3 changes: 3 additions & 0 deletions local.properties.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This is an example local.properties file.
sdk.dir=/path/to/android/sdk
keystore.props.file=../keystore.properties

0 comments on commit 577cceb

Please sign in to comment.