-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
apply plugin: 'android-library' | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:0.9.+' | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
} | ||
|
||
android { | ||
compileSdkVersion 19 | ||
buildToolsVersion "19" | ||
|
||
defaultConfig { | ||
minSdkVersion 13 | ||
targetSdkVersion 19 | ||
} | ||
|
||
signingConfigs { | ||
debug { | ||
storeFile file("/home/lukas/.android/debug.keystore") | ||
} | ||
|
||
release { | ||
if (project.hasProperty('storeFile')) { | ||
storeFile file(project.storeFile) | ||
} else { | ||
storeFile System.console().readLine("\n\$ Enter keystore path: ") | ||
} | ||
|
||
if (project.hasProperty('storePassword')) { | ||
storePassword = project.storePassword | ||
} else { | ||
storePassword System.console().readLine("\n\$ Enter keystore password: ") | ||
} | ||
|
||
if (project.hasProperty('keyAlias')) { | ||
keyAlias = project.keyAlias | ||
} else { | ||
keyAlias System.console().readLine("\n\$ Enter key alias: ") | ||
} | ||
|
||
if (project.hasProperty('keyPassword')) { | ||
keyPassword = project.keyPassword | ||
} else { | ||
keyPassword System.console().readLine("\n\$ Enter key password: ") | ||
} | ||
} | ||
} | ||
|
||
buildTypes { | ||
release { | ||
runProguard true | ||
proguardFile getDefaultProguardFile('proguard-android.txt') | ||
proguardFile 'proguard-android.txt' | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
|
||
lintOptions { | ||
// turn off checking the given issue id's | ||
disable 'InvalidPackage' | ||
} | ||
} | ||
|
||
task wrapper(type: org.gradle.api.tasks.wrapper.Wrapper) { | ||
gradleVersion = '1.10' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# To enable ProGuard in your project, edit project.properties | ||
# to define the proguard.config property as described in that file. | ||
# | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in ${sdk.dir}/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the ProGuard | ||
# include property in project.properties. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
-keep class android.support.v4.app.** { *; } | ||
-keep interface android.support.v4.app.** { *; } | ||
|
||
-keep class com.twofortyfouram.locale.** { *; } | ||
-keep interface com.twofortyfouram.locale.** { *; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
wget http://www.twofortyfouram.com/developer/display.zip | ||
unzip display.zip | ||
|
||
mkdir -p thirdparty/locale-api/src/main/java | ||
|
||
cp -r display/locale-api/src/com thirdparty/locale-api/src/main/java/ | ||
cp -r display/locale-api/res thirdparty/locale-api/src/main/ | ||
|
||
cp display/lacale-api/AndroidManifest.xml thirdparty/locale-api/src/main/ | ||
|
||
rm -rf display | ||
|
||
cp locale-api-scripts/* thirdparty/locale-api/ |