scoplan.camera 1.2.5

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 (171) hide show
  1. package/package.json +18 -0
  2. package/plugin.xml +119 -0
  3. package/src/android/AutoFitSurfaceView.java +66 -0
  4. package/src/android/CCropActivity.java +17 -0
  5. package/src/android/CDrawActivity.java +16 -0
  6. package/src/android/CTextActivity.java +17 -0
  7. package/src/android/CameraEventListener.java +8 -0
  8. package/src/android/CameraFragment.java +635 -0
  9. package/src/android/CameraSeekBarListener.java +105 -0
  10. package/src/android/CameraUtils.java +94 -0
  11. package/src/android/CustomI.java +37 -0
  12. package/src/android/FakeR.java +31 -0
  13. package/src/android/ImageCameraAvailableListener.java +65 -0
  14. package/src/android/OnImageCaptureListener.java +11 -0
  15. package/src/android/PhotoEditorActivity.java +128 -0
  16. package/src/android/PhotoEditorMenu.java +111 -0
  17. package/src/android/PhotoEditorMesureCustomActivity.java +218 -0
  18. package/src/android/PhotoEditorStore.java +50 -0
  19. package/src/android/ScoplanCamera.java +98 -0
  20. package/src/android/gradle/scoplanCamera.gradle +9 -0
  21. package/src/android/libs/ds-photo-editor-sdk-v9.aar +0 -0
  22. package/src/android/res/drawable/back_arrow.xml +5 -0
  23. package/src/android/res/drawable/camsicon.png +0 -0
  24. package/src/android/res/drawable/custom_spinner.xml +14 -0
  25. package/src/android/res/drawable/delete_img.png +0 -0
  26. package/src/android/res/drawable/draw_img.png +0 -0
  27. package/src/android/res/drawable/flash.png +0 -0
  28. package/src/android/res/drawable/flash_on.png +0 -0
  29. package/src/android/res/drawable/mesure.png +0 -0
  30. package/src/android/res/drawable/mesure_bar.xml +19 -0
  31. package/src/android/res/drawable/shape_back.xml +12 -0
  32. package/src/android/res/drawable/shape_cancel.xml +12 -0
  33. package/src/android/res/drawable/shape_rectangle.xml +4 -0
  34. package/src/android/res/layout/fragment_camera.xml +157 -0
  35. package/src/android/res/layout/fragment_photo_editor_menu.xml +122 -0
  36. package/src/ios/AVCamPhotoCaptureDelegate.h +20 -0
  37. package/src/ios/AVCamPhotoCaptureDelegate.m +244 -0
  38. package/src/ios/AVCamPreviewView.h +18 -0
  39. package/src/ios/AVCamPreviewView.m +33 -0
  40. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDK +0 -0
  41. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Assets.car +0 -0
  42. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/0dZ-3o-Xdu-view-Uan-aZ-nTR.nib/objects-11.0+.nib +0 -0
  43. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/0dZ-3o-Xdu-view-Uan-aZ-nTR.nib/objects-13.0+.nib +0 -0
  44. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/0dZ-3o-Xdu-view-Uan-aZ-nTR.nib/runtime.nib +0 -0
  45. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/DSDrawViewController.nib/objects-11.0+.nib +0 -0
  46. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/DSDrawViewController.nib/objects-13.0+.nib +0 -0
  47. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/DSDrawViewController.nib/runtime.nib +0 -0
  48. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/DSPhotoEditor.nib/objects-11.0+.nib +0 -0
  49. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/DSPhotoEditor.nib/objects-13.0+.nib +0 -0
  50. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/DSPhotoEditor.nib/runtime.nib +0 -0
  51. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/Info.plist +0 -0
  52. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/Okc-Jl-tk5-view-siV-MN-Zgc.nib/objects-11.0+.nib +0 -0
  53. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/Okc-Jl-tk5-view-siV-MN-Zgc.nib/objects-13.0+.nib +0 -0
  54. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDK.storyboardc/Okc-Jl-tk5-view-siV-MN-Zgc.nib/runtime.nib +0 -0
  55. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Base.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  56. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/Info.plist +0 -0
  57. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ar.lproj/DSPhotoEditorSDK.strings +57 -0
  58. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ar.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  59. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/de.lproj/DSPhotoEditorSDK.strings +57 -0
  60. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/de.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  61. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/es.lproj/DSPhotoEditorSDK.strings +57 -0
  62. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/es.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  63. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/fr.lproj/DSPhotoEditorSDK.strings +57 -0
  64. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/fr.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  65. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/id.lproj/DSPhotoEditorSDK.strings +57 -0
  66. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/id.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  67. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/it.lproj/DSPhotoEditorSDK.strings +57 -0
  68. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/it.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  69. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ja.lproj/DSPhotoEditorSDK.strings +57 -0
  70. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ja.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  71. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ko.lproj/DSPhotoEditorSDK.strings +57 -0
  72. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ko.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  73. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ms.lproj/DSPhotoEditorSDK.strings +57 -0
  74. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ms.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  75. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/pt-PT.lproj/DSPhotoEditorSDK.strings +57 -0
  76. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/pt-PT.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  77. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ru.lproj/DSPhotoEditorSDK.strings +57 -0
  78. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/ru.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  79. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/th.lproj/DSPhotoEditorSDK.strings +57 -0
  80. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/th.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  81. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/tr.lproj/DSPhotoEditorSDK.strings +57 -0
  82. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/tr.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  83. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/vi.lproj/DSPhotoEditorSDK.strings +57 -0
  84. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/vi.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  85. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/zh-Hans.lproj/DSPhotoEditorSDK.strings +57 -0
  86. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/zh-Hans.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  87. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/zh-Hant.lproj/DSPhotoEditorSDK.strings +57 -0
  88. package/src/ios/DSPhotoEditorSDK.framework/DSPhotoEditorSDKResourceBundle.bundle/zh-Hant.lproj/DSPhotoEditorSDKLocalizable.strings +0 -0
  89. package/src/ios/DSPhotoEditorSDK.framework/Headers/DSPhotoEditorSDK.h +18 -0
  90. package/src/ios/DSPhotoEditorSDK.framework/Headers/DSPhotoEditorViewController.h +112 -0
  91. package/src/ios/DSPhotoEditorSDK.framework/Info.plist +0 -0
  92. package/src/ios/DSPhotoEditorSDK.framework/License.md +70 -0
  93. package/src/ios/DSPhotoEditorSDK.framework/Modules/module.modulemap +6 -0
  94. package/src/ios/DSPhotoEditorSDK.framework/framework_version.txt +5 -0
  95. package/src/ios/DSPhotoEditorSDK.framework/strip-frameworks.sh +80 -0
  96. package/src/ios/Resources/Overlay.png +0 -0
  97. package/src/ios/Resources/Overlay@2x.png +0 -0
  98. package/src/ios/Resources/back_arrows.png +0 -0
  99. package/src/ios/Resources/ds_btn_calc.png +0 -0
  100. package/src/ios/Resources/ds_btn_crop.png +0 -0
  101. package/src/ios/Resources/ds_btn_del.png +0 -0
  102. package/src/ios/Resources/ds_btn_draw.png +0 -0
  103. package/src/ios/Resources/ds_btn_text.png +0 -0
  104. package/src/ios/Resources/measure_0.png +0 -0
  105. package/src/ios/Resources/measure_1.png +0 -0
  106. package/src/ios/Resources/measure_10.png +0 -0
  107. package/src/ios/Resources/measure_11.png +0 -0
  108. package/src/ios/Resources/measure_2.png +0 -0
  109. package/src/ios/Resources/measure_3.png +0 -0
  110. package/src/ios/Resources/measure_4.png +0 -0
  111. package/src/ios/Resources/measure_5.png +0 -0
  112. package/src/ios/Resources/measure_6.png +0 -0
  113. package/src/ios/Resources/measure_7.png +0 -0
  114. package/src/ios/Resources/measure_8.png +0 -0
  115. package/src/ios/Resources/measure_9.png +0 -0
  116. package/src/ios/Resources/no.png +0 -0
  117. package/src/ios/Resources/ok.png +0 -0
  118. package/src/ios/Resources/toward_arrows.png +0 -0
  119. package/src/ios/ScoplanCamera.h +18 -0
  120. package/src/ios/ScoplanCamera.m +179 -0
  121. package/src/ios/ScoplanCamera.storyboard +115 -0
  122. package/src/ios/UICustomPickerController.h +11 -0
  123. package/src/ios/UICustomPickerController.m +119 -0
  124. package/src/ios/UIImagePickerDelegate.h +11 -0
  125. package/src/ios/UIImagePickerDelegate.m +161 -0
  126. package/src/ios/UIScoplanCamera.h +20 -0
  127. package/src/ios/UIScoplanCamera.m +1098 -0
  128. package/src/ios/bottomPhotoEditor.xib +222 -0
  129. package/src/ios/camsicons.xcassets/Contents.json +6 -0
  130. package/src/ios/camsicons.xcassets/cameraicon.imageset/Contents.json +21 -0
  131. package/src/ios/camsicons.xcassets/cameraicon.imageset/camsicon.png +0 -0
  132. package/src/ios/camsicons.xcassets/image000001.imageset/Contents.json +21 -0
  133. package/src/ios/camsicons.xcassets/image000001.imageset/image0000002.png +0 -0
  134. package/src/ios/camsicons.xcassets/image0000010.imageset/Contents.json +21 -0
  135. package/src/ios/camsicons.xcassets/image0000010.imageset/image0000010.png +0 -0
  136. package/src/ios/camsicons.xcassets/image0000011.imageset/Contents.json +21 -0
  137. package/src/ios/camsicons.xcassets/image0000011.imageset/image0000011.png +0 -0
  138. package/src/ios/camsicons.xcassets/image0000012.imageset/Contents.json +21 -0
  139. package/src/ios/camsicons.xcassets/image0000012.imageset/image0000012.png +0 -0
  140. package/src/ios/camsicons.xcassets/image0000013.imageset/Contents.json +21 -0
  141. package/src/ios/camsicons.xcassets/image0000013.imageset/image0000013.png +0 -0
  142. package/src/ios/camsicons.xcassets/image0000014.imageset/Contents.json +21 -0
  143. package/src/ios/camsicons.xcassets/image0000014.imageset/image0000014.png +0 -0
  144. package/src/ios/camsicons.xcassets/image0000015.imageset/Contents.json +21 -0
  145. package/src/ios/camsicons.xcassets/image0000015.imageset/image0000015.png +0 -0
  146. package/src/ios/camsicons.xcassets/image0000016.imageset/Contents.json +21 -0
  147. package/src/ios/camsicons.xcassets/image0000016.imageset/image0000016.png +0 -0
  148. package/src/ios/camsicons.xcassets/image0000017.imageset/Contents.json +21 -0
  149. package/src/ios/camsicons.xcassets/image0000017.imageset/image0000017.png +0 -0
  150. package/src/ios/camsicons.xcassets/image0000018.imageset/Contents.json +21 -0
  151. package/src/ios/camsicons.xcassets/image0000018.imageset/image0000018.png +0 -0
  152. package/src/ios/camsicons.xcassets/image0000019.imageset/Contents.json +21 -0
  153. package/src/ios/camsicons.xcassets/image0000019.imageset/image0000019.png +0 -0
  154. package/src/ios/camsicons.xcassets/image000002.imageset/Contents.json +21 -0
  155. package/src/ios/camsicons.xcassets/image000002.imageset/image0000001.png +0 -0
  156. package/src/ios/camsicons.xcassets/image000003.imageset/Contents.json +21 -0
  157. package/src/ios/camsicons.xcassets/image000003.imageset/image0000003.png +0 -0
  158. package/src/ios/camsicons.xcassets/image000004.imageset/Contents.json +21 -0
  159. package/src/ios/camsicons.xcassets/image000004.imageset/image0000004.png +0 -0
  160. package/src/ios/camsicons.xcassets/image000005.imageset/Contents.json +21 -0
  161. package/src/ios/camsicons.xcassets/image000005.imageset/image0000005.png +0 -0
  162. package/src/ios/camsicons.xcassets/image000006.imageset/Contents.json +21 -0
  163. package/src/ios/camsicons.xcassets/image000006.imageset/image0000006.png +0 -0
  164. package/src/ios/camsicons.xcassets/image000007.imageset/Contents.json +21 -0
  165. package/src/ios/camsicons.xcassets/image000007.imageset/image0000007.png +0 -0
  166. package/src/ios/camsicons.xcassets/image000008.imageset/Contents.json +21 -0
  167. package/src/ios/camsicons.xcassets/image000008.imageset/image0000008.png +0 -0
  168. package/src/ios/camsicons.xcassets/image000009.imageset/Contents.json +21 -0
  169. package/src/ios/camsicons.xcassets/image000009.imageset/image0000009.png +0 -0
  170. package/src/ios/multicam.xib +113 -0
  171. package/www/ScoplanCamera.js +5 -0
@@ -0,0 +1,57 @@
1
+
2
+ /* Class = "UILabel"; text = "Warmth"; ObjectID = "0zM-lp-TXT"; */
3
+ "0zM-lp-TXT.text" = "Độ ấm";
4
+
5
+ /* Class = "UILabel"; text = "Contrast"; ObjectID = "1Cf-FW-bN6"; */
6
+ "1Cf-FW-bN6.text" = "Độ tương phản";
7
+
8
+ /* Class = "UILabel"; text = "Frame"; ObjectID = "62O-Xs-qb1"; */
9
+ "62O-Xs-qb1.text" = "Khung";
10
+
11
+ /* Class = "UILabel"; text = "Pixelate"; ObjectID = "DPR-5e-BUL"; */
12
+ "DPR-5e-BUL.text" = "khảm";
13
+
14
+ /* Class = "UILabel"; text = "Crop"; ObjectID = "DTZ-RP-xGE"; */
15
+ "DTZ-RP-xGE.text" = "Cắt";
16
+
17
+ /* Class = "UILabel"; text = "Exposure"; ObjectID = "OTb-bV-jZR"; */
18
+ "OTb-bV-jZR.text" = "Phơi sáng";
19
+
20
+ /* Class = "UIViewController"; title = "Photo Editor"; ObjectID = "Okc-Jl-tk5"; */
21
+ "Okc-Jl-tk5.title" = "Trình chỉnh sửa hình";
22
+
23
+ /* Class = "UILabel"; text = "Vignette"; ObjectID = "PJg-JC-EPs"; */
24
+ "PJg-JC-EPs.text" = "Họa tiết";
25
+
26
+ /* Class = "UILabel"; text = "Sharpness"; ObjectID = "QOt-5a-xHV"; */
27
+ "QOt-5a-xHV.text" = "Độ sắc nét";
28
+
29
+ /* Class = "UINavigationItem"; title = "Photo Editor"; ObjectID = "Qc6-0o-Zk1"; */
30
+ "Qc6-0o-Zk1.title" = "Trình chỉnh sửa hình";
31
+
32
+ /* Class = "UILabel"; text = "Text"; ObjectID = "T1I-30-9t3"; */
33
+ "T1I-30-9t3.text" = "Chữ";
34
+
35
+ /* Class = "UILabel"; text = "Saturation"; ObjectID = "Vbq-rJ-Uu9"; */
36
+ "Vbq-rJ-Uu9.text" = "Độ bão hòa";
37
+
38
+ /* Class = "UILabel"; text = "Circle"; ObjectID = "Zp9-XN-vou"; */
39
+ "Zp9-XN-vou.text" = "Vòng tròn";
40
+
41
+ /* Class = "UILabel"; text = "Orientation"; ObjectID = "dwv-Gd-lHs"; */
42
+ "dwv-Gd-lHs.text" = "Hướng";
43
+
44
+ /* Class = "UILabel"; text = "Sticker"; ObjectID = "e0l-UK-h6t"; */
45
+ "e0l-UK-h6t.text" = "Nhãn dán";
46
+
47
+ /* Class = "UILabel"; text = "Draw"; ObjectID = "gnP-ZC-0wA"; */
48
+ "gnP-ZC-0wA.text" = "Vẽ tranh";
49
+
50
+ /* Class = "UILabel"; text = "Photo Editor"; ObjectID = "iOF-uR-Njc"; */
51
+ "iOF-uR-Njc.text" = "Trình chỉnh sửa hình";
52
+
53
+ /* Class = "UILabel"; text = "Round"; ObjectID = "nQL-Pi-PFX"; */
54
+ "nQL-Pi-PFX.text" = "Góc tròn";
55
+
56
+ /* Class = "UILabel"; text = "Filter"; ObjectID = "wHk-tf-FNA"; */
57
+ "wHk-tf-FNA.text" = "Bộ lọc";
@@ -0,0 +1,57 @@
1
+
2
+ /* Class = "UILabel"; text = "Warmth"; ObjectID = "0zM-lp-TXT"; */
3
+ "0zM-lp-TXT.text" = "色温";
4
+
5
+ /* Class = "UILabel"; text = "Contrast"; ObjectID = "1Cf-FW-bN6"; */
6
+ "1Cf-FW-bN6.text" = "对比度";
7
+
8
+ /* Class = "UILabel"; text = "Frame"; ObjectID = "62O-Xs-qb1"; */
9
+ "62O-Xs-qb1.text" = "边框";
10
+
11
+ /* Class = "UILabel"; text = "Pixelate"; ObjectID = "DPR-5e-BUL"; */
12
+ "DPR-5e-BUL.text" = "马赛克";
13
+
14
+ /* Class = "UILabel"; text = "Crop"; ObjectID = "DTZ-RP-xGE"; */
15
+ "DTZ-RP-xGE.text" = "裁剪";
16
+
17
+ /* Class = "UILabel"; text = "Exposure"; ObjectID = "OTb-bV-jZR"; */
18
+ "OTb-bV-jZR.text" = "曝光度";
19
+
20
+ /* Class = "UIViewController"; title = "Photo Editor"; ObjectID = "Okc-Jl-tk5"; */
21
+ "Okc-Jl-tk5.title" = "照片编辑器";
22
+
23
+ /* Class = "UILabel"; text = "Vignette"; ObjectID = "PJg-JC-EPs"; */
24
+ "PJg-JC-EPs.text" = "小插图";
25
+
26
+ /* Class = "UILabel"; text = "Sharpness"; ObjectID = "QOt-5a-xHV"; */
27
+ "QOt-5a-xHV.text" = "锐度";
28
+
29
+ /* Class = "UINavigationItem"; title = "Photo Editor"; ObjectID = "Qc6-0o-Zk1"; */
30
+ "Qc6-0o-Zk1.title" = "照片编辑器";
31
+
32
+ /* Class = "UILabel"; text = "Text"; ObjectID = "T1I-30-9t3"; */
33
+ "T1I-30-9t3.text" = "文字";
34
+
35
+ /* Class = "UILabel"; text = "Saturation"; ObjectID = "Vbq-rJ-Uu9"; */
36
+ "Vbq-rJ-Uu9.text" = "饱和度";
37
+
38
+ /* Class = "UILabel"; text = "Circle"; ObjectID = "Zp9-XN-vou"; */
39
+ "Zp9-XN-vou.text" = "圆形裁剪";
40
+
41
+ /* Class = "UILabel"; text = "Orientation"; ObjectID = "dwv-Gd-lHs"; */
42
+ "dwv-Gd-lHs.text" = "方向";
43
+
44
+ /* Class = "UILabel"; text = "Sticker"; ObjectID = "e0l-UK-h6t"; */
45
+ "e0l-UK-h6t.text" = "贴纸";
46
+
47
+ /* Class = "UILabel"; text = "Draw"; ObjectID = "gnP-ZC-0wA"; */
48
+ "gnP-ZC-0wA.text" = "绘画";
49
+
50
+ /* Class = "UILabel"; text = "Photo Editor"; ObjectID = "iOF-uR-Njc"; */
51
+ "iOF-uR-Njc.text" = "照片编辑器";
52
+
53
+ /* Class = "UILabel"; text = "Round"; ObjectID = "nQL-Pi-PFX"; */
54
+ "nQL-Pi-PFX.text" = "圆角";
55
+
56
+ /* Class = "UILabel"; text = "Filter"; ObjectID = "wHk-tf-FNA"; */
57
+ "wHk-tf-FNA.text" = "滤镜";
@@ -0,0 +1,57 @@
1
+
2
+ /* Class = "UILabel"; text = "Warmth"; ObjectID = "0zM-lp-TXT"; */
3
+ "0zM-lp-TXT.text" = "色温";
4
+
5
+ /* Class = "UILabel"; text = "Contrast"; ObjectID = "1Cf-FW-bN6"; */
6
+ "1Cf-FW-bN6.text" = "對比度";
7
+
8
+ /* Class = "UILabel"; text = "Frame"; ObjectID = "62O-Xs-qb1"; */
9
+ "62O-Xs-qb1.text" = "邊框";
10
+
11
+ /* Class = "UILabel"; text = "Pixelate"; ObjectID = "DPR-5e-BUL"; */
12
+ "DPR-5e-BUL.text" = "馬賽克";
13
+
14
+ /* Class = "UILabel"; text = "Crop"; ObjectID = "DTZ-RP-xGE"; */
15
+ "DTZ-RP-xGE.text" = "裁剪";
16
+
17
+ /* Class = "UILabel"; text = "Exposure"; ObjectID = "OTb-bV-jZR"; */
18
+ "OTb-bV-jZR.text" = "曝光度";
19
+
20
+ /* Class = "UIViewController"; title = "Photo Editor"; ObjectID = "Okc-Jl-tk5"; */
21
+ "Okc-Jl-tk5.title" = "照片編輯器";
22
+
23
+ /* Class = "UILabel"; text = "Vignette"; ObjectID = "PJg-JC-EPs"; */
24
+ "PJg-JC-EPs.text" = "小插圖";
25
+
26
+ /* Class = "UILabel"; text = "Sharpness"; ObjectID = "QOt-5a-xHV"; */
27
+ "QOt-5a-xHV.text" = "銳度";
28
+
29
+ /* Class = "UINavigationItem"; title = "Photo Editor"; ObjectID = "Qc6-0o-Zk1"; */
30
+ "Qc6-0o-Zk1.title" = "照片編輯器";
31
+
32
+ /* Class = "UILabel"; text = "Text"; ObjectID = "T1I-30-9t3"; */
33
+ "T1I-30-9t3.text" = "文字";
34
+
35
+ /* Class = "UILabel"; text = "Saturation"; ObjectID = "Vbq-rJ-Uu9"; */
36
+ "Vbq-rJ-Uu9.text" = "飽和度";
37
+
38
+ /* Class = "UILabel"; text = "Circle"; ObjectID = "Zp9-XN-vou"; */
39
+ "Zp9-XN-vou.text" = "圆形裁剪";
40
+
41
+ /* Class = "UILabel"; text = "Orientation"; ObjectID = "dwv-Gd-lHs"; */
42
+ "dwv-Gd-lHs.text" = "方向";
43
+
44
+ /* Class = "UILabel"; text = "Sticker"; ObjectID = "e0l-UK-h6t"; */
45
+ "e0l-UK-h6t.text" = "貼紙";
46
+
47
+ /* Class = "UILabel"; text = "Draw"; ObjectID = "gnP-ZC-0wA"; */
48
+ "gnP-ZC-0wA.text" = "繪畫";
49
+
50
+ /* Class = "UILabel"; text = "Photo Editor"; ObjectID = "iOF-uR-Njc"; */
51
+ "iOF-uR-Njc.text" = "照片編輯器";
52
+
53
+ /* Class = "UILabel"; text = "Round"; ObjectID = "nQL-Pi-PFX"; */
54
+ "nQL-Pi-PFX.text" = "圆角";
55
+
56
+ /* Class = "UILabel"; text = "Filter"; ObjectID = "wHk-tf-FNA"; */
57
+ "wHk-tf-FNA.text" = "濾鏡";
@@ -0,0 +1,18 @@
1
+ //
2
+ // DSPhotoEditorSDK.h
3
+ // DSPhotoEditorSDK
4
+ //
5
+ // Copyright © 2017 DS Photo Editor. All rights reserved.
6
+ //
7
+
8
+ #import <UIKit/UIKit.h>
9
+
10
+ //! Project version number for DSPhotoEditorSDK.
11
+ FOUNDATION_EXPORT double DSPhotoEditorSDKVersionNumber;
12
+
13
+ //! Project version string for DSPhotoEditorSDK.
14
+ FOUNDATION_EXPORT const unsigned char DSPhotoEditorSDKVersionString[];
15
+
16
+ // In this header, you should import all the public headers of your framework using statements like #import <DSPhotoEditorSDK/PublicHeader.h>
17
+
18
+ #import <DSPhotoEditorSDK/DSPhotoEditorViewController.h>
@@ -0,0 +1,112 @@
1
+ //
2
+ // DSPhotoEditorViewController.h
3
+ // DSPhotoEditorSDK
4
+ //
5
+ // Copyright © 2017 DS Photo Editor. All rights reserved.
6
+ //
7
+
8
+ #import <UIKit/UIKit.h>
9
+
10
+ extern const int TOOL_FILTER;
11
+ extern const int TOOL_FRAME;
12
+ extern const int TOOL_ROUND;
13
+ extern const int TOOL_EXPOSURE;
14
+ extern const int TOOL_CONTRAST;
15
+ extern const int TOOL_VIGNETTE;
16
+ extern const int TOOL_CROP;
17
+ extern const int TOOL_CIRCLE;
18
+ extern const int TOOL_ORIENTATION;
19
+ extern const int TOOL_SATURATION;
20
+ extern const int TOOL_SHARPNESS;
21
+ extern const int TOOL_WARMTH;
22
+ extern const int TOOL_PIXELATE;
23
+ extern const int TOOL_DRAW;
24
+ extern const int TOOL_STICKER;
25
+ extern const int TOOL_TEXT;
26
+
27
+ extern const NSString *DS_BACKGROUND_COLOR;
28
+ extern const NSString *DS_HEADER_COLOR;
29
+ extern const NSString *DS_TEXT_COLOR;
30
+
31
+ extern const NSString *DS_ICON_FILTER;
32
+ extern const NSString *DS_ICON_FRAME;
33
+ extern const NSString *DS_ICON_ROUND;
34
+ extern const NSString *DS_ICON_EXPOSURE;
35
+ extern const NSString *DS_ICON_CONTRAST;
36
+ extern const NSString *DS_ICON_VIGNETTE;
37
+ extern const NSString *DS_ICON_CROP;
38
+ extern const NSString *DS_ICON_CIRCLE;
39
+ extern const NSString *DS_ICON_ORIENTATION;
40
+ extern const NSString *DS_ICON_SATURATION;
41
+ extern const NSString *DS_ICON_SHARPNESS;
42
+ extern const NSString *DS_ICON_WARMTH;
43
+ extern const NSString *DS_ICON_PIXELATE;
44
+ extern const NSString *DS_ICON_DRAW;
45
+ extern const NSString *DS_ICON_STICKER;
46
+ extern const NSString *DS_ICON_TEXT;
47
+
48
+ extern const NSString *DS_ICON_APPLY;
49
+ extern const NSString *DS_ICON_CANCEL;
50
+ extern const NSString *DS_ICON_ORIENTATION_LEFT;
51
+ extern const NSString *DS_ICON_ORIENTATION_RIGHT;
52
+ extern const NSString *DS_ICON_ORIENTATION_HORIZONTAL;
53
+ extern const NSString *DS_ICON_ORIENTATION_VERTICAL;
54
+
55
+
56
+ @protocol DSPhotoEditorViewControllerDelegate;
57
+
58
+ @interface DSPhotoEditorViewController : UIViewController <UIGestureRecognizerDelegate>
59
+
60
+ @property (weak, nonatomic) IBOutlet UIScrollView *dsBottomScrollView;
61
+ @property (weak, nonatomic) IBOutlet UIView *dsBottomContentView;
62
+ @property (weak, nonatomic) IBOutlet UIImageView *dsPhotoEditorImageView;
63
+ @property (weak, nonatomic) IBOutlet UIStackView *dsTopStackView;
64
+ @property (weak, nonatomic) IBOutlet UILabel *dsTopTitleView;
65
+
66
+ @property NSDictionary *dsDataBundle;
67
+
68
+ @property (nonatomic, weak) id<DSPhotoEditorViewControllerDelegate> delegate;
69
+
70
+ - (instancetype)initWithImage:(UIImage *)original
71
+ toolsToHide:(NSArray *)toolsToHide;
72
+
73
+ - (IBAction)dsPhotoEditorCancel:(UIButton *)sender;
74
+ - (IBAction)dsPhotoEditorApply:(id)sender;
75
+
76
+ - (IBAction)dsPhotoEditorFilter:(id)sender;
77
+ - (IBAction)dsPhotoEditorFrame:(id)sender;
78
+ - (IBAction)dsPhotoEditorRoundCorner:(id)sender;
79
+ - (IBAction)dsPhotoEditorExposure:(id)sender;
80
+ - (IBAction)dsPhotoEditorContrast:(id)sender;
81
+ - (IBAction)dsPhotoEditorVignette:(id)sender;
82
+ - (IBAction)dsPhotoEditorCrop:(id)sender;
83
+ - (IBAction)dsPhotoEditorCircleCrop:(id)sender;
84
+ - (IBAction)dsPhotoEditorOrientation:(id)sender;
85
+ - (IBAction)dsPhotoEditorSaturation:(id)sender;
86
+ - (IBAction)dsPhotoEditorSharpness:(id)sender;
87
+ - (IBAction)dsPhotoEditorWarmth:(id)sender;
88
+ - (IBAction)dsPhotoEditorPixelate:(id)sender;
89
+ - (IBAction)dsPhotoEditorDraw:(id)sender;
90
+ - (IBAction)dsPhotoEditorSticker:(id)sender;
91
+ - (IBAction)dsPhotoEditorStickerText:(id)sender;
92
+ - (void)initializeSDKSetting;
93
+ - (void)setCustomView: (UIView *)dsCustomView;
94
+ - (void)setCustomStickers: (NSArray *)dsCustomStickers
95
+ inBundle: (NSBundle *)bundle;
96
+
97
+ @end
98
+
99
+ /**
100
+ Implement this protocol to be notified when the user is done using the editor.
101
+ You are responsible for dismissing the editor when you (and/or your user) are
102
+ finished with it.
103
+ */
104
+ @protocol DSPhotoEditorViewControllerDelegate <NSObject>
105
+
106
+ @required
107
+
108
+ - (void)dsPhotoEditor:(DSPhotoEditorViewController *)editor finishedWithImage:(UIImage *)image;
109
+
110
+ - (void)dsPhotoEditorCanceled:(DSPhotoEditorViewController *)editor;
111
+
112
+ @end
@@ -0,0 +1,70 @@
1
+ DS Photo Editor SDK TERMS OF SERVICE
2
+ Full Legal Agreement
3
+
4
+ The following terms and conditions (the “Terms”) govern your use of any and all data, text, software, tools, documents and other materials associated with the DS Photo Editor SDK (the “SDK”). By accepting this agreement, or by using or accessing any portion of the SDK, you or the entity or company that you represent are unconditionally agreeing to be bound by the terms, including those available by hyperlink from within this document, and are becoming a party to the Terms. Your continued use of the SDK shall also constitute assent to the Terms. If you do not unconditionally agree to all of the Terms, DO NOT USE OR ACCESS ANY PORTION OF THE SDK. If the terms set out herein are considered an offer, acceptance is expressly limited to these terms. IF YOU DO NOT AGREE TO THE TERMS, YOU MAY NOT USE THE SDK, IN WHOLE OR IN PART.
5
+
6
+
7
+ 1. GRANT OF LICENSE.
8
+ Subject to the Licensee’s full compliance with all of Terms of this agreement ("Agreement"), Licensor grants Licensee a non-exclusive, revocable, nonsublicensable, nontransferable license to download and use the SDK solely to embed a launchable DS Photo Editor application within Licensee’s mobile or website application (“App”) and to access data from DS Photo Editor SDK developer dashboard in connection with such applications. Licensee may not install or use the SDK for any other purpose without Licensor’s prior written consent.
9
+
10
+ Licensee shall not use the SDK in connection with or to promote any products, services, or materials that constitute, promote or are used primarily for the purpose of dealing in: spyware, adware, or other malicious programs or code, counterfeit goods, unsolicited mass distribution of email ("spam"), multi-level marketing proposals, hate materials, hacking/surveillance interception/descrambling equipment, libelous, defamatory, obscene, pornographic, abusive or otherwise offensive content, prostitution, body parts and bodily fluids, stolen products and items used for theft, fireworks, explosives, and hazardous materials, government IDs, police items, gambling, non-transferable items such as airline tickets or event tickets, weapons and accessories.
11
+
12
+
13
+ 2. PROPRIETARY RIGHTS.
14
+ As between Licensor and Licensee, the SDK and all intellectual property rights in and to the SDK are and shall at all times remain the sole and exclusive property of Licensor and are protected by applicable intellectual property laws and treaties. Except for the limited license expressly granted herein, no other license is granted, no other use is permitted and Licensor shall retain all right, title and interest in and to the API and the SDK logos.
15
+
16
+
17
+ 3. OTHER RESTRICTIONS.
18
+ Except as expressly and unambiguously authorized under this Agreement, Licensee may not (i) copy, rent, lease, sell, transfer, assign, sublicense, disassemble, reverse engineer or decompile (except to the limited extent expressly authorized by applicable statutory law), modify or alter any part of the SDK; (ii) otherwise use the SDK on behalf of any third party.
19
+
20
+
21
+ 4. BRANDING.
22
+ Licensee agrees to the following: (i) on every App page that makes use of the DS Photo Editor SDK, Licensee shall display an SDK logo crediting DS Photo Editor SDK; (ii) it shall maintain a clickable link to the following location https://www.dsphotoeditor.com/, prominently in the licensee App whenever the SDK is displayed to the end user. (iii) it may not otherwise use the SDK logo without specific written permission from Licensor; and (iv) any use of the SDK logo on an App page shall be less prominent than the logo or mark that primarily describes the Licensee app, and Licensee’s use of the SDK logo shall not imply any endorsement of the Licensee app or website by DS Photo Editor SDK.
23
+
24
+ ​A premium white-label SDK plan can be provided to Licensee with our logo & brand removed. Certain modifications may also be allowed under this premium plan. Please contact us for more details if you are interested.
25
+
26
+
27
+ ​5. MODIFICATIONS TO THIS AGREEMENT.
28
+ ​Licensor reserves the right, in its sole discretion to modify this Agreement at any time by posting a notice to https://www.dsphotoeditor.com/terms-of-service. You shall be responsible for reviewing and becoming familiar with any such modification. Such modifications are effective upon first posting or notification and use of the SDK by Licensee following any such notification constitutes Licensee’s acceptance of the terms and conditions of this Agreement as modified.
29
+
30
+
31
+ ​6. WARRANTY DISCLAIMER.
32
+ ​The SDK is provided “AS IS” without warranty of any kind. Except to the extent required by applicable law, Licensor disclaims all warranties, whether express, implied or statutory, regarding the SDK, including without limitation any and all implied warranties of merchantability, accuracy, results of use, reliability, fitness for a particular purpose, title, interference with quiet enjoyment, and non-infringement of third-party rights. Further, Licensor disclaims any warranty that licensee’s use of the SDK will be uninterrupted or error free.
33
+
34
+ ​In no event shall Licensor be responsible for loss or damages arising from the installation or use of the SDK, including but not limited to any indirect, punitive, special, incidental or consequential damages of any character including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. The entire risk as to the quality and performance of the SDK is borne by you. Should the Software prove defective, you and not the Licensor assume the entire cost of any service and repair.
35
+
36
+
37
+ ​7. SUPPORT AND UPGRADES.
38
+ ​This Agreement does not entitle Licensee to any support and/or upgrades for the APIs, unless Licensee makes separate arrangements with Licensor and pays all fees associated with such support. Any such support and/or upgrades provided by Licensor shall be subject to the terms of this Agreement as modified by the associated support Agreement.
39
+
40
+
41
+ ​8. LIABILITY LIMITATION.
42
+ ​Regardless of whether any remedy set forth herein fails of its essential purpose or otherwise, in no event will the licensor, be liable to licensee or to any third party under any tort, contract, negligence, strict liability or other legal or equitable theory for any lost profits, lost or corrupted data, computer failure or malfunction, interruption of business, or other special, indirect, incidental or consequential damages of any kind arising out of the use or inability to use the SDK, even if Licensor has been advised of the possibility of such loss or damages and whether or not such loss or damages are foreseeable. Any claim arising out of or relating to this agreement must be brought within one year after the occurrence of the event giving rise to such claim.
43
+
44
+
45
+ ​9. INDEMNITY.
46
+ ​Licensee agrees that the Licensor shall have no liability whatsoever for any use Licensee makes of the SDK. Licensee shall indemnify and hold harmless Licensor from any and all claims, damages, liabilities, costs and fees (including reasonable attorneys' fees) arising from Licensee's use of the SDK.
47
+
48
+
49
+ ​10. TERM AND TERMINATION.
50
+ ​This Agreement shall continue until terminated as set forth in this Section. Either party may terminate this Agreement at any time, for any reason, or for no reason including, but not limited to, if Licensee violates any provision of this Agreement. Any termination of this Agreement shall also terminate the license granted hereunder. Upon termination of this Agreement for any reason, Licensee shall destroy and remove from all computers, hard drives, networks, and other storage media all copies of the SDK, and shall so certify to Licensor that such actions have occurred. Licensor shall have the right to inspect and audit Licensee's facilities to confirm the foregoing.
51
+
52
+
53
+ ​11. MISCELLANEOUS.
54
+ ​Unless the parties have entered into a written amendment to this agreement that is signed by both parties regarding the SDK, this Agreement constitutes the entire agreement between Licensee and Licensor pertaining to the subject matter hereof, and supersedes any and all written or oral agreements with respect to such subject matter. Licensee may not assign this Agreement, in whole or in part to any third party without the prior written consent of Licensor.
55
+
56
+ ​The courts for Licensor’s registered office shall have exclusive jurisdiction over all disputes under and related to this Agreement. Any action or proceeding arising from or relating to this Agreement must be brought in the court for Licensor’s registered office, and each party irrevocably submits to the jurisdiction and venue of such court in any such action or proceeding. The prevailing party in any action arising out of this Agreement shall be entitled to an award of its costs and attorneys’ fees. This Agreement may be amended only by a writing executed by Licensor. If any provision of this Agreement is held to be unenforceable for any reason, such provision shall be reformed only to the extent necessary to make it enforceable.
57
+
58
+ ​The failure of Licensor to act with respect to a breach of this Agreement by Licensee or others does not constitute a waiver and shall not limit Licensor’s rights with respect to such breach or any subsequent breaches. This Agreement is personal to Licensee and may not be assigned or transferred for any reason whatsoever (including, without limitation, by operation of law, merger, reorganization, or as a result of an acquisition or change of control involving Licensee) without Licensor's prior written consent and any action or conduct in violation of the foregoing shall be void and without effect. Licensor expressly reserves the right to assign this Agreement and to delegate any of its obligations hereunder.
59
+
60
+
61
+ ​12. THIRD PARTY OPEN-SOURCE COMPONENTS.
62
+ ​The SDK uses third party components licensed under open source licenses listed in this section. The use of the open-source components is subject to the their separate licensing terms. Licensor disclaims any warranty for the open-source components in the SDK, and Licensor shall not be liable for any use of the open-source components by Licensee.
63
+ ​com.android.support:appcompat-v7 Apache License, Version 2.0
64
+ ​com.squareup.picasso:picasso Apache License, Version 2.0
65
+ ​com.android.volley:volley Apache License, Version 2.0
66
+ ​io.reactivex.rxjava2:rxjava Apache License, Version 2.0
67
+ ​io.reactivex.rxjava2:rxandroid:2.0.1 Apache License, Version 2.0
68
+ ​TOCropViewController by Tim Oliver The MIT License
69
+ ​SimpleCropView by Issei Aoki The MIT License
70
+ ​ZDStickerView by Seonghyun Kim The MIT License
@@ -0,0 +1,6 @@
1
+ framework module DSPhotoEditorSDK {
2
+ umbrella header "DSPhotoEditorSDK.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -0,0 +1,5 @@
1
+
2
+ Name: DS Photo Editor SDK
3
+ Version: 2.3
4
+ Documentation: https://www.dsphotoeditor.com/ios-objective-c
5
+ https://www.dsphotoeditor.com/ios-swift
@@ -0,0 +1,80 @@
1
+ ################################################################################
2
+ #
3
+ # Copyright 2015 Realm Inc.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ ################################################################################
18
+
19
+ # This script strips all non-valid architectures from dynamic libraries in
20
+ # the application's `Frameworks` directory.
21
+ #
22
+ # The following environment variables are required:
23
+ #
24
+ # BUILT_PRODUCTS_DIR
25
+ # FRAMEWORKS_FOLDER_PATH
26
+ # VALID_ARCHS
27
+ # EXPANDED_CODE_SIGN_IDENTITY
28
+
29
+ echo "BUILT_PRODUCTS_DIR: $BUILT_PRODUCTS_DIR"
30
+ echo "FRAMEWORKS_FOLDER_PATH: $FRAMEWORKS_FOLDER_PATH"
31
+ echo "VALID_ARCHS: $VALID_ARCHS"
32
+ echo "EXPANDED_CODE_SIGN_IDENTITY: $EXPANDED_CODE_SIGN_IDENTITY"
33
+
34
+
35
+ # Signs a framework with the provided identity
36
+ code_sign() {
37
+ # Use the current code_sign_identitiy
38
+ echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
39
+ echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
40
+ /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
41
+ }
42
+
43
+ # Set working directory to product’s embedded frameworks
44
+ cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
45
+
46
+ if [ "$ACTION" = "install" ]; then
47
+ echo "Copy .bcsymbolmap files to .xcarchive"
48
+ find . -name '*.bcsymbolmap' -type f -exec mv {} "${CONFIGURATION_BUILD_DIR}" \;
49
+ else
50
+ # Delete *.bcsymbolmap files from framework bundle unless archiving
51
+ find . -name '*.bcsymbolmap' -type f -exec rm -rf "{}" +\;
52
+ fi
53
+
54
+ echo "Stripping frameworks"
55
+
56
+ for file in $(find . -type f -perm +111); do
57
+ # Skip non-dynamic libraries
58
+ if ! [[ "$(file "$file")" == *"dynamically linked shared library"* ]]; then
59
+ continue
60
+ fi
61
+
62
+ # Get architectures for current file
63
+ echo "Current architectures for file: ${file}"
64
+ lipo -info "${file}"
65
+ archs="$(lipo -info "${file}" | rev | cut -d ':' -f1 | rev)"
66
+ stripped=""
67
+ for arch in $archs; do
68
+ if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
69
+ # Strip non-valid architectures in-place
70
+ lipo -remove "$arch" -output "$file" "$file" || exit 1
71
+ stripped="$stripped $arch"
72
+ fi
73
+ done
74
+ if [[ "$stripped" != "" ]]; then
75
+ echo "Stripped $file of architectures:$stripped"
76
+ if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then
77
+ code_sign "${file}"
78
+ fi
79
+ fi
80
+ done
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,18 @@
1
+ #import <Cordova/CDV.h>
2
+ @class UIScoplanCamera;
3
+
4
+ @interface ScoplanCamera : CDVPlugin {
5
+ UIScoplanCamera *mCamview;
6
+ NSMutableArray *mpictures;
7
+ CDVInvokedUrlCommand *mcallback;
8
+ }
9
+
10
+ - (void)takePictures:(CDVInvokedUrlCommand*)command;
11
+ - (void)insertPicture:(NSString*)url;
12
+ - (void)flushPicture:(NSString*)url;
13
+ - (void)dismissCam;
14
+ - (void)setPreview:(UIImage*)img;
15
+ - (void)addDrawSel:(SEL)selector;
16
+ - (void)resetAll;
17
+ - (void)removeLastPreview;
18
+ @end