Skip to content

Commit

Permalink
fix: None
Browse files Browse the repository at this point in the history
refactor: None
feat: TailPOS Language Translation
  • Loading branch information
jiloysss authored and jiloysss committed Jul 5, 2019
1 parent 2fdab21 commit da4d033
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 4 deletions.
31 changes: 31 additions & 0 deletions changes/deviceinfo-build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apply plugin: 'com.android.library'

def DEFAULT_COMPILE_SDK_VERSION = 23
def DEFAULT_BUILD_TOOLS_VERSION = "25.0.2"
def DEFAULT_TARGET_SDK_VERSION = 22
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"

android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
versionCode 2
versionName "1.1"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
lintOptions {
warning 'InvalidPackage'
}
}

dependencies {
def googlePlayServicesVersion = project.hasProperty('googlePlayServicesVersion') ? project.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION

compile 'com.facebook.react:react-native:+'
compile "com.google.android.gms:play-services-gcm:12.0.1"
compile "com.android.support:support-v4:27.1.0"
}
26 changes: 26 additions & 0 deletions changes/localization-build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apply plugin: 'com.android.library'
def DEFAULT_COMPILE_SDK_VERSION = 26
def DEFAULT_BUILD_TOOLS_VERSION = "26.0.3"
def DEFAULT_MIN_SDK_VERSION = 16
def DEFAULT_TARGET_SDK_VERSION = 26

def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

android {
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)

defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION)
targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
}

dependencies { provided 'com.facebook.react:react-native:+' }
25 changes: 24 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"prettier": "prettier --trailing-comma all --write \"src/**/*.js\"",
"clean": "rm -rf $TMPDIR/react-* && rm -rf node_modules/",
"apk": "cd android && ./gradlew assembleRelease && cd ..",
"change": "cp changes/camera-build.gradle node_modules/react-native-camera/android/build.gradle && cp changes/maps-build.gradle node_modules/react-native-maps/lib/android/build.gradle && cp changes/RCTBluetoothSerialPackage.java node_modules/react-native-bluetooth-serial/android/src/main/java/com/rusel/RCTBluetoothSerial/"
"change": "cp changes/localization-build.gradle node_modules/react-native-localization/android/build.gradle && cp changes/deviceinfo-build.gradle node_modules/react-native-device-info/android/build.gradle && cp changes/camera-build.gradle node_modules/react-native-camera/android/build.gradle && cp changes/maps-build.gradle node_modules/react-native-maps/lib/android/build.gradle && cp changes/RCTBluetoothSerialPackage.java node_modules/react-native-bluetooth-serial/android/src/main/java/com/rusel/RCTBluetoothSerial/"
},
"jest": {
"preset": "react-native",
Expand Down
6 changes: 4 additions & 2 deletions src/stories/components/TotalLineComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const TotalLineComponent = props => (
</View>
<View style={styles.viewInner}>
<Text style={styles.text}>
Discounts{" "}
{strings.Discounts}{" "}
{props.receipt
? props.receipt.discountType === "percentage"
? props.receipt.discountValue > 0
Expand Down Expand Up @@ -61,7 +61,9 @@ const TotalLineComponent = props => (
</Text>
</View>
<View style={styles.viewInner}>
<Text style={[styles.text, styles.totalText]}>Total Payment</Text>
<Text style={[styles.text, styles.totalText]}>{strings.TotalPayment}</Text>


<Text>
{new MoneyCurrency(props.currency ? props.currency : "PHP").moneyFormat(
formatNumber(props.totalPayment),
Expand Down

0 comments on commit da4d033

Please sign in to comment.