react-native-device-secure-info 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +175 -0
  2. package/android/app/build.gradle +119 -0
  3. package/android/app/debug.keystore +0 -0
  4. package/android/app/proguard-rules.pro +10 -0
  5. package/android/app/src/debug/AndroidManifest.xml +9 -0
  6. package/android/app/src/main/AndroidManifest.xml +26 -0
  7. package/android/app/src/main/java/com/reactnativedevicesecureinfo/DeviceSecureInfoModule.kt +167 -0
  8. package/android/app/src/main/java/com/reactnativedevicesecureinfo/DeviceSecureInfoPackage.kt +22 -0
  9. package/android/app/src/main/java/com/reactnativedevicesecureinfo/DeviceSecureInfoTurboModule.kt +169 -0
  10. package/android/app/src/main/java/com/reactnativedevicesecureinfo/DeviceSecureInfoTurboPackage.kt +46 -0
  11. package/android/app/src/main/java/com/reactnativedevicesecureinfo/MainActivity.kt +22 -0
  12. package/android/app/src/main/java/com/reactnativedevicesecureinfo/MainApplication.kt +49 -0
  13. package/android/app/src/main/res/drawable/rn_edit_text_material.xml +37 -0
  14. package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  15. package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  16. package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  17. package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  18. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  19. package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  20. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  21. package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  22. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  23. package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  24. package/android/app/src/main/res/values/strings.xml +3 -0
  25. package/android/app/src/main/res/values/styles.xml +9 -0
  26. package/android/build.gradle +21 -0
  27. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  28. package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
  29. package/android/gradle.properties +39 -0
  30. package/android/gradlew +251 -0
  31. package/android/gradlew.bat +94 -0
  32. package/android/settings.gradle +6 -0
  33. package/ios/.xcode.env +11 -0
  34. package/ios/.xcode.env.local +1 -0
  35. package/ios/DeviceSecureInfoModule.h +7 -0
  36. package/ios/DeviceSecureInfoModule.m +217 -0
  37. package/ios/DeviceSecureInfoTurboModule.h +19 -0
  38. package/ios/DeviceSecureInfoTurboModule.mm +230 -0
  39. package/ios/Podfile +35 -0
  40. package/ios/ReactNativeDeviceSecureInfo/AppDelegate.swift +30 -0
  41. package/ios/ReactNativeDeviceSecureInfo/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  42. package/ios/ReactNativeDeviceSecureInfo/Images.xcassets/Contents.json +6 -0
  43. package/ios/ReactNativeDeviceSecureInfo/Info.plist +52 -0
  44. package/ios/ReactNativeDeviceSecureInfo/LaunchScreen.storyboard +47 -0
  45. package/ios/ReactNativeDeviceSecureInfo/PrivacyInfo.xcprivacy +37 -0
  46. package/ios/ReactNativeDeviceSecureInfo-Bridging-Header.h +4 -0
  47. package/ios/ReactNativeDeviceSecureInfo.xcodeproj/project.pbxproj +504 -0
  48. package/ios/ReactNativeDeviceSecureInfo.xcodeproj/xcshareddata/xcschemes/ReactNativeDeviceSecureInfo.xcscheme +88 -0
  49. package/ios/ReactNativeDeviceSecureInfo.xcworkspace/contents.xcworkspacedata +10 -0
  50. package/ios/ReactNativeDeviceSecureInfo.xcworkspace/xcuserdata/dengbin.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  51. package/package.json +77 -0
  52. package/react-native-device-secure-info.podspec +20 -0
  53. package/react-native.config.js +13 -0
  54. package/src/NativeDeviceSecureInfo.ts +67 -0
  55. package/src/assets/image.png +0 -0
  56. package/src/index.ts +90 -0
@@ -0,0 +1,504 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 54;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 0C80B921A6F3F58F76C31292 /* libPods-ReactNativeDeviceSecureInfo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeDeviceSecureInfo.a */; };
11
+ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12
+ 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
13
+ 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
14
+ 99B431E3F62207071EC667AE /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; };
15
+ F7A161ED2F7BAA8700208C02 /* DeviceSecureInfoTurboModule.mm in Sources */ = {isa = PBXBuildFile; fileRef = F7A161EC2F7BAA8700208C02 /* DeviceSecureInfoTurboModule.mm */; };
16
+ F7A161EE2F7BAA8700208C02 /* DeviceSecureInfoModule.m in Sources */ = {isa = PBXBuildFile; fileRef = F7A161EA2F7BAA8700208C02 /* DeviceSecureInfoModule.m */; };
17
+ /* End PBXBuildFile section */
18
+
19
+ /* Begin PBXFileReference section */
20
+ 13B07F961A680F5B00A75B9A /* ReactNativeDeviceSecureInfo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeDeviceSecureInfo.app; sourceTree = BUILT_PRODUCTS_DIR; };
21
+ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeDeviceSecureInfo/Images.xcassets; sourceTree = "<group>"; };
22
+ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeDeviceSecureInfo/Info.plist; sourceTree = "<group>"; };
23
+ 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = ReactNativeDeviceSecureInfo/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
24
+ 3B4392A12AC88292D35C810B /* Pods-ReactNativeDeviceSecureInfo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDeviceSecureInfo.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo.debug.xcconfig"; sourceTree = "<group>"; };
25
+ 5709B34CF0A7D63546082F79 /* Pods-ReactNativeDeviceSecureInfo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDeviceSecureInfo.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo.release.xcconfig"; sourceTree = "<group>"; };
26
+ 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeDeviceSecureInfo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeDeviceSecureInfo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
27
+ 761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = ReactNativeDeviceSecureInfo/AppDelegate.swift; sourceTree = "<group>"; };
28
+ 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = ReactNativeDeviceSecureInfo/LaunchScreen.storyboard; sourceTree = "<group>"; };
29
+ ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
30
+ F7A161E92F7BAA8700208C02 /* DeviceSecureInfoModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DeviceSecureInfoModule.h; sourceTree = "<group>"; };
31
+ F7A161EA2F7BAA8700208C02 /* DeviceSecureInfoModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DeviceSecureInfoModule.m; sourceTree = "<group>"; };
32
+ F7A161EB2F7BAA8700208C02 /* DeviceSecureInfoTurboModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DeviceSecureInfoTurboModule.h; sourceTree = "<group>"; };
33
+ F7A161EC2F7BAA8700208C02 /* DeviceSecureInfoTurboModule.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = DeviceSecureInfoTurboModule.mm; sourceTree = "<group>"; };
34
+ F7A161EF2F7BAA8F00208C02 /* ReactNativeDeviceSecureInfo-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReactNativeDeviceSecureInfo-Bridging-Header.h"; sourceTree = "<group>"; };
35
+ /* End PBXFileReference section */
36
+
37
+ /* Begin PBXFrameworksBuildPhase section */
38
+ 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
39
+ isa = PBXFrameworksBuildPhase;
40
+ buildActionMask = 2147483647;
41
+ files = (
42
+ 0C80B921A6F3F58F76C31292 /* libPods-ReactNativeDeviceSecureInfo.a in Frameworks */,
43
+ );
44
+ runOnlyForDeploymentPostprocessing = 0;
45
+ };
46
+ /* End PBXFrameworksBuildPhase section */
47
+
48
+ /* Begin PBXGroup section */
49
+ 13B07FAE1A68108700A75B9A /* ReactNativeDeviceSecureInfo */ = {
50
+ isa = PBXGroup;
51
+ children = (
52
+ 13B07FB51A68108700A75B9A /* Images.xcassets */,
53
+ 761780EC2CA45674006654EE /* AppDelegate.swift */,
54
+ 13B07FB61A68108700A75B9A /* Info.plist */,
55
+ 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
56
+ 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
57
+ );
58
+ name = ReactNativeDeviceSecureInfo;
59
+ sourceTree = "<group>";
60
+ };
61
+ 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
62
+ isa = PBXGroup;
63
+ children = (
64
+ ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
65
+ 5DCACB8F33CDC322A6C60F78 /* libPods-ReactNativeDeviceSecureInfo.a */,
66
+ );
67
+ name = Frameworks;
68
+ sourceTree = "<group>";
69
+ };
70
+ 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
71
+ isa = PBXGroup;
72
+ children = (
73
+ );
74
+ name = Libraries;
75
+ sourceTree = "<group>";
76
+ };
77
+ 83CBB9F61A601CBA00E9B192 = {
78
+ isa = PBXGroup;
79
+ children = (
80
+ F7A161E92F7BAA8700208C02 /* DeviceSecureInfoModule.h */,
81
+ F7A161EA2F7BAA8700208C02 /* DeviceSecureInfoModule.m */,
82
+ F7A161EB2F7BAA8700208C02 /* DeviceSecureInfoTurboModule.h */,
83
+ F7A161EC2F7BAA8700208C02 /* DeviceSecureInfoTurboModule.mm */,
84
+ 13B07FAE1A68108700A75B9A /* ReactNativeDeviceSecureInfo */,
85
+ 832341AE1AAA6A7D00B99B32 /* Libraries */,
86
+ 83CBBA001A601CBA00E9B192 /* Products */,
87
+ 2D16E6871FA4F8E400B85C8A /* Frameworks */,
88
+ BBD78D7AC51CEA395F1C20DB /* Pods */,
89
+ F7A161EF2F7BAA8F00208C02 /* ReactNativeDeviceSecureInfo-Bridging-Header.h */,
90
+ );
91
+ indentWidth = 2;
92
+ sourceTree = "<group>";
93
+ tabWidth = 2;
94
+ usesTabs = 0;
95
+ };
96
+ 83CBBA001A601CBA00E9B192 /* Products */ = {
97
+ isa = PBXGroup;
98
+ children = (
99
+ 13B07F961A680F5B00A75B9A /* ReactNativeDeviceSecureInfo.app */,
100
+ );
101
+ name = Products;
102
+ sourceTree = "<group>";
103
+ };
104
+ BBD78D7AC51CEA395F1C20DB /* Pods */ = {
105
+ isa = PBXGroup;
106
+ children = (
107
+ 3B4392A12AC88292D35C810B /* Pods-ReactNativeDeviceSecureInfo.debug.xcconfig */,
108
+ 5709B34CF0A7D63546082F79 /* Pods-ReactNativeDeviceSecureInfo.release.xcconfig */,
109
+ );
110
+ path = Pods;
111
+ sourceTree = "<group>";
112
+ };
113
+ /* End PBXGroup section */
114
+
115
+ /* Begin PBXNativeTarget section */
116
+ 13B07F861A680F5B00A75B9A /* ReactNativeDeviceSecureInfo */ = {
117
+ isa = PBXNativeTarget;
118
+ buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeDeviceSecureInfo" */;
119
+ buildPhases = (
120
+ C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */,
121
+ 13B07F871A680F5B00A75B9A /* Sources */,
122
+ 13B07F8C1A680F5B00A75B9A /* Frameworks */,
123
+ 13B07F8E1A680F5B00A75B9A /* Resources */,
124
+ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
125
+ 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */,
126
+ E235C05ADACE081382539298 /* [CP] Copy Pods Resources */,
127
+ );
128
+ buildRules = (
129
+ );
130
+ dependencies = (
131
+ );
132
+ name = ReactNativeDeviceSecureInfo;
133
+ productName = ReactNativeDeviceSecureInfo;
134
+ productReference = 13B07F961A680F5B00A75B9A /* ReactNativeDeviceSecureInfo.app */;
135
+ productType = "com.apple.product-type.application";
136
+ };
137
+ /* End PBXNativeTarget section */
138
+
139
+ /* Begin PBXProject section */
140
+ 83CBB9F71A601CBA00E9B192 /* Project object */ = {
141
+ isa = PBXProject;
142
+ attributes = {
143
+ LastUpgradeCheck = 1210;
144
+ TargetAttributes = {
145
+ 13B07F861A680F5B00A75B9A = {
146
+ LastSwiftMigration = 2620;
147
+ };
148
+ };
149
+ };
150
+ buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeDeviceSecureInfo" */;
151
+ compatibilityVersion = "Xcode 12.0";
152
+ developmentRegion = en;
153
+ hasScannedForEncodings = 0;
154
+ knownRegions = (
155
+ en,
156
+ Base,
157
+ );
158
+ mainGroup = 83CBB9F61A601CBA00E9B192;
159
+ productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
160
+ projectDirPath = "";
161
+ projectRoot = "";
162
+ targets = (
163
+ 13B07F861A680F5B00A75B9A /* ReactNativeDeviceSecureInfo */,
164
+ );
165
+ };
166
+ /* End PBXProject section */
167
+
168
+ /* Begin PBXResourcesBuildPhase section */
169
+ 13B07F8E1A680F5B00A75B9A /* Resources */ = {
170
+ isa = PBXResourcesBuildPhase;
171
+ buildActionMask = 2147483647;
172
+ files = (
173
+ 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
174
+ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
175
+ 99B431E3F62207071EC667AE /* PrivacyInfo.xcprivacy in Resources */,
176
+ );
177
+ runOnlyForDeploymentPostprocessing = 0;
178
+ };
179
+ /* End PBXResourcesBuildPhase section */
180
+
181
+ /* Begin PBXShellScriptBuildPhase section */
182
+ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
183
+ isa = PBXShellScriptBuildPhase;
184
+ buildActionMask = 2147483647;
185
+ files = (
186
+ );
187
+ inputPaths = (
188
+ "$(SRCROOT)/.xcode.env.local",
189
+ "$(SRCROOT)/.xcode.env",
190
+ );
191
+ name = "Bundle React Native code and images";
192
+ outputPaths = (
193
+ );
194
+ runOnlyForDeploymentPostprocessing = 0;
195
+ shellPath = /bin/sh;
196
+ shellScript = "set -e\n\nWITH_ENVIRONMENT=\"$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"$REACT_NATIVE_PATH/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
197
+ };
198
+ 00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */ = {
199
+ isa = PBXShellScriptBuildPhase;
200
+ buildActionMask = 2147483647;
201
+ files = (
202
+ );
203
+ inputFileListPaths = (
204
+ "${PODS_ROOT}/Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo-frameworks-${CONFIGURATION}-input-files.xcfilelist",
205
+ );
206
+ inputPaths = (
207
+ );
208
+ name = "[CP] Embed Pods Frameworks";
209
+ outputFileListPaths = (
210
+ "${PODS_ROOT}/Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo-frameworks-${CONFIGURATION}-output-files.xcfilelist",
211
+ );
212
+ outputPaths = (
213
+ );
214
+ runOnlyForDeploymentPostprocessing = 0;
215
+ shellPath = /bin/sh;
216
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo-frameworks.sh\"\n";
217
+ showEnvVarsInLog = 0;
218
+ };
219
+ C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = {
220
+ isa = PBXShellScriptBuildPhase;
221
+ buildActionMask = 2147483647;
222
+ files = (
223
+ );
224
+ inputFileListPaths = (
225
+ );
226
+ inputPaths = (
227
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
228
+ "${PODS_ROOT}/Manifest.lock",
229
+ );
230
+ name = "[CP] Check Pods Manifest.lock";
231
+ outputFileListPaths = (
232
+ );
233
+ outputPaths = (
234
+ "$(DERIVED_FILE_DIR)/Pods-ReactNativeDeviceSecureInfo-checkManifestLockResult.txt",
235
+ );
236
+ runOnlyForDeploymentPostprocessing = 0;
237
+ shellPath = /bin/sh;
238
+ 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";
239
+ showEnvVarsInLog = 0;
240
+ };
241
+ E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = {
242
+ isa = PBXShellScriptBuildPhase;
243
+ buildActionMask = 2147483647;
244
+ files = (
245
+ );
246
+ inputFileListPaths = (
247
+ "${PODS_ROOT}/Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo-resources-${CONFIGURATION}-input-files.xcfilelist",
248
+ );
249
+ inputPaths = (
250
+ );
251
+ name = "[CP] Copy Pods Resources";
252
+ outputFileListPaths = (
253
+ "${PODS_ROOT}/Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo-resources-${CONFIGURATION}-output-files.xcfilelist",
254
+ );
255
+ outputPaths = (
256
+ );
257
+ runOnlyForDeploymentPostprocessing = 0;
258
+ shellPath = /bin/sh;
259
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeDeviceSecureInfo/Pods-ReactNativeDeviceSecureInfo-resources.sh\"\n";
260
+ showEnvVarsInLog = 0;
261
+ };
262
+ /* End PBXShellScriptBuildPhase section */
263
+
264
+ /* Begin PBXSourcesBuildPhase section */
265
+ 13B07F871A680F5B00A75B9A /* Sources */ = {
266
+ isa = PBXSourcesBuildPhase;
267
+ buildActionMask = 2147483647;
268
+ files = (
269
+ 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */,
270
+ F7A161ED2F7BAA8700208C02 /* DeviceSecureInfoTurboModule.mm in Sources */,
271
+ F7A161EE2F7BAA8700208C02 /* DeviceSecureInfoModule.m in Sources */,
272
+ );
273
+ runOnlyForDeploymentPostprocessing = 0;
274
+ };
275
+ /* End PBXSourcesBuildPhase section */
276
+
277
+ /* Begin XCBuildConfiguration section */
278
+ 13B07F941A680F5B00A75B9A /* Debug */ = {
279
+ isa = XCBuildConfiguration;
280
+ baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-ReactNativeDeviceSecureInfo.debug.xcconfig */;
281
+ buildSettings = {
282
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
283
+ CLANG_ENABLE_MODULES = YES;
284
+ CURRENT_PROJECT_VERSION = 1;
285
+ ENABLE_BITCODE = NO;
286
+ INFOPLIST_FILE = ReactNativeDeviceSecureInfo/Info.plist;
287
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
288
+ LD_RUNPATH_SEARCH_PATHS = (
289
+ "$(inherited)",
290
+ "@executable_path/Frameworks",
291
+ );
292
+ MARKETING_VERSION = 1.0;
293
+ OTHER_LDFLAGS = (
294
+ "$(inherited)",
295
+ "-ObjC",
296
+ "-lc++",
297
+ );
298
+ PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
299
+ PRODUCT_NAME = ReactNativeDeviceSecureInfo;
300
+ SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeDeviceSecureInfo-Bridging-Header.h";
301
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
302
+ SWIFT_VERSION = 5.0;
303
+ VERSIONING_SYSTEM = "apple-generic";
304
+ };
305
+ name = Debug;
306
+ };
307
+ 13B07F951A680F5B00A75B9A /* Release */ = {
308
+ isa = XCBuildConfiguration;
309
+ baseConfigurationReference = 5709B34CF0A7D63546082F79 /* Pods-ReactNativeDeviceSecureInfo.release.xcconfig */;
310
+ buildSettings = {
311
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
312
+ CLANG_ENABLE_MODULES = YES;
313
+ CURRENT_PROJECT_VERSION = 1;
314
+ INFOPLIST_FILE = ReactNativeDeviceSecureInfo/Info.plist;
315
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
316
+ LD_RUNPATH_SEARCH_PATHS = (
317
+ "$(inherited)",
318
+ "@executable_path/Frameworks",
319
+ );
320
+ MARKETING_VERSION = 1.0;
321
+ OTHER_LDFLAGS = (
322
+ "$(inherited)",
323
+ "-ObjC",
324
+ "-lc++",
325
+ );
326
+ PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
327
+ PRODUCT_NAME = ReactNativeDeviceSecureInfo;
328
+ SWIFT_OBJC_BRIDGING_HEADER = "ReactNativeDeviceSecureInfo-Bridging-Header.h";
329
+ SWIFT_VERSION = 5.0;
330
+ VERSIONING_SYSTEM = "apple-generic";
331
+ };
332
+ name = Release;
333
+ };
334
+ 83CBBA201A601CBA00E9B192 /* Debug */ = {
335
+ isa = XCBuildConfiguration;
336
+ buildSettings = {
337
+ ALWAYS_SEARCH_USER_PATHS = NO;
338
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
339
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
340
+ CLANG_CXX_LIBRARY = "libc++";
341
+ CLANG_ENABLE_MODULES = YES;
342
+ CLANG_ENABLE_OBJC_ARC = YES;
343
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
344
+ CLANG_WARN_BOOL_CONVERSION = YES;
345
+ CLANG_WARN_COMMA = YES;
346
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
347
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
348
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
349
+ CLANG_WARN_EMPTY_BODY = YES;
350
+ CLANG_WARN_ENUM_CONVERSION = YES;
351
+ CLANG_WARN_INFINITE_RECURSION = YES;
352
+ CLANG_WARN_INT_CONVERSION = YES;
353
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
354
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
355
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
356
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
357
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
358
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
359
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
360
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
361
+ CLANG_WARN_UNREACHABLE_CODE = YES;
362
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
363
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
364
+ COPY_PHASE_STRIP = NO;
365
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
366
+ ENABLE_TESTABILITY = YES;
367
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
368
+ GCC_C_LANGUAGE_STANDARD = gnu99;
369
+ GCC_DYNAMIC_NO_PIC = NO;
370
+ GCC_NO_COMMON_BLOCKS = YES;
371
+ GCC_OPTIMIZATION_LEVEL = 0;
372
+ GCC_PREPROCESSOR_DEFINITIONS = (
373
+ "DEBUG=1",
374
+ "$(inherited)",
375
+ );
376
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
377
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
378
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
379
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
380
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
381
+ GCC_WARN_UNUSED_FUNCTION = YES;
382
+ GCC_WARN_UNUSED_VARIABLE = YES;
383
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
384
+ LD_RUNPATH_SEARCH_PATHS = (
385
+ /usr/lib/swift,
386
+ "$(inherited)",
387
+ );
388
+ LIBRARY_SEARCH_PATHS = (
389
+ "\"$(SDKROOT)/usr/lib/swift\"",
390
+ "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
391
+ "\"$(inherited)\"",
392
+ );
393
+ MTL_ENABLE_DEBUG_INFO = YES;
394
+ ONLY_ACTIVE_ARCH = YES;
395
+ OTHER_CPLUSPLUSFLAGS = (
396
+ "$(OTHER_CFLAGS)",
397
+ "-DFOLLY_NO_CONFIG",
398
+ "-DFOLLY_MOBILE=1",
399
+ "-DFOLLY_USE_LIBCPP=1",
400
+ "-DFOLLY_CFG_NO_COROUTINES=1",
401
+ "-DFOLLY_HAVE_CLOCK_GETTIME=1",
402
+ );
403
+ OTHER_LDFLAGS = "$(inherited) ";
404
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
405
+ SDKROOT = iphoneos;
406
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
407
+ USE_HERMES = true;
408
+ };
409
+ name = Debug;
410
+ };
411
+ 83CBBA211A601CBA00E9B192 /* Release */ = {
412
+ isa = XCBuildConfiguration;
413
+ buildSettings = {
414
+ ALWAYS_SEARCH_USER_PATHS = NO;
415
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
416
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
417
+ CLANG_CXX_LIBRARY = "libc++";
418
+ CLANG_ENABLE_MODULES = YES;
419
+ CLANG_ENABLE_OBJC_ARC = YES;
420
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
421
+ CLANG_WARN_BOOL_CONVERSION = YES;
422
+ CLANG_WARN_COMMA = YES;
423
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
424
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
425
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
426
+ CLANG_WARN_EMPTY_BODY = YES;
427
+ CLANG_WARN_ENUM_CONVERSION = YES;
428
+ CLANG_WARN_INFINITE_RECURSION = YES;
429
+ CLANG_WARN_INT_CONVERSION = YES;
430
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
431
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
432
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
433
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
434
+ CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
435
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
436
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
437
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
438
+ CLANG_WARN_UNREACHABLE_CODE = YES;
439
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
440
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
441
+ COPY_PHASE_STRIP = YES;
442
+ ENABLE_NS_ASSERTIONS = NO;
443
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
444
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "";
445
+ GCC_C_LANGUAGE_STANDARD = gnu99;
446
+ GCC_NO_COMMON_BLOCKS = YES;
447
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
448
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
449
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
450
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
451
+ GCC_WARN_UNUSED_FUNCTION = YES;
452
+ GCC_WARN_UNUSED_VARIABLE = YES;
453
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
454
+ LD_RUNPATH_SEARCH_PATHS = (
455
+ /usr/lib/swift,
456
+ "$(inherited)",
457
+ );
458
+ LIBRARY_SEARCH_PATHS = (
459
+ "\"$(SDKROOT)/usr/lib/swift\"",
460
+ "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
461
+ "\"$(inherited)\"",
462
+ );
463
+ MTL_ENABLE_DEBUG_INFO = NO;
464
+ OTHER_CPLUSPLUSFLAGS = (
465
+ "$(OTHER_CFLAGS)",
466
+ "-DFOLLY_NO_CONFIG",
467
+ "-DFOLLY_MOBILE=1",
468
+ "-DFOLLY_USE_LIBCPP=1",
469
+ "-DFOLLY_CFG_NO_COROUTINES=1",
470
+ "-DFOLLY_HAVE_CLOCK_GETTIME=1",
471
+ );
472
+ OTHER_LDFLAGS = "$(inherited) ";
473
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
474
+ SDKROOT = iphoneos;
475
+ USE_HERMES = true;
476
+ VALIDATE_PRODUCT = YES;
477
+ };
478
+ name = Release;
479
+ };
480
+ /* End XCBuildConfiguration section */
481
+
482
+ /* Begin XCConfigurationList section */
483
+ 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeDeviceSecureInfo" */ = {
484
+ isa = XCConfigurationList;
485
+ buildConfigurations = (
486
+ 13B07F941A680F5B00A75B9A /* Debug */,
487
+ 13B07F951A680F5B00A75B9A /* Release */,
488
+ );
489
+ defaultConfigurationIsVisible = 0;
490
+ defaultConfigurationName = Release;
491
+ };
492
+ 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeDeviceSecureInfo" */ = {
493
+ isa = XCConfigurationList;
494
+ buildConfigurations = (
495
+ 83CBBA201A601CBA00E9B192 /* Debug */,
496
+ 83CBBA211A601CBA00E9B192 /* Release */,
497
+ );
498
+ defaultConfigurationIsVisible = 0;
499
+ defaultConfigurationName = Release;
500
+ };
501
+ /* End XCConfigurationList section */
502
+ };
503
+ rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
504
+ }
@@ -0,0 +1,88 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "1210"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
+ BuildableName = "ReactNativeDeviceSecureInfo.app"
19
+ BlueprintName = "ReactNativeDeviceSecureInfo"
20
+ ReferencedContainer = "container:ReactNativeDeviceSecureInfo.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ buildConfiguration = "Debug"
27
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+ shouldUseLaunchSchemeArgsEnv = "YES">
30
+ <Testables>
31
+ <TestableReference
32
+ skipped = "NO">
33
+ <BuildableReference
34
+ BuildableIdentifier = "primary"
35
+ BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
+ BuildableName = "ReactNativeDeviceSecureInfoTests.xctest"
37
+ BlueprintName = "ReactNativeDeviceSecureInfoTests"
38
+ ReferencedContainer = "container:ReactNativeDeviceSecureInfo.xcodeproj">
39
+ </BuildableReference>
40
+ </TestableReference>
41
+ </Testables>
42
+ </TestAction>
43
+ <LaunchAction
44
+ buildConfiguration = "Debug"
45
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
+ launchStyle = "0"
48
+ useCustomWorkingDirectory = "NO"
49
+ ignoresPersistentStateOnLaunch = "NO"
50
+ debugDocumentVersioning = "YES"
51
+ debugServiceExtension = "internal"
52
+ allowLocationSimulation = "YES">
53
+ <BuildableProductRunnable
54
+ runnableDebuggingMode = "0">
55
+ <BuildableReference
56
+ BuildableIdentifier = "primary"
57
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
+ BuildableName = "ReactNativeDeviceSecureInfo.app"
59
+ BlueprintName = "ReactNativeDeviceSecureInfo"
60
+ ReferencedContainer = "container:ReactNativeDeviceSecureInfo.xcodeproj">
61
+ </BuildableReference>
62
+ </BuildableProductRunnable>
63
+ </LaunchAction>
64
+ <ProfileAction
65
+ buildConfiguration = "Release"
66
+ shouldUseLaunchSchemeArgsEnv = "YES"
67
+ savedToolIdentifier = ""
68
+ useCustomWorkingDirectory = "NO"
69
+ debugDocumentVersioning = "YES">
70
+ <BuildableProductRunnable
71
+ runnableDebuggingMode = "0">
72
+ <BuildableReference
73
+ BuildableIdentifier = "primary"
74
+ BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
+ BuildableName = "ReactNativeDeviceSecureInfo.app"
76
+ BlueprintName = "ReactNativeDeviceSecureInfo"
77
+ ReferencedContainer = "container:ReactNativeDeviceSecureInfo.xcodeproj">
78
+ </BuildableReference>
79
+ </BuildableProductRunnable>
80
+ </ProfileAction>
81
+ <AnalyzeAction
82
+ buildConfiguration = "Debug">
83
+ </AnalyzeAction>
84
+ <ArchiveAction
85
+ buildConfiguration = "Release"
86
+ revealArchiveInOrganizer = "YES">
87
+ </ArchiveAction>
88
+ </Scheme>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "group:ReactNativeDeviceSecureInfo.xcodeproj">
6
+ </FileRef>
7
+ <FileRef
8
+ location = "group:Pods/Pods.xcodeproj">
9
+ </FileRef>
10
+ </Workspace>
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "react-native-device-secure-info",
3
+ "version": "1.0.0",
4
+ "description": "React Native native module to get device secure information including device info, memory, CPU, and battery status. Supports both Old Architecture (Bridge) and New Architecture (TurboModule).",
5
+ "main": "src/index.ts",
6
+ "types": "src/index.ts",
7
+ "files": [
8
+ "src/",
9
+ "android/",
10
+ "ios/",
11
+ "react-native-device-secure-info.podspec",
12
+ "react-native.config.js",
13
+ "README.md"
14
+ ],
15
+ "scripts": {
16
+ "android": "react-native run-android",
17
+ "ios": "react-native run-ios",
18
+ "lint": "eslint .",
19
+ "start": "react-native start",
20
+ "test": "jest"
21
+ },
22
+ "keywords": [
23
+ "react-native",
24
+ "device-info",
25
+ "native-module",
26
+ "turbo-module",
27
+ "battery",
28
+ "cpu",
29
+ "memory",
30
+ "ios",
31
+ "android"
32
+ ],
33
+ "author": "am1210660",
34
+ "license": "MIT",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "https://github.com/121066/react-native-device-secure-info.git"
38
+ },
39
+ "peerDependencies": {
40
+ "react": ">=18.0.0",
41
+ "react-native": ">=0.71.0"
42
+ },
43
+ "dependencies": {},
44
+ "devDependencies": {
45
+ "@babel/core": "^7.25.2",
46
+ "@babel/preset-env": "^7.25.3",
47
+ "@babel/runtime": "^7.25.0",
48
+ "@react-native-community/cli": "15.0.1",
49
+ "@react-native-community/cli-platform-android": "15.0.1",
50
+ "@react-native-community/cli-platform-ios": "15.0.1",
51
+ "@react-native/babel-preset": "0.78.3",
52
+ "@react-native/eslint-config": "0.78.3",
53
+ "@react-native/metro-config": "0.78.3",
54
+ "@react-native/typescript-config": "0.78.3",
55
+ "@types/jest": "^29.5.13",
56
+ "@types/react": "^19.0.0",
57
+ "@types/react-test-renderer": "^19.0.0",
58
+ "eslint": "^8.19.0",
59
+ "jest": "^29.6.3",
60
+ "prettier": "2.8.8",
61
+ "react": "19.0.0",
62
+ "react-native": "0.78.3",
63
+ "react-test-renderer": "19.0.0",
64
+ "typescript": "5.0.4"
65
+ },
66
+ "engines": {
67
+ "node": ">=18"
68
+ },
69
+ "codegenConfig": {
70
+ "name": "DeviceSecureInfoSpec",
71
+ "type": "modules",
72
+ "jsSrcsDir": "src",
73
+ "android": {
74
+ "javaPackageName": "com.reactnativedevicesecureinfo"
75
+ }
76
+ }
77
+ }