forked from arihantdaga/Tuyacordovaplugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
138 lines (126 loc) · 9.56 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
135
136
137
138
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-tuya-unofficial" version="1.0.0">
<name>tuyacordovaplugin</name>
<js-module name="tuyacordovaplugin" src="www/tuyacordovaplugin.js">
<clobbers target="tuyacordovaplugin" />
</js-module>
<preference name="TUYA_SMART_APPKEY" default="" />
<preference name="TUYA_SMART_SECRET" default="" />
<platform name="android">
<!-- <framework src="com.tuya.smart:tuyasmart:3.26.5" />
<framework src="com.tuya.smart:tuyasmart-ipcsdk:3.26.5" />
<framework src="cn.yipianfengye.android:zxing-library:2.2" /> -->
<preference name="AndroidXEnabled" default="true" />
<!-- <framework src="src/android/plugin.gradle" custom="true" type="gradleReference"/> -->
<config-file parent="/*" target="res/xml/config.xml">
<feature name="Tuyacordovaplugin">
<param name="android-package" value="com.arihant.tuyaplugin.Tuyacordovaplugin" />
</feature>
</config-file>
<config-file parent="/*" target="AndroidManifest.xml" />
<edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
<application android:allowBackup="true" xmlns:tools="http://schemas.android.com/tools"
tools:replace="android:allowBackup,android:supportsRtl"
/>
</edit-config>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<meta-data
android:name="TUYA_SMART_APPKEY"
android:value="$TUYA_SMART_APPKEY" />
<meta-data
android:name="TUYA_SMART_SECRET"
android:value="$TUYA_SMART_SECRET" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest">
<!-- sdcard -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.arihant.tuyaplugin.CameraPanelActivity"/>
</config-file>
<!-- Activities -->
<source-file src="src/android/Tuyacordovaplugin.java" target-dir="src/com/arihant/tuyaplugin" />
<source-file src="src/android/CameraPanelActivity.java" target-dir="src/com/arihant/tuyaplugin" />
<!-- Utilities -->
<source-file src="src/android/utils/Constants.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<source-file src="src/android/utils/DateUtils.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<source-file src="src/android/utils/DPConstants.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<source-file src="src/android/utils/FrescoManager.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<source-file src="src/android/utils/MessageUtil.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<source-file src="src/android/utils/TimeZoneUtils.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<source-file src="src/android/utils/ToastUtil.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<source-file src="src/android/utils/CameraDoorbellManager.java" target-dir="src/com/arihant/tuyaplugin/utils" />
<!-- Layouts -->
<resource-file src="src/android/res/layout/activity_camera_panel.xml" target="res/layout/activity_camera_panel.xml" />
<resource-file src="src/android/res/layout/camera_panel_control_layout.xml" target="res/layout/camera_panel_control_layout.xml" />
<!-- Drawables -->
<resource-file src="src/android/res/drawable/bg_button_selector.xml" target="res/drawable/bg_button_selector.xml" />
<resource-file src="src/android/res/drawable/bg_button.xml" target="res/drawable/bg_button.xml" />
<resource-file src="src/android/res/drawable/camera_icon_mic_selector.xml" target="res/drawable/camera_icon_mic_selector.xml" />
<resource-file src="src/android/res/drawable/camera_icon_photo_selector.xml" target="res/drawable/camera_icon_photo_selector.xml" />
<resource-file src="src/android/res/drawable/camera_icon_playback_selector.xml" target="res/drawable/camera_icon_playback_selector.xml" />
<resource-file src="src/android/res/drawable/camera_icon_record_selector.xml" target="res/drawable/camera_icon_record_selector.xml" />
<resource-file src="src/android/res/drawable/camera_item_control_btn.xml" target="res/drawable/camera_item_control_btn.xml" />
<resource-file src="src/android/res/drawable/camera_mute_btn.xml" target="res/drawable/camera_mute_btn.xml" />
<resource-file src="src/android/res/drawable/camera_shape_wirlesswake.xml" target="res/drawable/camera_shape_wirlesswake.xml" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_arrow.png" target="res/drawable-xhdpi/camera_icon_arrow.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_cloud.png" target="res/drawable-xhdpi/camera_icon_cloud.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_hd.png" target="res/drawable-xhdpi/camera_icon_hd.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_info.png" target="res/drawable-xhdpi/camera_icon_info.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_message.png" target="res/drawable-xhdpi/camera_icon_message.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_photo_btn_normal.png" target="res/drawable-xhdpi/camera_icon_photo_btn_normal.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_photo_btn_unenable.png" target="res/drawable-xhdpi/camera_icon_photo_btn_unenable.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_playback_btn_normal.png" target="res/drawable-xhdpi/camera_icon_playback_btn_normal.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_playback_btn_unable.png" target="res/drawable-xhdpi/camera_icon_playback_btn_unable.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_rec_btn_normal.png" target="res/drawable-xhdpi/camera_icon_rec_btn_normal.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_rec_btn_on.png" target="res/drawable-xhdpi/camera_icon_rec_btn_on.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_icon_rec_btn_unenable.png" target="res/drawable-xhdpi/camera_icon_rec_btn_unenable.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_preview_sound_btn_off.png" target="res/drawable-xhdpi/camera_preview_sound_btn_off.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_preview_sound_btn_on.png" target="res/drawable-xhdpi/camera_preview_sound_btn_on.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_tab_speak_btn_nomal.png" target="res/drawable-xhdpi/camera_tab_speak_btn_nomal.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_tab_speak_btn_on.png" target="res/drawable-xhdpi/camera_tab_speak_btn_on.png" />
<resource-file src="src/android/res/drawable-xhdpi/camera_tab_speak_btn_unenable.png" target="res/drawable-xhdpi/camera_tab_speak_btn_unenable.png" />
<resource-file src="src/android/res/drawable-xhdpi/tysmart_back.png" target="res/drawable-xhdpi/tysmart_back.png" />
<!-- Values -->
<resource-file src="src/android/res/values/tuyacordovaplugin_colors.xml" target="res/values/tuyacordovaplugin_colors.xml" />
<resource-file src="src/android/res/values/tuyacordovaplugin_dimens.xml" target="res/values/tuyacordovaplugin_dimens.xml" />
<resource-file src="src/android/res/values/tuyacordovaplugin_strings.xml" target="res/values/tuyacordovaplugin_strings.xml" />
<resource-file src="src/android/res/values/tuyacordovaplugin_themes.xml" target="res/values/tuyacordovaplugin_themes.xml" />
</platform>
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="Tuyacordovaplugin">
<param name="ios-package" value="Tuyacordovaplugin" />
</feature>
</config-file>
<podspec>
<config>
<source url="https://cdn.cocoapods.org/" />
<source url="https://github.com/TuyaInc/TuyaPublicSpecs.git"/>
</config>
<pods use-frameworks="true">
<pod name="SVProgressHUD" />
<pod name="TuyaSmartHomeKit" />
<pod name="TuyaSmartCameraKit" />
<pod name="TuyaCameraUIKit" />
<pod name="TuyaSmartCloudServiceBizBundle" />
</pods>
</podspec>
<config-file target="*-Info.plist" parent="CFBundleTuyaAppKey">
<string>$TUYA_SMART_APPKEY</string>
</config-file>
<config-file target="*-Info.plist" parent="CFBundleTuyaAppSecret">
<string>$TUYA_SMART_SECRET</string>
</config-file>
<header-file src="src/ios/Tuyacordovaplugin.h" />
<source-file src="src/ios/Tuyacordovaplugin.m" />
</platform>
</plugin>