Skip to content

Commit 8b45bf1

Browse files
author
Ruslan Urmeev
authored
Merge pull request #923 from microsoft/release/4.2.0
Setup DemoApp for release 4.2.0
2 parents 3195ca4 + 1e60f13 commit 8b45bf1

File tree

5 files changed

+39
-21
lines changed

5 files changed

+39
-21
lines changed

DemoApp/app/screens/AppCenterScreen.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default class AppCenterScreen extends Component {
6969

7070
state = {
7171
appCenterEnabled: false,
72+
networkRequestsAllowed: true,
7273
installId: '',
7374
sdkVersion: AppCenter.getSdkVersion(),
7475
startupMode: StartupModes[0],
@@ -99,6 +100,9 @@ export default class AppCenterScreen extends Component {
99100
}
100101

101102
async refreshUI() {
103+
const networkRequestsAllowed = await AppCenter.isNetworkRequestsAllowed();
104+
this.setState({ networkRequestsAllowed });
105+
102106
const appCenterEnabled = await AppCenter.isEnabled();
103107
this.setState({ appCenterEnabled });
104108

@@ -201,7 +205,22 @@ export default class AppCenterScreen extends Component {
201205
const appCenterEnabled = await AppCenter.isEnabled();
202206
this.setState({ appCenterEnabled });
203207
}
204-
}
208+
},
209+
],
210+
renderItem: switchRenderItem
211+
},
212+
{
213+
title: 'Network requests allowed',
214+
data: [
215+
{
216+
title: 'Network requests allowed',
217+
value: 'networkRequestsAllowed',
218+
toggle: async () => {
219+
await AppCenter.setNetworkRequestsAllowed(!this.state.networkRequestsAllowed);
220+
const networkRequestsAllowed = await AppCenter.isNetworkRequestsAllowed();
221+
this.setState({ networkRequestsAllowed });
222+
},
223+
},
205224
],
206225
renderItem: switchRenderItem
207226
},

DemoApp/ios/Podfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ target 'DemoApp' do
66
# use_frameworks!
77

88
# Pods for DemoApp
9-
pod 'AppCenter/Crashes', '~> 4.1.1'
10-
pod 'AppCenter/Analytics', '~> 4.1.1'
11-
pod 'AppCenterReactNativeShared', '~> 4.1.0'
9+
pod 'AppCenter/Crashes', '~> 4.2.0'
10+
pod 'AppCenter/Analytics', '~> 4.2.0'
11+
pod 'AppCenterReactNativeShared', '~> 4.2.0'
1212

1313
platform :ios, '9.0'
1414

DemoApp/ios/Podfile.lock

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
PODS:
2-
- AppCenter/Analytics (4.1.1):
2+
- AppCenter/Analytics (4.2.0):
33
- AppCenter/Core
4-
- AppCenter/Core (4.1.1)
5-
- AppCenter/Crashes (4.1.1):
4+
- AppCenter/Core (4.2.0)
5+
- AppCenter/Crashes (4.2.0):
66
- AppCenter/Core
7-
- AppCenterReactNativeShared (4.1.0):
8-
- AppCenter/Core (= 4.1.1)
7+
- AppCenterReactNativeShared (4.2.0):
8+
- AppCenter/Core (= 4.2.0)
99

1010
DEPENDENCIES:
11-
- AppCenter/Analytics (~> 4.1.1)
12-
- AppCenter/Crashes (~> 4.1.1)
13-
- AppCenterReactNativeShared (~> 4.1.0)
11+
- AppCenter/Analytics (~> 4.2.0)
12+
- AppCenter/Crashes (~> 4.2.0)
13+
- AppCenterReactNativeShared (~> 4.2.0)
1414

1515
SPEC REPOS:
1616
https://msmobilecenter.visualstudio.com/SDK/_git/AppCenterSDK-Specs-Private:
17-
- AppCenterReactNativeShared
18-
trunk:
1917
- AppCenter
18+
- AppCenterReactNativeShared
2019

2120
SPEC CHECKSUMS:
22-
AppCenter: a4456598b67e23f797a110970983861f294dc1a5
23-
AppCenterReactNativeShared: d6ddf108d3c371d69a0ce1f013af236bbbe0b570
21+
AppCenter: 5c495ec6b22d072d9bbd0586ddebedb30c1cca64
22+
AppCenterReactNativeShared: de51fd65fc1b892dab6ee646e54146ac4e0dee1e
2423

25-
PODFILE CHECKSUM: fb741256ebac95e088f5f0d665edf20c92ae860c
24+
PODFILE CHECKSUM: 1cfd50ac0e60eb368817430a68a13112743fc524
2625

2726
COCOAPODS: 1.10.1

DemoApp/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
},
1010
"dependencies": {
1111
"@react-native-community/async-storage": "1.6.2",
12-
"appcenter": "^4.1.0",
13-
"appcenter-analytics": "^4.1.0",
14-
"appcenter-crashes": "^4.1.0",
12+
"appcenter": "^4.2.0",
13+
"appcenter-analytics": "^4.2.0",
14+
"appcenter-crashes": "^4.2.0",
1515
"metro": "0.54.1",
1616
"react": "16.8.3",
1717
"react-native": "0.59.9",

DemoApp/upgrade-appcenter-npm-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ pod repo update
99

1010
(cd ios && pod install)
1111

12-
react-native link
12+
npx react-native link

0 commit comments

Comments
 (0)