react-native-attachment-kit 1.0.5 → 1.0.8

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 (38) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +100 -3
  3. package/android/build.gradle +14 -0
  4. package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
  5. package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +280 -13
  6. package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +282 -13
  7. package/ios/RNAttachmentKit.m +18 -0
  8. package/ios/RNAttachmentKit.swift +447 -9
  9. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
  10. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +21 -5
  11. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Info.plist +0 -0
  12. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +33440 -7566
  13. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +193 -5
  14. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  15. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +193 -5
  16. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  17. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  18. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +15 -15
  19. package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
  20. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
  21. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +42 -10
  22. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Info.plist +0 -0
  23. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +33440 -7566
  24. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +193 -5
  25. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  26. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +193 -5
  27. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +33440 -7566
  28. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +193 -5
  29. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  30. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +193 -5
  31. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
  32. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
  33. package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +25 -25
  34. package/package.json +2 -2
  35. package/react-native-attachment-kit.podspec +1 -1
  36. package/src/NativeAttachmentKit.ts +5 -0
  37. package/src/index.ts +118 -7
  38. package/src/types.ts +173 -0
@@ -6,7 +6,7 @@
6
6
  <dict>
7
7
  <key>Assets.car</key>
8
8
  <data>
9
- 24XBU3LEblGjGTOAqjhqZ+mB2U0=
9
+ MRss66st77g0KhHxCBbJQfKPil4=
10
10
  </data>
11
11
  <key>Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
12
12
  <data>
@@ -22,31 +22,31 @@
22
22
  </data>
23
23
  <key>Headers/RNAttachmentKit-Swift.h</key>
24
24
  <data>
25
- F8MvaTdoW05xau5ThwQ8Eo42ydk=
25
+ kuHcM3YWc4dDHGGII1iDJZrfArw=
26
26
  </data>
27
27
  <key>Info.plist</key>
28
28
  <data>
29
- j3hBOu8tw88RaNdCsncnO061Ieo=
29
+ 0uSum3ke74jzgf1eQCIH8X6kqug=
30
30
  </data>
31
31
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json</key>
32
32
  <data>
33
- ul8e1dNnllM7t8WJmVXo/1fKYOs=
33
+ jtMJeuIc6NJxIwsmoivzbVsAnCU=
34
34
  </data>
35
35
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
36
36
  <data>
37
- rQt9eVoUD6dwuFOK1QMoFqSWx2E=
37
+ Dw7pxDgMb6F9d7XkiMnvnLYsDrQ=
38
38
  </data>
39
39
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
40
40
  <data>
41
- NBna7r5dL0lEFqL0ywcMfDnyE0E=
41
+ eC+xmjPKj2jANcs6efEK6Y/EVTA=
42
42
  </data>
43
43
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
44
44
  <data>
45
- rQt9eVoUD6dwuFOK1QMoFqSWx2E=
45
+ Dw7pxDgMb6F9d7XkiMnvnLYsDrQ=
46
46
  </data>
47
47
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftmodule</key>
48
48
  <data>
49
- bVfET4vsDyzj+1Zs1tZG6JASTdw=
49
+ NJkDKyjdWbpwU0AWsnfoQguF5cQ=
50
50
  </data>
51
51
  <key>Modules/module.modulemap</key>
52
52
  <data>
@@ -207,7 +207,7 @@
207
207
  <dict>
208
208
  <key>hash2</key>
209
209
  <data>
210
- hcxV/4NZu79SXIpwsHu8Fo8WVAZLQfuKhITugdLFV+I=
210
+ PN8SGeEYmroH8IKhC4cAPpqrFa8xoBCtF2CRXH0MgEA=
211
211
  </data>
212
212
  </dict>
213
213
  <key>Base.lproj/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib</key>
@@ -235,42 +235,42 @@
235
235
  <dict>
236
236
  <key>hash2</key>
237
237
  <data>
238
- c7XrNv/8YWouh4JWkzmtvmU/gkzIr2zQtgc5dJJ0uTs=
238
+ b7BcvoWlN7xAX6Ltz5cJN/48JYg8rV/1tmHECktlbYQ=
239
239
  </data>
240
240
  </dict>
241
241
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json</key>
242
242
  <dict>
243
243
  <key>hash2</key>
244
244
  <data>
245
- turFg1TvrOe+ang+4iNYAFqZOAp8TanqRCeH8u62svE=
245
+ KkzF9RNZRT0CnrFIImovgC7FK7jb0qd7Y/+AuF0soqY=
246
246
  </data>
247
247
  </dict>
248
248
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
249
249
  <dict>
250
250
  <key>hash2</key>
251
251
  <data>
252
- 7PC2m+MXQnMz2lgs6rWO6BK3yN+d/9/rFmuMwyZVjpU=
252
+ E0B+8FT9GNIM9drktULgTgGfYhR3gH4MNaNa/+ysXuA=
253
253
  </data>
254
254
  </dict>
255
255
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
256
256
  <dict>
257
257
  <key>hash2</key>
258
258
  <data>
259
- pwBvQcVlo2GvB9WFYSrk3HZ0LmDgNGqx6CrHTta/+PQ=
259
+ 5jsrGB0lZkDtO5Ti5MbPY5uCCwRdADqr0Jysa+s8Q2s=
260
260
  </data>
261
261
  </dict>
262
262
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
263
263
  <dict>
264
264
  <key>hash2</key>
265
265
  <data>
266
- 7PC2m+MXQnMz2lgs6rWO6BK3yN+d/9/rFmuMwyZVjpU=
266
+ E0B+8FT9GNIM9drktULgTgGfYhR3gH4MNaNa/+ysXuA=
267
267
  </data>
268
268
  </dict>
269
269
  <key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftmodule</key>
270
270
  <dict>
271
271
  <key>hash2</key>
272
272
  <data>
273
- NC6DIcFRyV8bCy13YCVx1dVn5cL6WL7hV8EgHvUKmpk=
273
+ H6iFUaz8Gi0JnjYkzNoHIcuEFAsjAoS+Tqz5fQ7Zb6Y=
274
274
  </data>
275
275
  </dict>
276
276
  <key>Modules/module.modulemap</key>
@@ -593,6 +593,12 @@ SWIFT_CLASS("_TtC15RNAttachmentKit31RemoteImageViewerViewController")
593
593
  @interface RemoteImageViewerViewController : UIViewController
594
594
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
595
595
  - (void)viewDidLoad;
596
+ - (void)viewDidAppear:(BOOL)animated;
597
+ - (void)viewWillDisappear:(BOOL)animated;
598
+ @property (nonatomic, readonly) BOOL prefersStatusBarHidden;
599
+ @property (nonatomic, readonly) UIStatusBarAnimation preferredStatusBarUpdateAnimation;
600
+ @property (nonatomic, readonly) BOOL prefersHomeIndicatorAutoHidden;
601
+ - (void)viewDidDisappear:(BOOL)animated;
596
602
  - (void)viewDidLayoutSubviews;
597
603
  - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
598
604
  @end
@@ -602,17 +608,18 @@ SWIFT_CLASS("_TtC15RNAttachmentKit31RemoteImageViewerViewController")
602
608
  - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT;
603
609
  @end
604
610
 
605
- @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIScrollViewDelegate>
606
- - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
607
- - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
608
- @end
609
-
610
611
  @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource, UICollectionViewDelegate>
611
612
  - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
612
613
  - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
613
614
  - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
614
615
  @end
615
616
 
617
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIScrollViewDelegate>
618
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
619
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
620
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
621
+ @end
622
+
616
623
  @class UICollectionViewLayoutAttributes;
617
624
  SWIFT_CLASS("_TtC15RNAttachmentKit21TelegramGalleryLayout")
618
625
  @interface TelegramGalleryLayout : UICollectionViewLayout
@@ -626,6 +633,15 @@ SWIFT_CLASS("_TtC15RNAttachmentKit21TelegramGalleryLayout")
626
633
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
627
634
  @end
628
635
 
636
+ /// 동영상 변환 중 화면 전체를 덮는 진행 표시 (원형 진행률 + “1/3” + 취소). 갤러리가 닫힌 뒤에도 보여야 해서 키 윈도우에 얹음
637
+ SWIFT_CLASS("_TtC15RNAttachmentKit14VideoExportHUD")
638
+ @interface VideoExportHUD : UIView
639
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
640
+ - (void)layoutSubviews;
641
+ - (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
642
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
643
+ @end
644
+
629
645
  @protocol UIViewControllerContextTransitioning;
630
646
  SWIFT_CLASS("_TtC15RNAttachmentKit22ZoomTransitionAnimator")
631
647
  @interface ZoomTransitionAnimator : NSObject <UIViewControllerAnimatedTransitioning>
@@ -1237,6 +1253,12 @@ SWIFT_CLASS("_TtC15RNAttachmentKit31RemoteImageViewerViewController")
1237
1253
  @interface RemoteImageViewerViewController : UIViewController
1238
1254
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1239
1255
  - (void)viewDidLoad;
1256
+ - (void)viewDidAppear:(BOOL)animated;
1257
+ - (void)viewWillDisappear:(BOOL)animated;
1258
+ @property (nonatomic, readonly) BOOL prefersStatusBarHidden;
1259
+ @property (nonatomic, readonly) UIStatusBarAnimation preferredStatusBarUpdateAnimation;
1260
+ @property (nonatomic, readonly) BOOL prefersHomeIndicatorAutoHidden;
1261
+ - (void)viewDidDisappear:(BOOL)animated;
1240
1262
  - (void)viewDidLayoutSubviews;
1241
1263
  - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
1242
1264
  @end
@@ -1246,17 +1268,18 @@ SWIFT_CLASS("_TtC15RNAttachmentKit31RemoteImageViewerViewController")
1246
1268
  - (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT;
1247
1269
  @end
1248
1270
 
1249
- @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIScrollViewDelegate>
1250
- - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1251
- - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
1252
- @end
1253
-
1254
1271
  @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UICollectionViewDataSource, UICollectionViewDelegate>
1255
1272
  - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
1256
1273
  - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
1257
1274
  - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
1258
1275
  @end
1259
1276
 
1277
+ @interface RemoteImageViewerViewController (SWIFT_EXTENSION(RNAttachmentKit)) <UIScrollViewDelegate>
1278
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1279
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
1280
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
1281
+ @end
1282
+
1260
1283
  @class UICollectionViewLayoutAttributes;
1261
1284
  SWIFT_CLASS("_TtC15RNAttachmentKit21TelegramGalleryLayout")
1262
1285
  @interface TelegramGalleryLayout : UICollectionViewLayout
@@ -1270,6 +1293,15 @@ SWIFT_CLASS("_TtC15RNAttachmentKit21TelegramGalleryLayout")
1270
1293
  - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
1271
1294
  @end
1272
1295
 
1296
+ /// 동영상 변환 중 화면 전체를 덮는 진행 표시 (원형 진행률 + “1/3” + 취소). 갤러리가 닫힌 뒤에도 보여야 해서 키 윈도우에 얹음
1297
+ SWIFT_CLASS("_TtC15RNAttachmentKit14VideoExportHUD")
1298
+ @interface VideoExportHUD : UIView
1299
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1300
+ - (void)layoutSubviews;
1301
+ - (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
1302
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
1303
+ @end
1304
+
1273
1305
  @protocol UIViewControllerContextTransitioning;
1274
1306
  SWIFT_CLASS("_TtC15RNAttachmentKit22ZoomTransitionAnimator")
1275
1307
  @interface ZoomTransitionAnimator : NSObject <UIViewControllerAnimatedTransitioning>