Browse Source

signingConfigs added to app build gradle

master
preyearegmi 6 years ago
parent
commit
97064ea74a
  1. BIN
      .idea/caches/build_file_checksums.ser
  2. 30
      app/build.gradle
  3. 5
      app/src/main/java/com/gmeremit/online/gmeremittance_native/GmeApplication.java
  4. 2
      build.gradle

BIN
.idea/caches/build_file_checksums.ser

30
app/build.gradle

@ -31,6 +31,21 @@ android {
def dateTime = new Date().format("MMM_dd")
setProperty("archivesBaseName", "GME_" + dateTime + "_v" + versionCode + "(" + versionName + ")")
}
signingConfigs {
release {
keyAlias 'ABCD'
keyPassword 'ABCD'
storeFile file('/Users/gme_1/Android Projects/FantasySlide/sample.gif')
storePassword 'ABCD'
}
stag {
keyAlias 'JPT'
keyPassword 'asdfljk'
storeFile file('/Users/gme_1/Android Projects/gme-android/gradlew')
storePassword 'sdfgasd'
}
}
buildTypes {
release {
buildConfigField 'String', 'BASE_URL', '"http://121.156.120.71:9091/api/v1/"'
@ -39,13 +54,11 @@ android {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
// buildConfigField 'String', 'BASE_URL', '"http://121.156.120.71:9091/api/v1/"'
// buildConfigField 'String', 'BASE_URL', '"http://121.156.120.71:5001/api/v1/"'
buildConfigField 'String', 'BASE_URL', '"http://gmeuat.gmeremit.com:5012/api/v1/"'
buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
signingConfig signingConfigs.debug
debuggable true
@ -62,14 +75,6 @@ android {
shrinkResources false
}
uat {
signingConfig signingConfigs.debug
buildConfigField 'String', 'BASE_URL', '"http://116.66.197.118:1235/api/v1/"'
buildConfigField 'String', 'BASE_URL_SOCIAL', '"http://10.1.1.171:8080/v1/"'
debuggable true
minifyEnabled false
shrinkResources false
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
@ -115,9 +120,6 @@ dependencies {
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.android.support:percent:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
}
apply plugin: 'com.google.gms.google-services'

5
app/src/main/java/com/gmeremit/online/gmeremittance_native/GmeApplication.java

@ -32,11 +32,6 @@ public class GmeApplication extends Application {
FacebookSdk.sdkInitialize(getApplicationContext());
Tiny.getInstance().init(this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
StrictMode.VmPolicy.Builder builder = new StrictMode.VmPolicy.Builder();
builder.detectFileUriExposure();
StrictMode.setVmPolicy(builder.build());
}
if(appRelatedMetaData==null)
appRelatedMetaData=new AppRelatedMetaData(this);

2
build.gradle

@ -10,7 +10,7 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:3.2.0'
classpath 'io.fabric.tools:gradle:1.25.4'

Loading…
Cancel
Save