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 #220 from simde-utc/release/v1.1.2
Browse files Browse the repository at this point in the history
Release v1.1.2
  • Loading branch information
NastuzziSamy authored Sep 3, 2019
2 parents eb4e71b + 33d56d6 commit 88c41d1
Show file tree
Hide file tree
Showing 16 changed files with 170 additions and 88 deletions.
1 change: 0 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ android {

dependencies {
implementation project(':react-native-vector-icons')
implementation project(':react-native-version-number')
implementation project(':react-native-svg')
implementation project(':react-native-reanimated')
implementation project(':react-native-gesture-handler')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import com.facebook.react.ReactApplication;
import com.oblador.vectoricons.VectorIconsPackage;
import com.apsl.versionnumber.RNVersionNumberPackage;
import com.horcrux.svg.SvgPackage;
import com.swmansion.reanimated.ReanimatedPackage;
import com.facebook.react.ReactNativeHost;
Expand Down Expand Up @@ -43,7 +42,6 @@ protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new VectorIconsPackage(),
new RNVersionNumberPackage(),
new SvgPackage(),
new ReanimatedPackage(),
new RNGestureHandlerPackage(),
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 = 6
versionName = "1.1.1"
versionCode = 7
versionName = "1.1.2"
}
repositories {
google()
Expand Down
2 changes: 0 additions & 2 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
apply from: '../node_modules/react-native-unimodules/gradle.groovy'
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-version-number'
project(':react-native-version-number').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-version-number/android')
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-svg/android')
include ':react-native-reanimated'
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": 6,
"versionName": "1.1.1"
"versionCode": 7,
"versionName": "1.1.2"
}
11 changes: 11 additions & 0 deletions assets/changelogs/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
[
{
"version": "v1.1.2",
"data": [
{
"title": "Changes",
"data": [
"Load news directly in application"
]
},
]
},
{
"version": "v1.1.1",
"data": [
Expand Down
11 changes: 11 additions & 0 deletions assets/changelogs/fr.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
[
{
"version": "v1.1.2",
"data": [
{
"title": "Modifications",
"data": [
"Chargement des nouveautés dans l'application"
]
},
]
},
{
"version": "v1.1.1",
"data": [
Expand Down
4 changes: 4 additions & 0 deletions config.example.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export const GITHUB_URL = '';
// GitHub API url.
export const GITHUB_API_URL = '';

// GitHub changelogs url.
export const GITHUB_CHANGELOG_URL = '';

// Cas ticket resolution url.
export const CAS_URL = '';

Expand Down Expand Up @@ -82,6 +85,7 @@ export default {
PORTAIL_URL,
GITHUB_URL,
GITHUB_API_URL,
GITHUB_CHANGELOG_URL,
CAS_URL,
PAYUTC_API_URL,
PAYUTC_VERSION,
Expand Down
4 changes: 2 additions & 2 deletions ios/PayUTC/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key><string>1.1.1</string>
<key>CFBundleShortVersionString</key><string>1.1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key><string>6</string>
<key>CFBundleVersion</key><string>7</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
1 change: 0 additions & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ target 'PayUTC' do

pod 'RNSVG', :path => '../node_modules/react-native-svg'

pod 'react-native-version-number', :path => '../node_modules/react-native-version-number'

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

Expand Down
5 changes: 0 additions & 5 deletions package-lock.json

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

17 changes: 8 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,23 @@
"version:description:android": "node assets/scripts/get_android_description.js"
},
"dependencies": {
"expo": "^34.0.1",
"react": "16.8.3",
"react-dom": "^16.8.6",
"react-native-web": "^0.11.4",
"react-native": "0.59.10",
"react-native-gesture-handler": "^1.3.0",
"react-native-reanimated": "~1.1.0",
"react-native-unimodules": "~0.5.2",
"@fortawesome/fontawesome-svg-core": "^1.2.21",
"@fortawesome/free-solid-svg-icons": "^5.10.1",
"@fortawesome/react-native-fontawesome": "^0.1.0",
"expo": "^34.0.1",
"expo-file-system": "^6.0.2",
"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-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",
"redux": "^4.0.4",
Expand Down
10 changes: 5 additions & 5 deletions src/screens/AppLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import React from 'react';
import { View, Text, Image, Platform, NativeModules, Alert, ActivityIndicator } from 'react-native';
import VersionNumber from 'react-native-version-number';
import { connect } from 'react-redux';
import { library } from '@fortawesome/fontawesome-svg-core';
import { fas } from '@fortawesome/free-solid-svg-icons';
Expand All @@ -23,10 +22,11 @@ import colors from '../styles/colors';
import { GitHub, Config } from '../redux/actions';
import i18n, { _, AppLoader as t } from '../utils/i18n';
import config from '../../config';
import appJson from '../../app.json';
import configExemple from '../../config.example';

const REGEX_VERSION = /^([0-9])+\.([0-9])+\.([0-9])-*.*$/;
const REGEX_DEPRECATED_VERSION = /# Deprecated versions: < v(.*)$/;
const REGEX_DEPRECATED_VERSION = /# Deprecated versions: < v(.*)/;

class AppLoaderScreen extends React.Component {
static loadLibrairies() {
Expand Down Expand Up @@ -85,15 +85,15 @@ class AppLoaderScreen extends React.Component {
dispatch(action);

return action.payload.then(([{ body, tag_name: tagName }]) => {
const { appVersion } = VersionNumber;
const { versionName } = appJson;

if (appVersion && tagName && `v${appVersion}` !== tagName) {
if (versionName && tagName && `v${versionName}` !== tagName) {
const matches = body.match(REGEX_DEPRECATED_VERSION);

if (
matches &&
matches.length === 2 &&
!AppLoaderScreen.isVersionValid(appVersion, matches[1])
!AppLoaderScreen.isVersionValid(versionName, matches[1])
) {
Alert.alert(
t('need_update'),
Expand Down
14 changes: 7 additions & 7 deletions src/screens/Settings/AboutScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import React from 'react';
import { ScrollView, View, Linking, Text } from 'react-native';
import { connect } from 'react-redux';
import VersionNumber from 'react-native-version-number';
import colors from '../../styles/colors';
import LinkButton from '../../components/LinkButton';
import Paragraphe from '../../components/Paragraphe';
import { _, About as t } from '../../utils/i18n';
import appJson from '../../../app.json';
import { GitHub } from '../../redux/actions';
import GitHubService from '../../services/GitHub';

Expand All @@ -39,13 +39,13 @@ class AboutScreen extends React.Component {
releaseFetching,
navigation,
} = this.props;
let { appVersion } = VersionNumber;
let { versionName } = appJson;

if (releaseFetching) {
return [_('loading_text_replacement'), null, _('loading_text_replacement'), () => {}];
}

if (!tagName || !appVersion) {
if (!tagName || !versionName) {
return [
t('dev_version'),
colors.more,
Expand All @@ -54,21 +54,21 @@ class AboutScreen extends React.Component {
];
}

appVersion = `v${appVersion}`;
versionName = `v${versionName}`;

if (tagName === appVersion) {
if (tagName === versionName) {
return [
t('up_to_date'),
colors.more,
t('actual_version', { current: appVersion }),
t('actual_version', { current: versionName }),
() => navigation.navigate('Changelog'),
];
}

return [
t('need_update'),
colors.less,
t('update_version', { current: appVersion, next: tagName }),
t('update_version', { current: versionName, next: tagName }),
() => navigation.navigate('Changelog'),
];
}
Expand Down
Loading

0 comments on commit 88c41d1

Please sign in to comment.