@oguzhnatly/react-native-image-manipulator 1.0.5 → 1.0.13

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 (86) hide show
  1. package/.github/workflows/publish.yml +72 -0
  2. package/Example/.bundle/config +2 -0
  3. package/Example/.eslintrc.js +4 -0
  4. package/Example/.prettierrc.js +7 -0
  5. package/Example/.watchmanconfig +1 -1
  6. package/Example/App.tsx +58 -0
  7. package/Example/Gemfile +7 -0
  8. package/Example/Gemfile.lock +99 -0
  9. package/Example/__tests__/App.test.tsx +17 -0
  10. package/Example/android/app/build.gradle +83 -114
  11. package/Example/android/app/debug.keystore +0 -0
  12. package/Example/android/app/proguard-rules.pro +0 -7
  13. package/Example/android/app/src/debug/AndroidManifest.xml +9 -0
  14. package/Example/android/app/src/main/AndroidManifest.xml +6 -7
  15. package/Example/android/app/src/main/java/com/example/MainActivity.kt +22 -0
  16. package/Example/android/app/src/main/java/com/example/MainApplication.kt +45 -0
  17. package/Example/android/app/src/main/res/drawable/rn_edit_text_material.xml +36 -0
  18. package/Example/android/app/src/main/res/values/styles.xml +2 -1
  19. package/Example/android/build.gradle +11 -29
  20. package/Example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  21. package/Example/android/gradle/wrapper/gradle-wrapper.properties +3 -1
  22. package/Example/android/gradle.properties +25 -2
  23. package/Example/android/gradlew +189 -112
  24. package/Example/android/gradlew.bat +32 -24
  25. package/Example/android/settings.gradle +2 -1
  26. package/Example/app.json +1 -1
  27. package/Example/assets/tiktok.png +0 -0
  28. package/Example/babel.config.js +3 -0
  29. package/Example/index.js +3 -1
  30. package/Example/ios/.xcode.env +11 -0
  31. package/Example/ios/Example/AppDelegate.h +2 -10
  32. package/Example/ios/Example/AppDelegate.mm +31 -0
  33. package/Example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json +30 -15
  34. package/Example/ios/Example/Info.plist +9 -18
  35. package/Example/ios/Example/LaunchScreen.storyboard +47 -0
  36. package/Example/ios/Example/main.m +2 -8
  37. package/Example/ios/Example.xcodeproj/project.pbxproj +238 -1024
  38. package/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example.xcscheme +2 -43
  39. package/Example/ios/Example.xcworkspace/contents.xcworkspacedata +10 -0
  40. package/Example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  41. package/Example/ios/ExampleTests/ExampleTests.m +19 -21
  42. package/Example/ios/Podfile +56 -0
  43. package/Example/ios/Podfile.lock +1448 -0
  44. package/Example/jest.config.js +3 -0
  45. package/Example/metro.config.js +43 -0
  46. package/Example/package.json +26 -6
  47. package/Example/tsconfig.json +3 -0
  48. package/Example/yarn.lock +5580 -3025
  49. package/README.md +218 -104
  50. package/android/build.gradle +34 -3
  51. package/android/src/main/java/com/{reactnativeimagemanipulator → oguzhnatly/rnimagemanipulator}/RNImageManipulatorModule.java +7 -4
  52. package/android/src/main/java/com/oguzhnatly/rnimagemanipulator/RNImageManipulatorPackage.java +112 -0
  53. package/android/src/paper/java/com/oguzhnatly/rnimagemanipulator/NativeImageManipulatorModuleSpec.java +33 -0
  54. package/build/fabric/NativeImageManipulatorModule.d.ts +12 -0
  55. package/build/fabric/NativeImageManipulatorModule.js +3 -0
  56. package/build/fabric/NativeImageManipulatorModule.js.map +1 -0
  57. package/build/index.d.ts +18 -17
  58. package/build/index.js +6 -3
  59. package/build/index.js.map +1 -1
  60. package/fabric/NativeImageManipulatorModule.ts +14 -0
  61. package/index.ts +28 -8
  62. package/ios/ImageUtils.h +6 -1
  63. package/ios/ImageUtils.m +180 -0
  64. package/ios/RNImageManipulator.h +10 -6
  65. package/ios/RNImageManipulator.mm +31 -0
  66. package/package.json +17 -2
  67. package/react-native-image-manipulator.podspec +11 -3
  68. package/tsconfig.json +1 -5
  69. package/Example/.babelrc +0 -3
  70. package/Example/.buckconfig +0 -6
  71. package/Example/.flowconfig +0 -70
  72. package/Example/.gitattributes +0 -1
  73. package/Example/App.js +0 -49
  74. package/Example/android/app/BUCK +0 -65
  75. package/Example/android/app/src/main/java/com/example/MainActivity.java +0 -15
  76. package/Example/android/app/src/main/java/com/example/MainApplication.java +0 -45
  77. package/Example/android/keystores/BUCK +0 -8
  78. package/Example/android/keystores/debug.keystore.properties +0 -4
  79. package/Example/ios/Example/AppDelegate.m +0 -35
  80. package/Example/ios/Example/Base.lproj/LaunchScreen.xib +0 -42
  81. package/Example/ios/Example-tvOS/Info.plist +0 -54
  82. package/Example/ios/Example-tvOSTests/Info.plist +0 -24
  83. package/Example/ios/Example.xcodeproj/xcshareddata/xcschemes/Example-tvOS.xcscheme +0 -129
  84. package/android/src/main/java/com/reactnativeimagemanipulator/RNImageManipulatorPackage.java +0 -29
  85. package/index.d.ts +0 -26
  86. package/ios/RNImageManipulator.m +0 -200
@@ -1,14 +1,6 @@
1
- /**
2
- * Copyright (c) 2015-present, Facebook, Inc.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
1
+ #import <RCTAppDelegate.h>
8
2
  #import <UIKit/UIKit.h>
9
3
 
10
- @interface AppDelegate : UIResponder <UIApplicationDelegate>
11
-
12
- @property (nonatomic, strong) UIWindow *window;
4
+ @interface AppDelegate : RCTAppDelegate
13
5
 
14
6
  @end
@@ -0,0 +1,31 @@
1
+ #import "AppDelegate.h"
2
+
3
+ #import <React/RCTBundleURLProvider.h>
4
+
5
+ @implementation AppDelegate
6
+
7
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
8
+ {
9
+ self.moduleName = @"Example";
10
+ // You can add your custom initial props in the dictionary below.
11
+ // They will be passed down to the ViewController used by React Native.
12
+ self.initialProps = @{};
13
+
14
+ return [super application:application didFinishLaunchingWithOptions:launchOptions];
15
+ }
16
+
17
+ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
18
+ {
19
+ return [self getBundleURL];
20
+ }
21
+
22
+ - (NSURL *)getBundleURL
23
+ {
24
+ #if DEBUG
25
+ return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
26
+ #else
27
+ return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
28
+ #endif
29
+ }
30
+
31
+ @end
@@ -2,37 +2,52 @@
2
2
  "images" : [
3
3
  {
4
4
  "idiom" : "iphone",
5
- "size" : "29x29",
6
- "scale" : "2x"
5
+ "scale" : "2x",
6
+ "size" : "20x20"
7
7
  },
8
8
  {
9
9
  "idiom" : "iphone",
10
- "size" : "29x29",
11
- "scale" : "3x"
10
+ "scale" : "3x",
11
+ "size" : "20x20"
12
12
  },
13
13
  {
14
14
  "idiom" : "iphone",
15
- "size" : "40x40",
16
- "scale" : "2x"
15
+ "scale" : "2x",
16
+ "size" : "29x29"
17
17
  },
18
18
  {
19
19
  "idiom" : "iphone",
20
- "size" : "40x40",
21
- "scale" : "3x"
20
+ "scale" : "3x",
21
+ "size" : "29x29"
22
22
  },
23
23
  {
24
24
  "idiom" : "iphone",
25
- "size" : "60x60",
26
- "scale" : "2x"
25
+ "scale" : "2x",
26
+ "size" : "40x40"
27
27
  },
28
28
  {
29
29
  "idiom" : "iphone",
30
- "size" : "60x60",
31
- "scale" : "3x"
30
+ "scale" : "3x",
31
+ "size" : "40x40"
32
+ },
33
+ {
34
+ "idiom" : "iphone",
35
+ "scale" : "2x",
36
+ "size" : "60x60"
37
+ },
38
+ {
39
+ "idiom" : "iphone",
40
+ "scale" : "3x",
41
+ "size" : "60x60"
42
+ },
43
+ {
44
+ "idiom" : "ios-marketing",
45
+ "scale" : "1x",
46
+ "size" : "1024x1024"
32
47
  }
33
48
  ],
34
49
  "info" : {
35
- "version" : 1,
36
- "author" : "xcode"
50
+ "author" : "xcode",
51
+ "version" : 1
37
52
  }
38
- }
53
+ }
@@ -17,13 +17,20 @@
17
17
  <key>CFBundlePackageType</key>
18
18
  <string>APPL</string>
19
19
  <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
20
+ <string>$(MARKETING_VERSION)</string>
21
21
  <key>CFBundleSignature</key>
22
22
  <string>????</string>
23
23
  <key>CFBundleVersion</key>
24
- <string>1</string>
24
+ <string>$(CURRENT_PROJECT_VERSION)</string>
25
25
  <key>LSRequiresIPhoneOS</key>
26
26
  <true/>
27
+ <key>NSAppTransportSecurity</key>
28
+ <dict>
29
+ <key>NSAllowsArbitraryLoads</key>
30
+ <false/>
31
+ <key>NSAllowsLocalNetworking</key>
32
+ <true/>
33
+ </dict>
27
34
  <key>NSLocationWhenInUseUsageDescription</key>
28
35
  <string></string>
29
36
  <key>UILaunchStoryboardName</key>
@@ -40,21 +47,5 @@
40
47
  </array>
41
48
  <key>UIViewControllerBasedStatusBarAppearance</key>
42
49
  <false/>
43
- <key>NSLocationWhenInUseUsageDescription</key>
44
- <string></string>
45
- <key>NSAppTransportSecurity</key>
46
- <!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
47
- <dict>
48
- <key>NSAllowsArbitraryLoads</key>
49
- <true/>
50
- <key>NSExceptionDomains</key>
51
- <dict>
52
- <key>localhost</key>
53
- <dict>
54
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
55
- <true/>
56
- </dict>
57
- </dict>
58
- </dict>
59
50
  </dict>
60
51
  </plist>
@@ -0,0 +1,47 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <deployment identifier="iOS"/>
6
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
+ </dependencies>
10
+ <scenes>
11
+ <!--View Controller-->
12
+ <scene sceneID="EHf-IW-A2E">
13
+ <objects>
14
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Example" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
+ <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
+ <nil key="highlightedColor"/>
23
+ </label>
24
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
25
+ <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
+ <nil key="highlightedColor"/>
28
+ </label>
29
+ </subviews>
30
+ <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31
+ <constraints>
32
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
+ </constraints>
39
+ <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
+ </view>
41
+ </viewController>
42
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
43
+ </objects>
44
+ <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
+ </scene>
46
+ </scenes>
47
+ </document>
@@ -1,15 +1,9 @@
1
- /**
2
- * Copyright (c) 2015-present, Facebook, Inc.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
1
  #import <UIKit/UIKit.h>
9
2
 
10
3
  #import "AppDelegate.h"
11
4
 
12
- int main(int argc, char * argv[]) {
5
+ int main(int argc, char *argv[])
6
+ {
13
7
  @autoreleasepool {
14
8
  return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
15
9
  }