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
TMDB_API_KEY=yourkeys | |
FACEBOOK_API_KEY=yourkeys | |
NEWS_URL=http://www.yoursite.com/?tag=jrntr | |
IMAGE_URL=http://www.yoursite.com/images/ | |
ARTICLE_URL=http://www.yoursite.com/?url= |
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
static def getArticleUrl() { | |
def Properties props = new Properties() | |
props.load(new FileInputStream(new File('secrets.properties'))) | |
return props['ARTICLE_URL'] | |
} | |
static def getTMDBApiKey() { | |
def Properties props = new Properties() | |
props.load(new FileInputStream(new File('secrets.properties'))) | |
return props['TMDB_API_KEY'] |
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
buildTypes { | |
release { | |
minifyEnabled true | |
shrinkResources true | |
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
debuggable false | |
jniDebuggable false | |
renderscriptDebuggable false | |
pseudoLocalesEnabled false | |
zipAlignEnabled true |
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
defaultConfig { | |
applicationId "com.pradeep.ntr" | |
minSdkVersion 19 | |
targetSdkVersion 26 | |
versionCode 12 | |
versionName "2.1" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
multiDexEnabled true | |
//we can delclare the key inside the place holder to access key in android manifest | |
manifestPlaceholders = [FACEBOOK_API_KEY:'FACEBOOK_API_KEY' |
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
apply plugin: 'com.android.application' | |
apply plugin: 'org.greenrobot.greendao' | |
android { | |
compileSdkVersion 26 | |
buildToolsVersion '27.0.2' | |
defaultConfig { | |
applicationId "com.pradeep.ntr" | |
minSdkVersion 19 | |
targetSdkVersion 26 | |
versionCode 12 |
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
String facebookKey=BuildConfig.FACEBOOK_APP_KEY; | |
String tmdKey=BuildConfig.TMDB_API_KEY; | |
String imgURL=BuildConfig.IMAGE_URL; |
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
apply plugin: 'com.android.application' | |
android { | |
buildTypes { | |
release { | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
debuggable false |
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
-optimizationpasses 5 | |
-dontusemixedcaseclassnames | |
-dontskipnonpubliclibraryclasses | |
-dontpreverify | |
-verbose | |
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | |
-keep class com.android.** | |
-keep class com.google.android.** | |
-keep class com.google.android.gms.** | |
-keep class com.google.android.gms.location.** |
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
buildTypes { | |
release { | |
ndk { | |
abiFilters arm64-v8a,armeabi-v7a; | |
} | |
} |
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
android { | |
splits { | |
// Configures multiple APKs based on ABI. | |
abi { | |
// Enables building multiple APKs per ABI. | |
enable true | |
// By default all ABIs are included, so use reset() and include to specify that we only |
OlderNewer