Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #245 from simde-utc/develop
Browse files Browse the repository at this point in the history
Release v1.2.0
  • Loading branch information
NastuzziSamy authored Sep 27, 2019
2 parents 98db59d + 230cdda commit 6b537e0
Show file tree
Hide file tree
Showing 48 changed files with 1,155 additions and 203 deletions.
19 changes: 18 additions & 1 deletion App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import React from 'react';
import { StatusBar, YellowBox } from 'react-native';
import { StatusBar, YellowBox, StyleSheet, Text, Platform } from 'react-native';
import { createAppContainer, createSwitchNavigator, SafeAreaView } from 'react-navigation';
import { Provider, connect } from 'react-redux';
import SpinnerOverlay from 'react-native-loading-spinner-overlay';
Expand All @@ -18,6 +18,23 @@ import AuthNavigator from './src/navigations/Auth/AuthNavigator';
import store from './src/redux/store';
import colors from './src/styles/colors';

const styles = StyleSheet.create({
defaultFontFamily: {
fontFamily: 'Roboto',
},
});

// Bug: https://github.com/simde-utc/payutc-mobile/issues/226
if (Platform.OS === 'android') {
const oldRender = Text.render;
Text.render = function render(...args) {
const origin = oldRender.call(this, ...args);
return React.cloneElement(origin, {
style: [styles.defaultFontFamily, origin.props.style],
});
};
}

const AppNavigator = createSwitchNavigator(
{
Loading: AppLoader,
Expand Down
20 changes: 1 addition & 19 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,7 @@
package="fr.utc.assos.simde.payutc">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.VIBRATE" />

<!-- Useless permissions
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
-->
<!--<uses-permission android:name="android.permission.USE_FINGERPRINT" />-->

<application
android:name=".MainApplication"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public List<Package> getPackageList() {
new expo.modules.constants.ConstantsPackage(),
new expo.modules.filesystem.FileSystemPackage(),
new expo.modules.font.FontLoaderPackage(),
new expo.modules.haptics.HapticsPackage(),
new expo.modules.keepawake.KeepAwakePackage(),
new expo.modules.lineargradient.LinearGradientPackage(),
new expo.modules.location.LocationPackage(),
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ buildscript {
compileSdkVersion = 29
targetSdkVersion = 29
supportLibVersion = "28.0.0"
versionCode = 8
versionName = "1.1.3"
versionCode = 9
versionName = "1.2.0"
}
repositories {
google()
Expand Down
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
},
"displayName": "PayUTC",
"name": "PayUTC",
"versionCode": 8,
"versionName": "1.1.3"
"versionCode": 9,
"versionName": "1.2.0"
}
31 changes: 31 additions & 0 deletions assets/changelogs/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
[
{
"version": "v1.2.0",
"data": [
{
"title": "News",
"data": [
"Add spanish translation",
"Add modal for information",
"Add PayUTC terms for new users",
"Add haptic feedbacks",
"Ask for participation for translation"
]
},
{
"title": "Changes",
"data": [
"Change confirmation popup"
]
},
{
"title": "Fixed bugs",
"data": [
"Indicate to non-contributors all limitations",
"Fix NaN issue during refills",
"Fix Android permissions",
"Fix Oppo/One Plus text issue",
"Use iOS Webkit"
]
}
]
},
{
"version": "v1.1.3",
"data": [
Expand Down
31 changes: 31 additions & 0 deletions assets/changelogs/fr.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
[
{
"version": "v1.2.0",
"data": [
{
"title": "Nouveautés",
"data": [
"Ajout de la traduction espagnol",
"Ajout de popups d'information",
"Ajout des termes PayUTC pour les nouvös",
"Ajout des retours haptiques",
"Propose la participation à la traduction de l'app"
]
},
{
"title": "Modifications",
"data": [
"Changement du popup de notification"
]
},
{
"title": "Problèmes réglés",
"data": [
"Indique aux non cotisants les contraintes",
"Corrige le bug de rechargements 'NaN'",
"Corrige les permissions Android",
"Corrige le texte sur Oppo/One Plus",
"Utilise le Webkit iOS"
]
}
]
},
{
"version": "v1.1.3",
"data": [
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions assets/terms/payutc/fr.js

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

4 changes: 4 additions & 0 deletions ios/PayUTC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
90F895B4F1254612BCB9F961 /* Foundation.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = Foundation.ttf; path = "../node_modules/react-native-vector-icons/Fonts/Foundation.ttf"; sourceTree = "<group>"; };
BD821FA6AD5EA36B9594A2CE /* Pods-PayUTCTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PayUTCTests.release.xcconfig"; path = "Target Support Files/Pods-PayUTCTests/Pods-PayUTCTests.release.xcconfig"; sourceTree = "<group>"; };
C3FC2AA9B0E84D83A688C2AA /* EvilIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = EvilIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf"; sourceTree = "<group>"; };
CD2B0178233E13D7002CFAAD /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
CD9725F5230EF47C004FAA3F /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
CD9725F6230EF495004FAA3F /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/LaunchScreen.strings; sourceTree = "<group>"; };
CD9725F7230EF548004FAA3F /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -279,10 +280,12 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
Base,
fr,
en,
"zh-Hans",
es,
);
mainGroup = 83CBB9F61A601CBA00E9B192;
productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
Expand Down Expand Up @@ -494,6 +497,7 @@
CD9725F5230EF47C004FAA3F /* fr */,
CD9725F6230EF495004FAA3F /* en */,
CD9725F7230EF548004FAA3F /* zh-Hans */,
CD2B0178233E13D7002CFAAD /* es */,
);
name = LaunchScreen.xib;
path = PayUTC;
Expand Down
6 changes: 4 additions & 2 deletions ios/PayUTC/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key><string>1.1.3</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key><string>8</string>
<key>CFBundleVersion</key>
<string>9</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
1 change: 1 addition & 0 deletions ios/PayUTC/es.lproj/LaunchScreen.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

19 changes: 19 additions & 0 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,20 @@
"@fortawesome/react-native-fontawesome": "^0.1.0",
"expo": "^34.0.1",
"expo-file-system": "^6.0.2",
"expo-haptics": "^6.0.0",
"i18n-js": "^3.3.0",
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native": "0.59.10",
"react-native-gesture-handler": "^1.3.0",
"react-native-keyboard-aware-scroll-view": "^0.8.0",
"react-native-loading-spinner-overlay": "^1.0.1",
"react-native-modalbox": "^1.7.1",
"react-native-reanimated": "~1.1.0",
"react-native-svg": "~9.5.1",
"react-native-unimodules": "~0.5.2",
"react-native-vector-icons": "^6.6.0",
"react-native-version-number": "^0.3.6",
"react-native-web": "^0.11.4",
"react-navigation": "^3.11.1",
"react-redux": "^7.1.0",
Expand Down
6 changes: 5 additions & 1 deletion src/components/AmountForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import React from 'react';
import { Text, View } from 'react-native';
import * as Haptics from 'expo-haptics';
import colors from '../styles/colors';
import BlockTemplate from './BlockTemplate';
import AmountInput from './Home/AmountInput';
Expand Down Expand Up @@ -51,7 +52,10 @@ export default class AmountForm extends React.Component {
shadow
borderForAndroid
key={shortcut}
onPress={() => this.onChange(shortcut.toString())}
onPress={() => {
Haptics.selectionAsync().catch();
this.onChange(shortcut.toString());
}}
>
<Text style={{ fontSize: 16, fontWeight: 'bold', color: colors.secondary }}>
{shortcut}
Expand Down
1 change: 1 addition & 0 deletions src/components/Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default function Document({ document, lang }) {
return (
<WebView
style={{ backgroundColor: 'transparent' }}
useWebKit
source={{
html: `<!DOCTYPE html><html lang="${lang ||
'en'}"><head><meta charset="utf-8"/></head><body><p style='font-family: sans-serif; text-align: justify; white-space: pre-wrap;'>${document}</p></body></html>`,
Expand Down
Loading

0 comments on commit 6b537e0

Please sign in to comment.