react-native-attachment-kit 1.0.5 → 1.0.6
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.
- package/CHANGELOG.md +10 -0
- package/README.md +100 -3
- package/android/build.gradle +14 -0
- package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
- package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +280 -13
- package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +282 -13
- package/ios/RNAttachmentKit.m +18 -0
- package/ios/RNAttachmentKit.swift +421 -9
- package/ios/RNAttachmentKit.xcframework/Info.plist +5 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +21 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Info.plist +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +33275 -7562
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +193 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface +193 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeResources +15 -15
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Headers/RNAttachmentKit-Swift.h +42 -10
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Info.plist +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +33275 -7562
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +193 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +193 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +33275 -7562
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +193 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +193 -5
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/RNAttachmentKit +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/_CodeSignature/CodeResources +25 -25
- package/package.json +1 -1
- package/react-native-attachment-kit.podspec +1 -1
- package/src/NativeAttachmentKit.ts +5 -0
- package/src/index.ts +118 -7
- package/src/types.ts +173 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Assets.car</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
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
|
-
|
|
25
|
+
kuHcM3YWc4dDHGGII1iDJZrfArw=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Info.plist</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
0uSum3ke74jzgf1eQCIH8X6kqug=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
uy9Csfmqd2nvmez48ESH3F1j/I8=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
Dw7pxDgMb6F9d7XkiMnvnLYsDrQ=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
eC+xmjPKj2jANcs6efEK6Y/EVTA=
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
44
44
|
<data>
|
|
45
|
-
|
|
45
|
+
Dw7pxDgMb6F9d7XkiMnvnLYsDrQ=
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.swiftmodule</key>
|
|
48
48
|
<data>
|
|
49
|
-
|
|
49
|
+
8/mWtGMjTaVQaV0qZHqxGOJSNQI=
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
245
|
+
Vtg6ZPIs6jFDFvzhP6ENigvyfiV/NaL7fIdnzyDbX5E=
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
273
|
+
16U/zfrNYr31Jp3x/Vf6U62QBaOiX6wlK1/rv1JS/us=
|
|
274
274
|
</data>
|
|
275
275
|
</dict>
|
|
276
276
|
<key>Modules/module.modulemap</key>
|
|
Binary file
|
|
Binary file
|
|
@@ -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>
|