...
 
Commits (7)
module.exports = {
getVersion: jest.fn().mockImplementation(() => '3.8.0'),
getBuildNumber: jest.fn(),
// add more methods as needed
};
\ No newline at end of file
......@@ -39,7 +39,7 @@ exports[`blog card component should renders correctly 1`] = `
source={
Object {
"headers": Object {
"App-Version": "3.8.1",
"App-Version": "3.8.0",
"Cache-Control": "no-cache, no-store, must-revalidate",
"Pragma": "no-cache",
},
......
......@@ -165,7 +165,7 @@ exports[`blog view screen component should renders correctly 1`] = `
source={
Object {
"headers": Object {
"App-Version": "3.8.1",
"App-Version": "3.8.0",
"Cache-Control": "no-cache, no-store, must-revalidate",
"Pragma": "no-cache",
},
......
......@@ -32,7 +32,7 @@ exports[`channel header component owner should render correctly 1`] = `
source={
Object {
"headers": Object {
"App-Version": "3.8.1",
"App-Version": "3.8.0",
"Cache-Control": "no-cache, no-store, must-revalidate",
"Pragma": "no-cache",
},
......
......@@ -163,6 +163,7 @@ android {
}
dependencies {
implementation project(':react-native-device-info')
implementation project(':react-native-sentry')
implementation project(':react-native-notifications')
implementation project(':@react-native-community_netinfo')
......
......@@ -3,6 +3,7 @@ package com.minds.mobile;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import io.sentry.RNSentryPackage;
import com.reactnativejitsimeet.JitsiMeetPackage;
import com.wix.reactnativenotifications.RNNotificationsPackage;
......@@ -57,6 +58,7 @@ public class MainApplication extends Application implements ShareApplication, Re
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNDeviceInfo(),
new RNSentryPackage(),
new JitsiMeetPackage(),
new NetInfoPackage(),
......
rootProject.name = 'Minds'
include ':react-native-device-info'
project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android')
include ':react-native-sentry'
project(':react-native-sentry').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sentry/android')
include ':react-native-jitsi-meet'
......
This diff is collapsed.
......@@ -2,6 +2,8 @@ import {
Platform
} from 'react-native';
import DeviceInfo from 'react-native-device-info';
// export const MINDS_URI = 'https://www.minds.com/';
// export const MINDS_URI = 'http://dev.minds.io/';
......@@ -58,4 +60,4 @@ export const MINDS_DEEPLINK = [
];
// IF TRUE COMMENT THE SMS PERMISSIONS IN ANDROID MANIFEST TOO!!!
export const GOOGLE_PLAY_STORE = false;
export const GOOGLE_PLAY_STORE = DeviceInfo.getBuildNumber() < 1050000000 && Platform.OS == 'android';
import DeviceInfo from 'react-native-device-info';
export const Version = {
VERSION: '3.8.1',
BUILD: '20190812'
VERSION: DeviceInfo.getVersion(),
BUILD: DeviceInfo.getBuildNumber()
};
......@@ -7480,6 +7480,11 @@ react-native-crypto@^2.1.0:
pbkdf2 "3.0.8"
public-encrypt "^4.0.0"
react-native-device-info@^2.3.2:
version "2.3.2"
resolved "https://registry.yarnpkg.com/react-native-device-info/-/react-native-device-info-2.3.2.tgz#db2b8f135aaf2515583e367ab791dcc7d2f0d14c"
integrity sha512-ccpPuUbwhw5uYdVwN1UJp6ykMZz6U/u82HNM3oJ7O6MP8RIMlMDkHbqR4O0sDtUSuRMGiqqRzFtmOLFYeQ0ODw==
react-native-device-log@Minds/react-native-device-log#74f06b09c6656aa228a9a3a474c714d82abf509e:
version "1.0.2"
resolved "https://codeload.github.com/Minds/react-native-device-log/tar.gz/74f06b09c6656aa228a9a3a474c714d82abf509e"
......