@exodus/react-native-screenshot-detector 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 (58) hide show
  1. package/Example/.babelrc +3 -0
  2. package/Example/.buckconfig +6 -0
  3. package/Example/.flowconfig +46 -0
  4. package/Example/.gitattributes +1 -0
  5. package/Example/.watchmanconfig +1 -0
  6. package/Example/__tests__/index.android.js +12 -0
  7. package/Example/__tests__/index.ios.js +12 -0
  8. package/Example/android/app/BUCK +66 -0
  9. package/Example/android/app/build.gradle +140 -0
  10. package/Example/android/app/proguard-rules.pro +66 -0
  11. package/Example/android/app/src/main/AndroidManifest.xml +32 -0
  12. package/Example/android/app/src/main/java/com/example/MainActivity.java +15 -0
  13. package/Example/android/app/src/main/java/com/example/MainApplication.java +46 -0
  14. package/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  15. package/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  16. package/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  17. package/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  18. package/Example/android/app/src/main/res/values/strings.xml +3 -0
  19. package/Example/android/app/src/main/res/values/styles.xml +8 -0
  20. package/Example/android/build.gradle +24 -0
  21. package/Example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  22. package/Example/android/gradle/wrapper/gradle-wrapper.properties +5 -0
  23. package/Example/android/gradle.properties +20 -0
  24. package/Example/android/gradlew +164 -0
  25. package/Example/android/gradlew.bat +90 -0
  26. package/Example/android/keystores/BUCK +8 -0
  27. package/Example/android/keystores/debug.keystore.properties +4 -0
  28. package/Example/android/settings.gradle +3 -0
  29. package/Example/app.json +4 -0
  30. package/Example/index.android.js +53 -0
  31. package/Example/index.ios.js +61 -0
  32. package/Example/ios/Example/AppDelegate.h +16 -0
  33. package/Example/ios/Example/AppDelegate.m +47 -0
  34. package/Example/ios/Example/Base.lproj/LaunchScreen.xib +42 -0
  35. package/Example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
  36. package/Example/ios/Example/Info.plist +57 -0
  37. package/Example/ios/Example/main.m +18 -0
  38. package/Example/ios/Example-tvOS/Info.plist +54 -0
  39. package/Example/ios/Example-tvOSTests/Info.plist +24 -0
  40. package/Example/ios/Example.xcodeproj/project.pbxproj +1328 -0
  41. package/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-tvOS.xcscheme +129 -0
  42. package/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme +129 -0
  43. package/Example/ios/ExampleTests/ExampleTests.m +70 -0
  44. package/Example/ios/ExampleTests/Info.plist +24 -0
  45. package/Example/package.json +23 -0
  46. package/LICENSE +21 -0
  47. package/README.md +32 -0
  48. package/android/build.gradle +36 -0
  49. package/android/src/main/AndroidManifest.xml +6 -0
  50. package/android/src/main/java/com/reactlibrary/RNScreenshotDetectorModule.java +49 -0
  51. package/android/src/main/java/com/reactlibrary/RNScreenshotDetectorPackage.java +28 -0
  52. package/index.android.js +13 -0
  53. package/index.d.ts +6 -0
  54. package/index.ios.js +15 -0
  55. package/ios/RNScreenshotDetector/RNScreenshotDetector.h +14 -0
  56. package/ios/RNScreenshotDetector/RNScreenshotDetector.m +45 -0
  57. package/ios/RNScreenshotDetector.xcodeproj/project.pbxproj +271 -0
  58. package/package.json +17 -0
@@ -0,0 +1,271 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ BFE7D3921E830F7000DBDD2E /* RNScreenshotDetector.m in Sources */ = {isa = PBXBuildFile; fileRef = BFE7D3901E830F7000DBDD2E /* RNScreenshotDetector.m */; };
11
+ BFE7D3AD1E83123B00DBDD2E /* RNScreenshotDetector.m in CopyFiles */ = {isa = PBXBuildFile; fileRef = BFE7D3901E830F7000DBDD2E /* RNScreenshotDetector.m */; };
12
+ BFE7D3AE1E83123B00DBDD2E /* RNScreenshotDetector.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = BFE7D3911E830F7000DBDD2E /* RNScreenshotDetector.h */; };
13
+ BFE7D4131E83244000DBDD2E /* RNScreenshotDetector.h in Headers */ = {isa = PBXBuildFile; fileRef = BFE7D3911E830F7000DBDD2E /* RNScreenshotDetector.h */; };
14
+ /* End PBXBuildFile section */
15
+
16
+ /* Begin PBXCopyFilesBuildPhase section */
17
+ 58B511D91A9E6C8500147676 /* CopyFiles */ = {
18
+ isa = PBXCopyFilesBuildPhase;
19
+ buildActionMask = 2147483647;
20
+ dstPath = "include/$(PRODUCT_NAME)";
21
+ dstSubfolderSpec = 16;
22
+ files = (
23
+ BFE7D3AD1E83123B00DBDD2E /* RNScreenshotDetector.m in CopyFiles */,
24
+ BFE7D3AE1E83123B00DBDD2E /* RNScreenshotDetector.h in CopyFiles */,
25
+ );
26
+ runOnlyForDeploymentPostprocessing = 0;
27
+ };
28
+ /* End PBXCopyFilesBuildPhase section */
29
+
30
+ /* Begin PBXFileReference section */
31
+ 134814201AA4EA6300B7C361 /* libRNScreenshotDetector.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNScreenshotDetector.a; sourceTree = BUILT_PRODUCTS_DIR; };
32
+ BFE7D3901E830F7000DBDD2E /* RNScreenshotDetector.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNScreenshotDetector.m; path = RNScreenshotDetector/RNScreenshotDetector.m; sourceTree = "<group>"; };
33
+ BFE7D3911E830F7000DBDD2E /* RNScreenshotDetector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RNScreenshotDetector.h; path = RNScreenshotDetector/RNScreenshotDetector.h; sourceTree = "<group>"; };
34
+ /* End PBXFileReference section */
35
+
36
+ /* Begin PBXFrameworksBuildPhase section */
37
+ 58B511D81A9E6C8500147676 /* Frameworks */ = {
38
+ isa = PBXFrameworksBuildPhase;
39
+ buildActionMask = 2147483647;
40
+ files = (
41
+ );
42
+ runOnlyForDeploymentPostprocessing = 0;
43
+ };
44
+ /* End PBXFrameworksBuildPhase section */
45
+
46
+ /* Begin PBXGroup section */
47
+ 134814211AA4EA7D00B7C361 /* Products */ = {
48
+ isa = PBXGroup;
49
+ children = (
50
+ 134814201AA4EA6300B7C361 /* libRNScreenshotDetector.a */,
51
+ );
52
+ name = Products;
53
+ sourceTree = "<group>";
54
+ };
55
+ 58B511D21A9E6C8500147676 = {
56
+ isa = PBXGroup;
57
+ children = (
58
+ BFE7D3901E830F7000DBDD2E /* RNScreenshotDetector.m */,
59
+ BFE7D3911E830F7000DBDD2E /* RNScreenshotDetector.h */,
60
+ 134814211AA4EA7D00B7C361 /* Products */,
61
+ );
62
+ sourceTree = "<group>";
63
+ };
64
+ /* End PBXGroup section */
65
+
66
+ /* Begin PBXHeadersBuildPhase section */
67
+ BFE7D4121E83243A00DBDD2E /* Headers */ = {
68
+ isa = PBXHeadersBuildPhase;
69
+ buildActionMask = 2147483647;
70
+ files = (
71
+ BFE7D4131E83244000DBDD2E /* RNScreenshotDetector.h in Headers */,
72
+ );
73
+ runOnlyForDeploymentPostprocessing = 0;
74
+ };
75
+ /* End PBXHeadersBuildPhase section */
76
+
77
+ /* Begin PBXNativeTarget section */
78
+ 58B511DA1A9E6C8500147676 /* RNScreenshotDetector */ = {
79
+ isa = PBXNativeTarget;
80
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNScreenshotDetector" */;
81
+ buildPhases = (
82
+ 58B511D71A9E6C8500147676 /* Sources */,
83
+ 58B511D81A9E6C8500147676 /* Frameworks */,
84
+ 58B511D91A9E6C8500147676 /* CopyFiles */,
85
+ BFE7D4121E83243A00DBDD2E /* Headers */,
86
+ );
87
+ buildRules = (
88
+ );
89
+ dependencies = (
90
+ );
91
+ name = RNScreenshotDetector;
92
+ productName = RCTDataManager;
93
+ productReference = 134814201AA4EA6300B7C361 /* libRNScreenshotDetector.a */;
94
+ productType = "com.apple.product-type.library.static";
95
+ };
96
+ /* End PBXNativeTarget section */
97
+
98
+ /* Begin PBXProject section */
99
+ 58B511D31A9E6C8500147676 /* Project object */ = {
100
+ isa = PBXProject;
101
+ attributes = {
102
+ LastUpgradeCheck = 0610;
103
+ ORGANIZATIONNAME = Facebook;
104
+ TargetAttributes = {
105
+ 58B511DA1A9E6C8500147676 = {
106
+ CreatedOnToolsVersion = 6.1.1;
107
+ };
108
+ };
109
+ };
110
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNScreenshotDetector" */;
111
+ compatibilityVersion = "Xcode 3.2";
112
+ developmentRegion = English;
113
+ hasScannedForEncodings = 0;
114
+ knownRegions = (
115
+ en,
116
+ );
117
+ mainGroup = 58B511D21A9E6C8500147676;
118
+ productRefGroup = 58B511D21A9E6C8500147676;
119
+ projectDirPath = "";
120
+ projectRoot = "";
121
+ targets = (
122
+ 58B511DA1A9E6C8500147676 /* RNScreenshotDetector */,
123
+ );
124
+ };
125
+ /* End PBXProject section */
126
+
127
+ /* Begin PBXSourcesBuildPhase section */
128
+ 58B511D71A9E6C8500147676 /* Sources */ = {
129
+ isa = PBXSourcesBuildPhase;
130
+ buildActionMask = 2147483647;
131
+ files = (
132
+ BFE7D3921E830F7000DBDD2E /* RNScreenshotDetector.m in Sources */,
133
+ );
134
+ runOnlyForDeploymentPostprocessing = 0;
135
+ };
136
+ /* End PBXSourcesBuildPhase section */
137
+
138
+ /* Begin XCBuildConfiguration section */
139
+ 58B511ED1A9E6C8500147676 /* Debug */ = {
140
+ isa = XCBuildConfiguration;
141
+ buildSettings = {
142
+ ALWAYS_SEARCH_USER_PATHS = NO;
143
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
144
+ CLANG_CXX_LIBRARY = "libc++";
145
+ CLANG_ENABLE_MODULES = YES;
146
+ CLANG_ENABLE_OBJC_ARC = YES;
147
+ CLANG_WARN_BOOL_CONVERSION = YES;
148
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
149
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
150
+ CLANG_WARN_EMPTY_BODY = YES;
151
+ CLANG_WARN_ENUM_CONVERSION = YES;
152
+ CLANG_WARN_INT_CONVERSION = YES;
153
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
154
+ CLANG_WARN_UNREACHABLE_CODE = YES;
155
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
156
+ COPY_PHASE_STRIP = NO;
157
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
158
+ GCC_C_LANGUAGE_STANDARD = gnu99;
159
+ GCC_DYNAMIC_NO_PIC = NO;
160
+ GCC_OPTIMIZATION_LEVEL = 0;
161
+ GCC_PREPROCESSOR_DEFINITIONS = (
162
+ "DEBUG=1",
163
+ "$(inherited)",
164
+ );
165
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
166
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
167
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
168
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
169
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
170
+ GCC_WARN_UNUSED_FUNCTION = YES;
171
+ GCC_WARN_UNUSED_VARIABLE = YES;
172
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
173
+ MTL_ENABLE_DEBUG_INFO = YES;
174
+ ONLY_ACTIVE_ARCH = YES;
175
+ SDKROOT = iphoneos;
176
+ };
177
+ name = Debug;
178
+ };
179
+ 58B511EE1A9E6C8500147676 /* Release */ = {
180
+ isa = XCBuildConfiguration;
181
+ buildSettings = {
182
+ ALWAYS_SEARCH_USER_PATHS = NO;
183
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
184
+ CLANG_CXX_LIBRARY = "libc++";
185
+ CLANG_ENABLE_MODULES = YES;
186
+ CLANG_ENABLE_OBJC_ARC = YES;
187
+ CLANG_WARN_BOOL_CONVERSION = YES;
188
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
189
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
190
+ CLANG_WARN_EMPTY_BODY = YES;
191
+ CLANG_WARN_ENUM_CONVERSION = YES;
192
+ CLANG_WARN_INT_CONVERSION = YES;
193
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
194
+ CLANG_WARN_UNREACHABLE_CODE = YES;
195
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
196
+ COPY_PHASE_STRIP = YES;
197
+ ENABLE_NS_ASSERTIONS = NO;
198
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
199
+ GCC_C_LANGUAGE_STANDARD = gnu99;
200
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
201
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
202
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
203
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
204
+ GCC_WARN_UNUSED_FUNCTION = YES;
205
+ GCC_WARN_UNUSED_VARIABLE = YES;
206
+ IPHONEOS_DEPLOYMENT_TARGET = 7.0;
207
+ MTL_ENABLE_DEBUG_INFO = NO;
208
+ SDKROOT = iphoneos;
209
+ VALIDATE_PRODUCT = YES;
210
+ };
211
+ name = Release;
212
+ };
213
+ 58B511F01A9E6C8500147676 /* Debug */ = {
214
+ isa = XCBuildConfiguration;
215
+ buildSettings = {
216
+ HEADER_SEARCH_PATHS = (
217
+ "$(inherited)",
218
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
219
+ "$(SRCROOT)/../../../React/**",
220
+ "$(SRCROOT)/../../react-native/React/**",
221
+ "$(SRCROOT)/../node_modules/react-native/React/**",
222
+ );
223
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
224
+ OTHER_LDFLAGS = "-ObjC";
225
+ PRODUCT_NAME = RNScreenshotDetector;
226
+ SKIP_INSTALL = YES;
227
+ };
228
+ name = Debug;
229
+ };
230
+ 58B511F11A9E6C8500147676 /* Release */ = {
231
+ isa = XCBuildConfiguration;
232
+ buildSettings = {
233
+ HEADER_SEARCH_PATHS = (
234
+ "$(inherited)",
235
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
236
+ "$(SRCROOT)/../../../React/**",
237
+ "$(SRCROOT)/../../react-native/React/**",
238
+ "$(SRCROOT)/../node_modules/react-native/React/**",
239
+ );
240
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
241
+ OTHER_LDFLAGS = "-ObjC";
242
+ PRODUCT_NAME = RNScreenshotDetector;
243
+ SKIP_INSTALL = YES;
244
+ };
245
+ name = Release;
246
+ };
247
+ /* End XCBuildConfiguration section */
248
+
249
+ /* Begin XCConfigurationList section */
250
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNScreenshotDetector" */ = {
251
+ isa = XCConfigurationList;
252
+ buildConfigurations = (
253
+ 58B511ED1A9E6C8500147676 /* Debug */,
254
+ 58B511EE1A9E6C8500147676 /* Release */,
255
+ );
256
+ defaultConfigurationIsVisible = 0;
257
+ defaultConfigurationName = Release;
258
+ };
259
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNScreenshotDetector" */ = {
260
+ isa = XCConfigurationList;
261
+ buildConfigurations = (
262
+ 58B511F01A9E6C8500147676 /* Debug */,
263
+ 58B511F11A9E6C8500147676 /* Release */,
264
+ );
265
+ defaultConfigurationIsVisible = 0;
266
+ defaultConfigurationName = Release;
267
+ };
268
+ /* End XCConfigurationList section */
269
+ };
270
+ rootObject = 58B511D31A9E6C8500147676 /* Project object */;
271
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@exodus/react-native-screenshot-detector",
3
+ "version": "1.0.0",
4
+ "description": "detect when the user takes a screenshot",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [
9
+ "react-native"
10
+ ],
11
+ "author": "gcarling",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/ExodusMovement/react-native-screenshot-detector"
15
+ },
16
+ "license": "MIT"
17
+ }