mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-17 10:21:33 +03:00
commit
11b9e7b6a9
@ -103,7 +103,7 @@ android {
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
versionName "2.0"
|
||||
ndk {
|
||||
abiFilters "armeabi-v7a", "x86"
|
||||
}
|
||||
|
@ -1,4 +1,16 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
import groovy.json.JsonSlurper
|
||||
|
||||
def getNpmVersion() {
|
||||
def inputFile = new File("../package.json")
|
||||
def packageJson = new JsonSlurper().parseText(inputFile.text)
|
||||
return packageJson["version"]
|
||||
}
|
||||
|
||||
def getNpmVersionArray() { // major [0], minor [1], patch [2]
|
||||
def (major, minor, patch) = getNpmVersion().tokenize('.')
|
||||
return [Integer.parseInt(major), Integer.parseInt(minor), Integer.parseInt(patch)] as int[]
|
||||
}
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
@ -43,6 +55,12 @@ subprojects {project ->
|
||||
}
|
||||
}
|
||||
}
|
||||
ext {
|
||||
def npmVersion = getNpmVersionArray()
|
||||
versionMajor = npmVersion[0]
|
||||
versionMinor = npmVersion[1]
|
||||
versionPatch = npmVersion[2]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Binary file not shown.
@ -17,11 +17,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.0</string>
|
||||
<string>2.0.5</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<string>2</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
@ -30,12 +30,12 @@
|
||||
<true/>
|
||||
<key>NSExceptionDomains</key>
|
||||
<dict>
|
||||
<key>steemconnect.com</key>
|
||||
<key>localhost</key>
|
||||
<dict>
|
||||
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>localhost</key>
|
||||
<key>steemconnect.com</key>
|
||||
<dict>
|
||||
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
||||
<true/>
|
||||
@ -45,7 +45,7 @@
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>To access your photos, eSteem needs your permission to help you share your photos.</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string/>
|
||||
<string></string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>To share recording or video, microphone access is required</string>
|
||||
<key>NSPhotoLibraryAddUsageDescription</key>
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "eSteem",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.5",
|
||||
"private": true,
|
||||
"rnpm": {
|
||||
"assets": [
|
||||
@ -8,6 +8,7 @@
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"version": "./version-ios.sh",
|
||||
"start": "node node_modules/react-native/local-cli/cli.js start",
|
||||
"eject": "node node_modules/react-native/local-cli/cli.js eject",
|
||||
"android": "node node_modules/react-native/local-cli/cli.js run-android",
|
||||
|
17
version-ios.sh
Executable file
17
version-ios.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash -e
|
||||
|
||||
PROJECT_DIR="ios/eSteem"
|
||||
INFOPLIST_FILE="Info.plist"
|
||||
INFOPLIST_DIR="${PROJECT_DIR}/${INFOPLIST_FILE}"
|
||||
|
||||
PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]')
|
||||
|
||||
BUILD_NUMBER=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_DIR}")
|
||||
BUILD_NUMBER=$(($BUILD_NUMBER + 1))
|
||||
|
||||
|
||||
# Update plist with new values
|
||||
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${PACKAGE_VERSION#*v}" "${INFOPLIST_DIR}"
|
||||
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $BUILD_NUMBER" "${INFOPLIST_DIR}"
|
||||
|
||||
git add "${INFOPLIST_DIR}"
|
Loading…
Reference in New Issue
Block a user