Skip to content

Commit

Permalink
add untestet thirdparty helper
Browse files Browse the repository at this point in the history
  • Loading branch information
luklanis committed May 14, 2014
1 parent cae8984 commit 3e8a210
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 0 deletions.
77 changes: 77 additions & 0 deletions locale-api-scripts/build.gradle
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'
}
26 changes: 26 additions & 0 deletions locale-api-scripts/proguard-android.txt
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.** { *; }
15 changes: 15 additions & 0 deletions thirdparty-install.sh
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/

0 comments on commit 3e8a210

Please sign in to comment.