react-native-attachment-kit 1.0.15 → 1.0.18
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 +462 -22
- package/android/src/main/libs/rnattachmentkit-release.aar +0 -0
- package/android/src/newarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +2 -0
- package/android/src/oldarch/java/com/rnattachmentkit/RNAttachmentKitModule.kt +2 -0
- package/ios/RNAttachmentKit.swift +5 -2
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Assets.car +0 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.abi.json +540 -171
- package/ios/RNAttachmentKit.xcframework/ios-arm64/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
- 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 +1 -0
- 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 +12 -12
- 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/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.abi.json +540 -171
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
- 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 +1 -0
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +540 -171
- package/ios/RNAttachmentKit.xcframework/ios-arm64_x86_64-simulator/RNAttachmentKit.framework/Modules/RNAttachmentKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
- 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 +1 -0
- 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 +22 -22
- package/package.json +1 -1
- package/src/types.ts +5 -0
|
Binary file
|
|
@@ -699,6 +699,8 @@ class RNAttachmentKitModule(reactContext: ReactApplicationContext) :
|
|
|
699
699
|
// 네이티브 쪽 로케일 리소스(values-ko/ja/zh, 그 외 en)가 자동 적용됩니다.
|
|
700
700
|
putBoolean("showActionButtons", !options.hasKey("showActionButtons") || options.getBoolean("showActionButtons"))
|
|
701
701
|
putBoolean("showDeleteButton", !options.hasKey("showDeleteButton") || options.getBoolean("showDeleteButton"))
|
|
702
|
+
// 처음에 상단바·하단바·동영상 조작 UI 를 숨긴 채로 엶 (탭하면 보임)
|
|
703
|
+
putBoolean("startWithUiHidden", options.hasKey("startWithUiHidden") && options.getBoolean("startWithUiHidden"))
|
|
702
704
|
for (key in listOf(
|
|
703
705
|
"saveAllText", "saveOneText", "shareAllText", "shareOneText", "actionCancelText",
|
|
704
706
|
"deleteConfirmTitle", "deleteConfirmMessage", "deleteConfirmGroupMessage", "deleteButtonText"
|
|
@@ -708,6 +708,8 @@ class RNAttachmentKitModule(reactContext: ReactApplicationContext) :
|
|
|
708
708
|
// 네이티브 쪽 로케일 리소스(values-ko/ja/zh, 그 외 en)가 자동 적용됩니다.
|
|
709
709
|
putBoolean("showActionButtons", !options.hasKey("showActionButtons") || options.getBoolean("showActionButtons"))
|
|
710
710
|
putBoolean("showDeleteButton", !options.hasKey("showDeleteButton") || options.getBoolean("showDeleteButton"))
|
|
711
|
+
// 처음에 상단바·하단바·동영상 조작 UI 를 숨긴 채로 엶 (탭하면 보임)
|
|
712
|
+
putBoolean("startWithUiHidden", options.hasKey("startWithUiHidden") && options.getBoolean("startWithUiHidden"))
|
|
711
713
|
for (key in listOf(
|
|
712
714
|
"saveAllText", "saveOneText", "shareAllText", "shareOneText", "actionCancelText",
|
|
713
715
|
"deleteConfirmTitle", "deleteConfirmMessage", "deleteConfirmGroupMessage", "deleteButtonText"
|
|
@@ -449,6 +449,7 @@ class RNAttachmentKit: RCTEventEmitter {
|
|
|
449
449
|
// 맞춘 기본 한국어 문구가 있으므로, JS에서 안 넘기면 그 기본값을 그대로 씁니다.
|
|
450
450
|
let showActionButtons = (options["showActionButtons"] as? Bool) ?? true
|
|
451
451
|
let showDeleteButton = (options["showDeleteButton"] as? Bool) ?? true
|
|
452
|
+
let startWithUiHidden = (options["startWithUiHidden"] as? Bool) ?? false
|
|
452
453
|
let saveAllText = options["saveAllText"] as? String
|
|
453
454
|
let saveOneText = options["saveOneText"] as? String
|
|
454
455
|
let shareAllText = options["shareAllText"] as? String
|
|
@@ -530,6 +531,7 @@ class RNAttachmentKit: RCTEventEmitter {
|
|
|
530
531
|
}
|
|
531
532
|
viewerVC.showActionButtons = showActionButtons
|
|
532
533
|
viewerVC.showDeleteButton = showDeleteButton
|
|
534
|
+
viewerVC.startWithUiHidden = startWithUiHidden
|
|
533
535
|
if let saveAllText = saveAllText { viewerVC.saveAllText = saveAllText }
|
|
534
536
|
if let saveOneText = saveOneText { viewerVC.saveOneText = saveOneText }
|
|
535
537
|
if let shareAllText = shareAllText { viewerVC.shareAllText = shareAllText }
|
|
@@ -1364,9 +1366,10 @@ class RNAttachmentKit: RCTEventEmitter {
|
|
|
1364
1366
|
"width": Int(size.width), "height": Int(size.height),
|
|
1365
1367
|
"duration": state.outputDuration(sourceDuration: a.duration),
|
|
1366
1368
|
]
|
|
1367
|
-
// 앞을 잘랐으면
|
|
1369
|
+
// 포스터는 보낼 영상의 첫 프레임 — 앞을 잘랐으면 잘린 구간의 첫 프레임 (원본 첫 프레임은 결과 영상에 없음 — Android 와 같음).
|
|
1370
|
+
// 자르지 않았을 때도 갤러리 썸네일(사진 앱이 정한 대표 화면 — 첫 화면이 아닐 수 있음)이 아니라 0초 프레임을 씀. 못 읽으면 갤러리 썸네일
|
|
1368
1371
|
let trimmedStart = state.trimRange(duration: a.duration).map { CMTimeGetSeconds($0.start) } ?? 0
|
|
1369
|
-
let base =
|
|
1372
|
+
let base = Self.videoFrame(a, at: trimmedStart) ?? image
|
|
1370
1373
|
if let poster = base {
|
|
1371
1374
|
let edited = state.applyEdits(to: poster)
|
|
1372
1375
|
if let encoded = VideoExporter.encodePoster(edited, format: videoOptions.posterFormat, quality: 0.8) {
|