Adds version properties and build scripts.
This commit is contained in:
parent
2c765e7e77
commit
8d2ca4764d
|
@ -130,12 +130,27 @@ android {
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
def versionPropsFile = file('version.properties')
|
||||||
applicationId 'com.sartography.uvacovid19testingkiosk'
|
|
||||||
minSdkVersion rootProject.ext.minSdkVersion
|
if (versionPropsFile.canRead()) {
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
def Properties versionProps = new Properties()
|
||||||
versionCode 1
|
|
||||||
versionName "1.0.0"
|
versionProps.load(new FileInputStream(versionPropsFile))
|
||||||
|
def name = versionProps['VERSION_NAME']
|
||||||
|
def code = versionProps['VERSION_CODE'].toInteger() + 1
|
||||||
|
versionProps['VERSION_CODE']=code.toString()
|
||||||
|
versionProps.store(versionPropsFile.newWriter(), null)
|
||||||
|
|
||||||
|
defaultConfig {
|
||||||
|
applicationId 'com.sartography.uvacovid19testingkiosk'
|
||||||
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
|
versionName name
|
||||||
|
versionCode code
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
throw new GradleException("Could not read version.properties!")
|
||||||
}
|
}
|
||||||
|
|
||||||
dexOptions {
|
dexOptions {
|
||||||
|
@ -173,7 +188,7 @@ android {
|
||||||
release {
|
release {
|
||||||
// Caution! In production, you need to generate your own keystore file.
|
// Caution! In production, you need to generate your own keystore file.
|
||||||
// see https://facebook.github.io/react-native/docs/signed-apk-android.
|
// see https://facebook.github.io/react-native/docs/signed-apk-android.
|
||||||
signingConfig signingConfigs.debug
|
signingConfig signingConfigs.release
|
||||||
minifyEnabled enableProguardInReleaseBuilds
|
minifyEnabled enableProguardInReleaseBuilds
|
||||||
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,4 @@
|
||||||
|
#Thu Sep 10 14:07:32 EDT 2020
|
||||||
|
VERSION_NAME=1.0.1
|
||||||
|
VERSION_BUILD=12
|
||||||
|
VERSION_CODE=5
|
|
@ -36,3 +36,14 @@ allprojects {
|
||||||
maven { url 'https://www.jitpack.io' }
|
maven { url 'https://www.jitpack.io' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
subprojects {
|
||||||
|
afterEvaluate {project ->
|
||||||
|
if (project.hasProperty("android")) {
|
||||||
|
android {
|
||||||
|
compileSdkVersion 28
|
||||||
|
buildToolsVersion "28.0.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -33,4 +33,4 @@ APP_UPLOAD_KEY_ALIAS=uva-covid19-testing-kiosk
|
||||||
APP_UPLOAD_STORE_PASSWORD=l%UI8=SLsr=o1Xe$x6WdoUs<}<<(5%0uc$Dz()gw.0HwnK0ThOxiEk(Vkw1v6qMf
|
APP_UPLOAD_STORE_PASSWORD=l%UI8=SLsr=o1Xe$x6WdoUs<}<<(5%0uc$Dz()gw.0HwnK0ThOxiEk(Vkw1v6qMf
|
||||||
APP_UPLOAD_KEY_PASSWORD=l%UI8=SLsr=o1Xe$x6WdoUs<}<<(5%0uc$Dz()gw.0HwnK0ThOxiEk(Vkw1v6qMf
|
APP_UPLOAD_KEY_PASSWORD=l%UI8=SLsr=o1Xe$x6WdoUs<}<<(5%0uc$Dz()gw.0HwnK0ThOxiEk(Vkw1v6qMf
|
||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xmx2560m
|
org.gradle.jvmargs=-Xmx4608m
|
||||||
|
|
|
@ -6551,6 +6551,14 @@
|
||||||
"resolved": "https://registry.npmjs.org/expo-print/-/expo-print-9.0.2.tgz",
|
"resolved": "https://registry.npmjs.org/expo-print/-/expo-print-9.0.2.tgz",
|
||||||
"integrity": "sha512-Jk8Q4QOdkCGY4zqr+omLMnsX5FPQYz6Ug2TfUeAixwPfJuNuGUPPvWiQhucxV4idS0C1nHh4HAXj+S27zDZwig=="
|
"integrity": "sha512-Jk8Q4QOdkCGY4zqr+omLMnsX5FPQYz6Ug2TfUeAixwPfJuNuGUPPvWiQhucxV4idS0C1nHh4HAXj+S27zDZwig=="
|
||||||
},
|
},
|
||||||
|
"expo-screen-orientation": {
|
||||||
|
"version": "1.1.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/expo-screen-orientation/-/expo-screen-orientation-1.1.1.tgz",
|
||||||
|
"integrity": "sha512-o3RhmidIhVK4lXHVActnO2iD0ZrZKxzWuRrJaTSpRsvRjCabeE74xkpZWPGcEcXhAxEwMaAAizHO8rlJDdrVzw==",
|
||||||
|
"requires": {
|
||||||
|
"fbjs": "1.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"expo-splash-screen": {
|
"expo-splash-screen": {
|
||||||
"version": "0.5.0",
|
"version": "0.5.0",
|
||||||
"resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-0.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/expo-splash-screen/-/expo-splash-screen-0.5.0.tgz",
|
||||||
|
|
30
package.json
30
package.json
|
@ -3,41 +3,43 @@
|
||||||
"start": "react-native start",
|
"start": "react-native start",
|
||||||
"android": "react-native run-android",
|
"android": "react-native run-android",
|
||||||
"ios": "react-native run-ios",
|
"ios": "react-native run-ios",
|
||||||
"web": "expo start --web"
|
"web": "expo start --web",
|
||||||
|
"debug-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && cd android && ./gradlew assembleDebug && cd ..",
|
||||||
|
"release-build": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/build/intermediates/res/merged/release/ && rm -rf android/app/src/main/res/drawable-* && rm -rf android/app/src/main/res/raw/* && cd android && ./gradlew assembleRelease && cd .."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"expo": "~38.0.8",
|
|
||||||
"expo-splash-screen": "^0.5.0",
|
|
||||||
"expo-status-bar": "^1.0.2",
|
|
||||||
"expo-updates": "~0.2.10",
|
|
||||||
"react": "~16.11.0",
|
|
||||||
"react-dom": "~16.11.0",
|
|
||||||
"react-native": "~0.62.2",
|
|
||||||
"react-native-gesture-handler": "~1.6.1",
|
|
||||||
"react-native-reanimated": "~1.9.0",
|
|
||||||
"react-native-screens": "~2.9.0",
|
|
||||||
"react-native-unimodules": "~0.10.1",
|
|
||||||
"react-native-web": "~0.11.7",
|
|
||||||
"@react-native-community/async-storage": "^1.12.0",
|
"@react-native-community/async-storage": "^1.12.0",
|
||||||
"@react-native-community/netinfo": "^5.9.6",
|
"@react-native-community/netinfo": "^5.9.6",
|
||||||
"date-fns": "^2.16.1",
|
"date-fns": "^2.16.1",
|
||||||
|
"expo": "~38.0.8",
|
||||||
"expo-barcode-scanner": "~8.2.1",
|
"expo-barcode-scanner": "~8.2.1",
|
||||||
"expo-print": "~9.0.1",
|
"expo-print": "~9.0.1",
|
||||||
"expo-screen-orientation": "~1.1.1",
|
"expo-screen-orientation": "~1.1.1",
|
||||||
|
"expo-splash-screen": "^0.5.0",
|
||||||
|
"expo-status-bar": "^1.0.2",
|
||||||
|
"expo-updates": "~0.2.10",
|
||||||
"firebase": "7.9.0",
|
"firebase": "7.9.0",
|
||||||
"jsbarcode": "^3.11.0",
|
"jsbarcode": "^3.11.0",
|
||||||
"qrcode": "^1.4.4",
|
"qrcode": "^1.4.4",
|
||||||
"qrcode-svg": "^1.1.0",
|
"qrcode-svg": "^1.1.0",
|
||||||
|
"react": "~16.11.0",
|
||||||
|
"react-dom": "~16.11.0",
|
||||||
|
"react-native": "~0.62.2",
|
||||||
"react-native-canvas": "^0.1.37",
|
"react-native-canvas": "^0.1.37",
|
||||||
"react-native-easy-grid": "^0.2.2",
|
"react-native-easy-grid": "^0.2.2",
|
||||||
|
"react-native-gesture-handler": "~1.6.1",
|
||||||
"react-native-html-to-pdf": "^0.8.0",
|
"react-native-html-to-pdf": "^0.8.0",
|
||||||
"react-native-paper": "^4.1.0",
|
"react-native-paper": "^4.1.0",
|
||||||
"react-native-print": "^0.6.0",
|
"react-native-print": "^0.6.0",
|
||||||
"react-native-qrcode-svg": "^6.0.6",
|
"react-native-qrcode-svg": "^6.0.6",
|
||||||
|
"react-native-reanimated": "~1.9.0",
|
||||||
|
"react-native-screens": "~2.9.0",
|
||||||
"react-native-share": "^3.7.0",
|
"react-native-share": "^3.7.0",
|
||||||
"react-native-svg": "^12.1.0",
|
"react-native-svg": "^12.1.0",
|
||||||
"react-native-svg-transformer": "^0.14.3",
|
"react-native-svg-transformer": "^0.14.3",
|
||||||
|
"react-native-unimodules": "~0.10.1",
|
||||||
"react-native-vector-icons": "^7.0.0",
|
"react-native-vector-icons": "^7.0.0",
|
||||||
|
"react-native-web": "~0.11.7",
|
||||||
"react-native-webview": "^10.8.3"
|
"react-native-webview": "^10.8.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -52,4 +54,4 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "uva-covid19-testing-kiosk",
|
"name": "uva-covid19-testing-kiosk",
|
||||||
"version": "1.0.0"
|
"version": "1.0.0"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue