Skip to content

Commit 970c31a

Browse files
author
Matthieu Gicquel
committed
update example app
1 parent 3b79f48 commit 970c31a

5 files changed

Lines changed: 35 additions & 31 deletions

File tree

example/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ expo.webp.animated=false
5555
# Enable network inspector
5656
EX_DEV_CLIENT_NETWORK_INSPECTOR=true
5757

58+
RNAS_PREVENT_RECENT_SCREENSHOTS=true
5859
RNAS_PINNING_CONFIG={\\"yahoo.com\\":[\\"TQEtdMbmwFgYUifM4LDF+xgEtd0z69mPGmkp014d6ZY=\\",\\"rFjc3wG7lTZe43zeYTvPq8k4xdDEutCmIhI5dn4oCeE=\\"],\\"google.com\\":[\\"We74o5ME3USRtL6+B2UhXnwY9FR91QPJMYDtUNk6tEc=\\",\\"zCTnfLwLKbS9S2sbp+uFz4KZOocFvXxkV06Ce9O5M2w=\\"]}

example/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
]
4141
},
4242
"preventRecentScreenshots": {
43-
"enabled": true
43+
"ios": { "enabled": true },
44+
"android": { "enabled": true }
4445
}
4546
}
4647
]

example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ PODS:
447447
- React-jsi (= 0.72.6)
448448
- React-logger (= 0.72.6)
449449
- React-perflogger (= 0.72.6)
450-
- RNAS (0.1.0):
450+
- RNAS (0.1.1):
451451
- ExpoModulesCore
452452
- TrustKit (~> 3.0.3)
453453
- SocketRocket (0.6.1)
@@ -661,7 +661,7 @@ SPEC CHECKSUMS:
661661
React-runtimescheduler: f23e337008403341177fc52ee4ca94e442c17ede
662662
React-utils: fa59c9a3375fb6f4aeb66714fd3f7f76b43a9f16
663663
ReactCommon: dd03c17275c200496f346af93a7b94c53f3093a4
664-
RNAS: bf17eaa3a56a38ecf2834a34444b253add707439
664+
RNAS: 9b977ccebdd5e07aa5286251885d808baaf1eaea
665665
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
666666
TrustKit: 7858ea59d0e226b1457b2e9cc8b95d77ab21d471
667667
Yoga: b76f1acfda8212aa16b7e26bcce3983230c82603

example/ios/reactnativeappsecurityexample.xcodeproj/project.pbxproj

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
1313
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
1414
96905EF65AED1B983A6B3ABC /* libPods-reactnativeappsecurityexample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-reactnativeappsecurityexample.a */; };
15+
9C312102E4654C58A52F2D9A /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EF78828B1CC41A48D3F458E /* noop-file.swift */; };
1516
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
1617
BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
17-
F16C05333EA34419A6BF5FE3 /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B7CFD8C87FC429F9703ACE5 /* noop-file.swift */; };
1818
/* End PBXBuildFile section */
1919

2020
/* Begin PBXFileReference section */
21+
0EF78828B1CC41A48D3F458E /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "reactnativeappsecurityexample/noop-file.swift"; sourceTree = "<group>"; };
2122
13B07F961A680F5B00A75B9A /* reactnativeappsecurityexample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = reactnativeappsecurityexample.app; sourceTree = BUILT_PRODUCTS_DIR; };
2223
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = reactnativeappsecurityexample/AppDelegate.h; sourceTree = "<group>"; };
2324
13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = reactnativeappsecurityexample/AppDelegate.mm; sourceTree = "<group>"; };
2425
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = reactnativeappsecurityexample/Images.xcassets; sourceTree = "<group>"; };
2526
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = reactnativeappsecurityexample/Info.plist; sourceTree = "<group>"; };
2627
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = reactnativeappsecurityexample/main.m; sourceTree = "<group>"; };
27-
1E2FE781BEB94FCCB9ED15C7 /* reactnativeappsecurityexample-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "reactnativeappsecurityexample-Bridging-Header.h"; path = "reactnativeappsecurityexample/reactnativeappsecurityexample-Bridging-Header.h"; sourceTree = "<group>"; };
28-
2B7CFD8C87FC429F9703ACE5 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "reactnativeappsecurityexample/noop-file.swift"; sourceTree = "<group>"; };
2928
58EEBF8E8E6FB1BC6CAF49B5 /* libPods-reactnativeappsecurityexample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-reactnativeappsecurityexample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3029
6C2E3173556A471DD304B334 /* Pods-reactnativeappsecurityexample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactnativeappsecurityexample.debug.xcconfig"; path = "Target Support Files/Pods-reactnativeappsecurityexample/Pods-reactnativeappsecurityexample.debug.xcconfig"; sourceTree = "<group>"; };
30+
6FFFA5F664574FBABA0E4F06 /* reactnativeappsecurityexample-Bridging-Header.h */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.c.h; name = "reactnativeappsecurityexample-Bridging-Header.h"; path = "reactnativeappsecurityexample/reactnativeappsecurityexample-Bridging-Header.h"; sourceTree = "<group>"; };
3131
7A4D352CD337FB3A3BF06240 /* Pods-reactnativeappsecurityexample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-reactnativeappsecurityexample.release.xcconfig"; path = "Target Support Files/Pods-reactnativeappsecurityexample/Pods-reactnativeappsecurityexample.release.xcconfig"; sourceTree = "<group>"; };
3232
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = reactnativeappsecurityexample/SplashScreen.storyboard; sourceTree = "<group>"; };
3333
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
@@ -57,8 +57,8 @@
5757
13B07FB61A68108700A75B9A /* Info.plist */,
5858
13B07FB71A68108700A75B9A /* main.m */,
5959
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
60-
2B7CFD8C87FC429F9703ACE5 /* noop-file.swift */,
61-
1E2FE781BEB94FCCB9ED15C7 /* reactnativeappsecurityexample-Bridging-Header.h */,
60+
0EF78828B1CC41A48D3F458E /* noop-file.swift */,
61+
6FFFA5F664574FBABA0E4F06 /* reactnativeappsecurityexample-Bridging-Header.h */,
6262
);
6363
name = reactnativeappsecurityexample;
6464
sourceTree = "<group>";
@@ -145,13 +145,13 @@
145145
buildPhases = (
146146
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
147147
FD10A7F022414F080027D42C /* Start Packager */,
148-
4E8F2AB06ED3693BC5B5E8CD /* [Expo] Configure project */,
148+
A76648976B5E4C1BC1D596C0 /* [Expo] Configure project */,
149149
13B07F871A680F5B00A75B9A /* Sources */,
150150
13B07F8C1A680F5B00A75B9A /* Frameworks */,
151151
13B07F8E1A680F5B00A75B9A /* Resources */,
152152
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
153153
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
154-
74711092367B6E59338BFC69 /* [CP] Embed Pods Frameworks */,
154+
207FB40296F78CAFC68D7563 /* [CP] Embed Pods Frameworks */,
155155
);
156156
buildRules = (
157157
);
@@ -243,26 +243,7 @@
243243
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
244244
showEnvVarsInLog = 0;
245245
};
246-
4E8F2AB06ED3693BC5B5E8CD /* [Expo] Configure project */ = {
247-
isa = PBXShellScriptBuildPhase;
248-
alwaysOutOfDate = 1;
249-
buildActionMask = 2147483647;
250-
files = (
251-
);
252-
inputFileListPaths = (
253-
);
254-
inputPaths = (
255-
);
256-
name = "[Expo] Configure project";
257-
outputFileListPaths = (
258-
);
259-
outputPaths = (
260-
);
261-
runOnlyForDeploymentPostprocessing = 0;
262-
shellPath = /bin/sh;
263-
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-reactnativeappsecurityexample/expo-configure-project.sh\"\n";
264-
};
265-
74711092367B6E59338BFC69 /* [CP] Embed Pods Frameworks */ = {
246+
207FB40296F78CAFC68D7563 /* [CP] Embed Pods Frameworks */ = {
266247
isa = PBXShellScriptBuildPhase;
267248
buildActionMask = 2147483647;
268249
files = (
@@ -300,6 +281,25 @@
300281
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-reactnativeappsecurityexample/Pods-reactnativeappsecurityexample-resources.sh\"\n";
301282
showEnvVarsInLog = 0;
302283
};
284+
A76648976B5E4C1BC1D596C0 /* [Expo] Configure project */ = {
285+
isa = PBXShellScriptBuildPhase;
286+
alwaysOutOfDate = 1;
287+
buildActionMask = 2147483647;
288+
files = (
289+
);
290+
inputFileListPaths = (
291+
);
292+
inputPaths = (
293+
);
294+
name = "[Expo] Configure project";
295+
outputFileListPaths = (
296+
);
297+
outputPaths = (
298+
);
299+
runOnlyForDeploymentPostprocessing = 0;
300+
shellPath = /bin/sh;
301+
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-reactnativeappsecurityexample/expo-configure-project.sh\"\n";
302+
};
303303
FD10A7F022414F080027D42C /* Start Packager */ = {
304304
isa = PBXShellScriptBuildPhase;
305305
buildActionMask = 2147483647;
@@ -329,7 +329,7 @@
329329
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
330330
13B07FC11A68108700A75B9A /* main.m in Sources */,
331331
B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
332-
F16C05333EA34419A6BF5FE3 /* noop-file.swift in Sources */,
332+
9C312102E4654C58A52F2D9A /* noop-file.swift in Sources */,
333333
);
334334
runOnlyForDeploymentPostprocessing = 0;
335335
};

example/ios/reactnativeappsecurityexample/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
</dict>
4949
</dict>
5050
</dict>
51+
<key>RNAS_PREVENT_RECENT_SCREENSHOTS</key>
52+
<true/>
5153
<key>TSKConfiguration</key>
5254
<dict>
5355
<key>TSKSwizzleNetworkDelegates</key>

0 commit comments

Comments
 (0)