-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.xml
134 lines (116 loc) · 8.3 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="utf-8"?>
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-blackboard-camera"
version="1.1.0">
<name>Blackboard Camera</name>
<engines>
<engine name="cordova" version=">=11.0.0"/>
<engine name="cordova-android" version=">=11.0.0"/>
<!-- <engine name="cordova-ios" version=">=6.2.0"/> -->
</engines>
<asset src="www/blackboard_camera.js" target="js/blackboard_camera.js"/>
<js-module src="www/blackboard_camera.js" name="blackboard_camera">
<clobbers target="blackboard.camera" />
</js-module>
<!-- Add iOS(Swift) support -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BlackboardCamera">
<param name="ios-package" value="BlackboardCamera" />
<param name="onload" value="true" />
</feature>
</config-file>
<source-file src="src/ios/BlackboardCamera.swift" />
<source-file src="src/ios/CameraViewController.swift" />
<source-file src="src/ios/PhotoInfo.swift" />
<source-file src="src/ios/ElectronicBlackBoardManager.swift" />
<resource-file src="src/ios/Main.storyboard" />
// Image Files
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<resource-file src="src/ios/img/[email protected]" target-dir="Resources" />
<framework src="AVFoundation.framework" />
<framework src="src/ios/framework/JCOMSIAHashLib.framework" custom="true" embed="true"/>
<dependency id="cordova-plugin-add-swift-support" version="2.0.2"/>
</platform>
<platform name="android" kotlin="1.5.21">
<!-- Add Kotlin support -->
<plugin name="cordova-plugin-androidx-adapter" />
<!-- <framework src="org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.31" /> -->
<!-- <framework src="com.android.support:appcompat-v7:27.1.1" /> -->
<!-- <apply-plugin>kotlin-android-extensions</apply-plugin> -->
<apply-plugin>kotlin-kapt</apply-plugin>
<!-- Cleanup Kotlin source on uninstall -->
<hook type="before_plugin_rm" src="hooks/on-uninstall.js" />
<hook type="before_plugin_uninstall" src="hooks/on-uninstall.js" />
<hook type="after_platform_add" src="hooks/modify-root-build-gradle.js" />
<hook type="after_platform_add" src="hooks/copy_native_files.js" />
<config-file target="config.xml" parent="/*">
<preference name="GradlePluginKotlinEnabled" value="true" />
<feature name="BlackboardCamera">
<param name="android-package" value="jp.co.taisei.construction.fieldmanagement.plugin.BlackboardCamera"/>
<param name="onload" value="true" />
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.hardware.camera.autofocus" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<!-- <meta-data android:name="theme" android:value="@style/Theme.AppCompat.NoActionBar" /> -->
<!-- <meta-data android:name="largeHeap" android:value="true" /> -->
<activity android:label="Camera Activity" android:name="jp.co.taisei.construction.fieldmanagement.plugin.CameraActivity" android:theme="@style/Theme.AppCompat.NoActionBar"></activity>
</config-file>
<config-file target="res/values/strings.xml" parent="/resources">
<string name="camera">カメラ起動</string>
<string name="request_permission">このアプリはカメラ機能への許可が必要です</string>
<string name="request_write_storage_permission">このアプリはストレージへの書き込みの許可が必要です</string>
<string name="camera_error">This device doesn\'t support Camera2 API.</string>
</config-file>
<!-- <edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
<application android:largeHeap="true"></application>
</edit-config> -->et
<!-- <edit-config file="AndroidManifest.xml" target="/manifest/application" mode="overwrite">
<application android:theme="@style/Theme.AppCompat.NoActionBar"></application>
</edit-config> -->
<framework src="com.android.support:exifinterface:27.1.1" />
<framework src="com.adobe.xmp:xmpcore:5.1.3"/>
<source-file src="src/android/BlackboardCamera.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/CameraActivity.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/AutoFitTextureView.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/Camera2Fragment.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/SensorOrientation.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/ElectronicBlackBoardManager.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/PhotoInfo.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/KotlinXMP.kt" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/XmpUtil.java" target-dir="app/src/main/java/jp/co/taisei/construction/fieldmanagement/plugin"/>
<source-file src="src/android/layout/activity_main.xml" target-dir="app/src/main/res/layout"/>
<source-file src="src/android/layout-land/fragment_camera2.xml" target-dir="app/src/main/res/layout-land"/>
<source-file src="src/android/layout-port/fragment_camera2.xml" target-dir="app/src/main/res/layout-port"/>
<source-file src="src/android/drawable/ic_camera.xml" target-dir="app/src/main/res/drawable"/>
<source-file src="src/android/drawable/ic_circle.xml" target-dir="app/src/main/res/drawable"/>
<source-file src="src/android/drawable/round_button.xml" target-dir="app/src/main/res/drawable"/>
<source-file src="src/android/drawable-xxhdpi/btn_camera_off.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<source-file src="src/android/drawable-xxhdpi/btn_camera_on.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<source-file src="src/android/drawable-xxhdpi/icn_done.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<source-file src="src/android/drawable-xxhdpi/icn_flash_auto.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<source-file src="src/android/drawable-xxhdpi/icn_flash_off.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<source-file src="src/android/drawable-xxhdpi/icn_flash_on.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<source-file src="src/android/drawable-xxhdpi/icn_blackboard_edit.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<source-file src="src/android/drawable-xxhdpi/icn_blackboard.png" target-dir="app/src/main/res/drawable-xxhdpi"/>
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
</platform>
</plugin>