-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
1,549 additions
and
1,373 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 |
---|---|---|
@@ -1,65 +1,65 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 26 | ||
defaultConfig { | ||
applicationId "com.fahamutech.z91smartpos" | ||
minSdkVersion 19 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "0.0.1" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
signingConfigs { | ||
release { | ||
keyAlias 'zcsApp' | ||
keyPassword '123456' | ||
storeFile file('../app.jks') | ||
storePassword '123456' | ||
} | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled true | ||
shrinkResources true | ||
zipAlignEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
signingConfig signingConfigs.release | ||
} | ||
debug { | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
lintOptions { | ||
checkReleaseBuilds false | ||
// Or, if you prefer, you can continue to check for errors in release builds, | ||
// but continue the build even when errors are found: | ||
abortOnError false | ||
} | ||
android.applicationVariants.all { variant -> | ||
variant.outputs.all { output -> | ||
def outputFile = output.outputFile | ||
if (outputFile != null && outputFile.name.endsWith('.apk')) { | ||
outputFileName = "SmartPosTest-${buildType.name}_V${defaultConfig.versionName}_${buildTime()}.apk" | ||
} | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.1' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' | ||
implementation 'com.android.support:appcompat-v7:26.1.0' | ||
implementation 'com.android.support:design:26.1.0' | ||
implementation 'com.google.android:flexbox:1.0.0' | ||
implementation project(':zxing') | ||
implementation 'com.android.volley:volley:1.1.0' | ||
|
||
} | ||
|
||
def buildTime() { | ||
return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC")) | ||
} | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 29 | ||
defaultConfig { | ||
// applicationId "com.fahamutech.z91smartpos" | ||
minSdkVersion 19 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "0.0.1" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
signingConfigs { | ||
release { | ||
keyAlias 'zcsApp' | ||
keyPassword '123456' | ||
storeFile file('../app.jks') | ||
storePassword '123456' | ||
} | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled true | ||
// shrinkResources true | ||
zipAlignEnabled true | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
signingConfig signingConfigs.release | ||
} | ||
debug { | ||
signingConfig signingConfigs.release | ||
} | ||
} | ||
lintOptions { | ||
checkReleaseBuilds false | ||
// Or, if you prefer, you can continue to check for errors in release builds, | ||
// but continue the build even when errors are found: | ||
abortOnError false | ||
} | ||
// android.applicationVariants.all { variant -> | ||
// variant.outputs.all { output -> | ||
// def outputFile = output.outputFile | ||
// if (outputFile != null && outputFile.name.endsWith('.apk')) { | ||
// outputFileName = "SmartPosTest-${buildType.name}_V${defaultConfig.versionName}_${buildTime()}.apk" | ||
// } | ||
// } | ||
// } | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.1' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' | ||
implementation 'com.android.support:appcompat-v7:26.1.0' | ||
implementation 'com.android.support:design:26.1.0' | ||
implementation 'com.google.android:flexbox:1.0.0' | ||
implementation project(':zxing') | ||
implementation 'com.android.volley:volley:1.1.0' | ||
|
||
} | ||
|
||
def buildTime() { | ||
return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC")) | ||
} |
Oops, something went wrong.