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