|
@@ -293,14 +293,14 @@ def write_android_menu(xml_menu_path: str, features: dict, security: dict):
|
|
|
f.write(indented_str(1, "<item"))
|
|
|
f.write(indented_str(2, 'android:id="@+id/action_news_update"'))
|
|
|
f.write(indented_str(2, f'android:orderInCategory="{n}"'))
|
|
|
- f.write(indented_str(2, 'android:title="News & Update"'))
|
|
|
+ f.write(indented_str(2, 'android:title="News and Update"'))
|
|
|
f.write(indented_str(2, 'app:showAsAction="never" />'))
|
|
|
n = n + 1
|
|
|
else:
|
|
|
f.write(indented_str(1, "<!-- <item"))
|
|
|
f.write(indented_str(2, 'android:id="@+id/action_news_update"'))
|
|
|
f.write(indented_str(2, f'android:orderInCategory="{n}"'))
|
|
|
- f.write(indented_str(2, 'android:title="News & Update"'))
|
|
|
+ f.write(indented_str(2, 'android:title="News and Update"'))
|
|
|
f.write(indented_str(2, 'app:showAsAction="never" /> -->'))
|
|
|
n = n + 1
|
|
|
if features["contact_list"]["status"]:
|
|
@@ -331,6 +331,34 @@ def write_android_menu(xml_menu_path: str, features: dict, security: dict):
|
|
|
f.write(indented_str(2, 'android:title="Community"'))
|
|
|
f.write(indented_str(2, 'app:showAsAction="never" /> -->'))
|
|
|
n = n + 1
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(1, "<item"))
|
|
|
+ f.write(indented_str(2, 'android:id="@+id/action_conference_room"'))
|
|
|
+ f.write(indented_str(2, f'android:orderInCategory="{n}"'))
|
|
|
+ f.write(indented_str(2, 'android:title="Conference Room"'))
|
|
|
+ f.write(indented_str(2, 'app:showAsAction="never" />'))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(1, "<!-- <item"))
|
|
|
+ f.write(indented_str(2, 'android:id="@+id/action_conference_room"'))
|
|
|
+ f.write(indented_str(2, f'android:orderInCategory="{n}"'))
|
|
|
+ f.write(indented_str(2, 'android:title="Conference Room"'))
|
|
|
+ f.write(indented_str(2, 'app:showAsAction="never" /> -->'))
|
|
|
+ n = n + 1
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(1, "<item"))
|
|
|
+ f.write(indented_str(2, 'android:id="@+id/action_call_log"'))
|
|
|
+ f.write(indented_str(2, f'android:orderInCategory="{n}"'))
|
|
|
+ f.write(indented_str(2, 'android:title="Call Log"'))
|
|
|
+ f.write(indented_str(2, 'app:showAsAction="never" />'))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(1, "<!-- <item"))
|
|
|
+ f.write(indented_str(2, 'android:id="@+id/action_call_log"'))
|
|
|
+ f.write(indented_str(2, f'android:orderInCategory="{n}"'))
|
|
|
+ f.write(indented_str(2, 'android:title="Call Log"'))
|
|
|
+ f.write(indented_str(2, 'app:showAsAction="never" /> -->'))
|
|
|
+ n = n + 1
|
|
|
if security["secure_folder"]:
|
|
|
f.write(indented_str(1, "<item"))
|
|
|
f.write(indented_str(2, 'android:id="@+id/action_sf"'))
|
|
@@ -531,6 +559,26 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(3, "// API.openCommunity();"))
|
|
|
f.write(indented_str(3, "// return true;"))
|
|
|
f.write(indented_str(2, "// }"))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(2, "if (id == R.id.action_conference_room) {"))
|
|
|
+ f.write(indented_str(3, "API.openConferenceRoom();"))
|
|
|
+ f.write(indented_str(3, "return true;"))
|
|
|
+ f.write(indented_str(2, "}"))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// if (id == R.id.action_conference_room) {"))
|
|
|
+ f.write(indented_str(3, "// API.openConferenceRoom();"))
|
|
|
+ f.write(indented_str(3, "// return true;"))
|
|
|
+ f.write(indented_str(2, "// }"))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(2, "if (id == R.id.action_call_log) {"))
|
|
|
+ f.write(indented_str(3, "API.openCallLog();"))
|
|
|
+ f.write(indented_str(3, "return true;"))
|
|
|
+ f.write(indented_str(2, "}"))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// if (id == R.id.action_call_log) {"))
|
|
|
+ f.write(indented_str(3, "// API.openCallLog();"))
|
|
|
+ f.write(indented_str(3, "// return true;"))
|
|
|
+ f.write(indented_str(2, "// }"))
|
|
|
if security["secure_folder"]:
|
|
|
f.write(indented_str(2, "if (id == R.id.action_sf) {"))
|
|
|
f.write(indented_str(3, "API.openSecureFolder();"))
|
|
@@ -714,9 +762,17 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
else:
|
|
|
f.write(indented_str(2, "// ImageView imageViewContactList = findViewById(R.id.btn_contact_list);"))
|
|
|
if features["community"]["status"]:
|
|
|
- f.write(indented_str(2, "ImageView imageViewContactList = findViewById(R.id.btn_community);"))
|
|
|
+ f.write(indented_str(2, "ImageView imageViewCommunity = findViewById(R.id.btn_community);"))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// ImageView imageViewCommunity = findViewById(R.id.btn_community);"))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(2, "ImageView imageViewConferenceRoom = findViewById(R.id.btn_conference_room);"))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// ImageView imageViewConferenceRoom = findViewById(R.id.btn_conference_room);"))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(2, "ImageView imageViewCallLog = findViewById(R.id.btn_call_log);"))
|
|
|
else:
|
|
|
- f.write(indented_str(2, "// ImageView imageViewContactList = findViewById(R.id.btn_community);"))
|
|
|
+ f.write(indented_str(2, "// ImageView imageViewCallLog = findViewById(R.id.btn_call_log);"))
|
|
|
f.write(indented_str(0, ""))
|
|
|
f.write(indented_str(2, "imageViewSetting.setOnClickListener(v -> {"))
|
|
|
f.write(indented_str(3, "API.openSettings();"))
|
|
@@ -858,7 +914,23 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(2, "});"))
|
|
|
else:
|
|
|
f.write(indented_str(2, "// imageViewCommunity.setOnClickListener(v -> {"))
|
|
|
- f.write(indented_str(3, "// API.opencommunity();"))
|
|
|
+ f.write(indented_str(3, "// API.openCommunity();"))
|
|
|
+ f.write(indented_str(2, "// });"))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(2, "imageViewConferenceRoom.setOnClickListener(v -> {"))
|
|
|
+ f.write(indented_str(3, "API.openConferenceRoom();"))
|
|
|
+ f.write(indented_str(2, "});"))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// imageViewConferenceRoom.setOnClickListener(v -> {"))
|
|
|
+ f.write(indented_str(3, "// API.openConferenceRoom();"))
|
|
|
+ f.write(indented_str(2, "// });"))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(2, "imageViewCallLog.setOnClickListener(v -> {"))
|
|
|
+ f.write(indented_str(3, "API.openCallLog();"))
|
|
|
+ f.write(indented_str(2, "});"))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// imageViewCallLog.setOnClickListener(v -> {"))
|
|
|
+ f.write(indented_str(3, "// API.openCallLog();"))
|
|
|
f.write(indented_str(2, "// });"))
|
|
|
elif "//BREAK" in line:
|
|
|
if mode == "floating" or mode == "grid":
|
|
@@ -1158,6 +1230,34 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(2, '<!--android:layout_width="100dp"-->'))
|
|
|
f.write(indented_str(2, '<!--android:layout_margin="10dp"-->'))
|
|
|
f.write(indented_str(2, '<!--android:src="@drawable/pb_button_community"/>-->'))
|
|
|
+ if mode == "grid" and "conference_room" in l_features:
|
|
|
+ f.write(indented_str(1, "<ImageView"))
|
|
|
+ f.write(indented_str(2, 'android:id="@+id/btn_conference_room"'))
|
|
|
+ f.write(indented_str(2, 'android:layout_height="100dp"'))
|
|
|
+ f.write(indented_str(2, 'android:layout_width="100dp"'))
|
|
|
+ f.write(indented_str(2, 'android:layout_margin="10dp"'))
|
|
|
+ f.write(indented_str(2, 'android:src="@drawable/pb_button_conference_room"/>'))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(1, "<!--<ImageView-->"))
|
|
|
+ f.write(indented_str(2, '<!--android:id="@+id/btn_conference_room"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:layout_height="100dp"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:layout_width="100dp"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:layout_margin="10dp"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:src="@drawable/pb_button_conference_room"/>-->'))
|
|
|
+ if mode == "grid" and "call_log" in l_features:
|
|
|
+ f.write(indented_str(1, "<ImageView"))
|
|
|
+ f.write(indented_str(2, 'android:id="@+id/btn_call_log"'))
|
|
|
+ f.write(indented_str(2, 'android:layout_height="100dp"'))
|
|
|
+ f.write(indented_str(2, 'android:layout_width="100dp"'))
|
|
|
+ f.write(indented_str(2, 'android:layout_margin="10dp"'))
|
|
|
+ f.write(indented_str(2, 'android:src="@drawable/pb_button_call_log"/>'))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(1, "<!--<ImageView-->"))
|
|
|
+ f.write(indented_str(2, '<!--android:id="@+id/btn_call_log"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:layout_height="100dp"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:layout_width="100dp"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:layout_margin="10dp"-->'))
|
|
|
+ f.write(indented_str(2, '<!--android:src="@drawable/pb_button_call_log"/>-->'))
|
|
|
else:
|
|
|
f.write(line)
|
|
|
write_android_manifest(manifest_path, features, security)
|
|
@@ -1242,6 +1342,14 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
features_str.append("'Community'")
|
|
|
else:
|
|
|
features_str.append("// 'Community'")
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ features_str.append("'Conference Room'")
|
|
|
+ else:
|
|
|
+ features_str.append("// 'Conference Room'")
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ features_str.append("'Call Log'")
|
|
|
+ else:
|
|
|
+ features_str.append("// 'Call Log'")
|
|
|
for feature_str in features_str:
|
|
|
f.write(indented_str(8, f"{feature_str},", spaces=2))
|
|
|
elif "//FEATURES" in line:
|
|
@@ -1307,6 +1415,14 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(3, '// case "Streaming":', spaces=2))
|
|
|
f.write(indented_str(4, '// nativeChannel.invokeMethod("openStreaming");', spaces=2))
|
|
|
f.write(indented_str(4, "// break;", spaces=2))
|
|
|
+ if security["secure_folder"]:
|
|
|
+ f.write(indented_str(3, 'case "Secure Folder":', spaces=2))
|
|
|
+ f.write(indented_str(4, 'nativeChannel.invokeMethod("openSecureFolder");', spaces=2))
|
|
|
+ f.write(indented_str(4, "break;", spaces=2))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(3, '// case "Secure Folder":', spaces=2))
|
|
|
+ f.write(indented_str(4, '// nativeChannel.invokeMethod("openSecureFolder");', spaces=2))
|
|
|
+ f.write(indented_str(4, "// break;", spaces=2))
|
|
|
if features["custom_url"]["status"]:
|
|
|
f.write(indented_str(3, 'case "Custom URL":', spaces=2))
|
|
|
f.write(indented_str(4, 'nativeChannel.invokeMethod("openCustomURL");', spaces=2))
|
|
@@ -1379,13 +1495,21 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(3, '// case "Community":', spaces=2))
|
|
|
f.write(indented_str(4, '// nativeChannel.invokeMethod("openCommunity");', spaces=2))
|
|
|
f.write(indented_str(4, "// break;", spaces=2))
|
|
|
- if security["secure_folder"]:
|
|
|
- f.write(indented_str(3, 'case "Secure Folder":', spaces=2))
|
|
|
- f.write(indented_str(4, 'nativeChannel.invokeMethod("openSecureFolder");', spaces=2))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(3, 'case "Conference Room":', spaces=2))
|
|
|
+ f.write(indented_str(4, 'nativeChannel.invokeMethod("openConferenceRoom");', spaces=2))
|
|
|
f.write(indented_str(4, "break;", spaces=2))
|
|
|
else:
|
|
|
- f.write(indented_str(3, '// case "Secure Folder":', spaces=2))
|
|
|
- f.write(indented_str(4, '// nativeChannel.invokeMethod("openSecureFolder");', spaces=2))
|
|
|
+ f.write(indented_str(3, '// case "Conference Room":', spaces=2))
|
|
|
+ f.write(indented_str(4, '// nativeChannel.invokeMethod("openConferenceRoom");', spaces=2))
|
|
|
+ f.write(indented_str(4, "// break;", spaces=2))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(3, 'case "Call Log":', spaces=2))
|
|
|
+ f.write(indented_str(4, 'nativeChannel.invokeMethod("openCallLog");', spaces=2))
|
|
|
+ f.write(indented_str(4, "break;", spaces=2))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(3, '// case "Call Log":', spaces=2))
|
|
|
+ f.write(indented_str(4, '// nativeChannel.invokeMethod("openCallLog");', spaces=2))
|
|
|
f.write(indented_str(4, "// break;", spaces=2))
|
|
|
else:
|
|
|
f.write(line)
|
|
@@ -1747,7 +1871,34 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(6, "// this.openCommunity();", spaces=2))
|
|
|
f.write(indented_str(5, "// },", spaces=2))
|
|
|
f.write(indented_str(4, "// },", spaces=2))
|
|
|
-
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(4, '{', spaces=2))
|
|
|
+ f.write(indented_str(5, "text: 'Conference Room',", spaces=2))
|
|
|
+ f.write(indented_str(5, "handler: () => {", spaces=2))
|
|
|
+ f.write(indented_str(6, "this.openConferenceRoom();", spaces=2))
|
|
|
+ f.write(indented_str(5, "},", spaces=2))
|
|
|
+ f.write(indented_str(4, "},", spaces=2))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(4, '// {', spaces=2))
|
|
|
+ f.write(indented_str(5, "// text: 'Conference Room',", spaces=2))
|
|
|
+ f.write(indented_str(5, "// handler: () => {", spaces=2))
|
|
|
+ f.write(indented_str(6, "// this.openConferenceRoom();", spaces=2))
|
|
|
+ f.write(indented_str(5, "// },", spaces=2))
|
|
|
+ f.write(indented_str(4, "// },", spaces=2))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(4, '{', spaces=2))
|
|
|
+ f.write(indented_str(5, "text: 'Call Log',", spaces=2))
|
|
|
+ f.write(indented_str(5, "handler: () => {", spaces=2))
|
|
|
+ f.write(indented_str(6, "this.openCallLog();", spaces=2))
|
|
|
+ f.write(indented_str(5, "},", spaces=2))
|
|
|
+ f.write(indented_str(4, "},", spaces=2))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(4, '// {', spaces=2))
|
|
|
+ f.write(indented_str(5, "// text: 'Call Log',", spaces=2))
|
|
|
+ f.write(indented_str(5, "// handler: () => {", spaces=2))
|
|
|
+ f.write(indented_str(6, "// this.openCallLog();", spaces=2))
|
|
|
+ f.write(indented_str(5, "// },", spaces=2))
|
|
|
+ f.write(indented_str(4, "// },", spaces=2))
|
|
|
else:
|
|
|
f.write(line)
|
|
|
with open(main_act_android, "r") as f:
|
|
@@ -1928,6 +2079,14 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(4, "'Community',", spaces=2))
|
|
|
else:
|
|
|
f.write(indented_str(4, "// 'Community',", spaces=2))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(4, "'Conference Room',", spaces=2))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(4, "// 'Conference Room',", spaces=2))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(4, "'Call Log',", spaces=2))
|
|
|
+ else:
|
|
|
+ f.write(indented_str(4, "// 'Call Log',", spaces=2))
|
|
|
|
|
|
elif "//FEATURES1" in line:
|
|
|
n = 0
|
|
@@ -2092,6 +2251,24 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(5, "// if (buttonIndex === 18) {", spaces=2))
|
|
|
f.write(indented_str(6, "// CallNative.openCommunity();", spaces=2))
|
|
|
f.write(indented_str(5, "// }", spaces=2))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(5, f"if (buttonIndex === {n}) {{", spaces=2))
|
|
|
+ f.write(indented_str(6, "CallNative.openConferenceRoom();", spaces=2))
|
|
|
+ f.write(indented_str(5, "}", spaces=2))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(5, "// if (buttonIndex === 19) {", spaces=2))
|
|
|
+ f.write(indented_str(6, "// CallNative.openConferenceRoom();", spaces=2))
|
|
|
+ f.write(indented_str(5, "// }", spaces=2))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(5, f"if (buttonIndex === {n}) {{", spaces=2))
|
|
|
+ f.write(indented_str(6, "CallNative.openCallLog();", spaces=2))
|
|
|
+ f.write(indented_str(5, "}", spaces=2))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(5, "// if (buttonIndex === 20) {", spaces=2))
|
|
|
+ f.write(indented_str(6, "// CallNative.openCallLog();", spaces=2))
|
|
|
+ f.write(indented_str(5, "// }", spaces=2))
|
|
|
|
|
|
elif "//FEATURES2" in line:
|
|
|
n = 0
|
|
@@ -2400,6 +2577,40 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(4, "// console.log(e);", spaces=2))
|
|
|
f.write(indented_str(3, "// }", spaces=2))
|
|
|
f.write(indented_str(2, "// }", spaces=2))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(2, f"if (buttonIndex === {n}) {{", spaces=2))
|
|
|
+ f.write(indented_str(3, "try {", spaces=2))
|
|
|
+ f.write(indented_str(4, "CallNative.openConferenceRoom();", spaces=2))
|
|
|
+ f.write(indented_str(3, "} catch (e) {", spaces=2))
|
|
|
+ f.write(indented_str(4, "console.log(e);", spaces=2))
|
|
|
+ f.write(indented_str(3, "}", spaces=2))
|
|
|
+ f.write(indented_str(2, "}", spaces=2))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// if (buttonIndex === 19) {", spaces=2))
|
|
|
+ f.write(indented_str(3, "// try {", spaces=2))
|
|
|
+ f.write(indented_str(4, "// CallNative.openConferenceRoom();", spaces=2))
|
|
|
+ f.write(indented_str(3, "// } catch (e) {", spaces=2))
|
|
|
+ f.write(indented_str(4, "// console.log(e);", spaces=2))
|
|
|
+ f.write(indented_str(3, "// }", spaces=2))
|
|
|
+ f.write(indented_str(2, "// }", spaces=2))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(2, f"if (buttonIndex === {n}) {{", spaces=2))
|
|
|
+ f.write(indented_str(3, "try {", spaces=2))
|
|
|
+ f.write(indented_str(4, "CallNative.openCallLog();", spaces=2))
|
|
|
+ f.write(indented_str(3, "} catch (e) {", spaces=2))
|
|
|
+ f.write(indented_str(4, "console.log(e);", spaces=2))
|
|
|
+ f.write(indented_str(3, "}", spaces=2))
|
|
|
+ f.write(indented_str(2, "}", spaces=2))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(2, "// if (buttonIndex === 20) {", spaces=2))
|
|
|
+ f.write(indented_str(3, "// try {", spaces=2))
|
|
|
+ f.write(indented_str(4, "// CallNative.openCallLog();", spaces=2))
|
|
|
+ f.write(indented_str(3, "// } catch (e) {", spaces=2))
|
|
|
+ f.write(indented_str(4, "// console.log(e);", spaces=2))
|
|
|
+ f.write(indented_str(3, "// }", spaces=2))
|
|
|
+ f.write(indented_str(2, "// }", spaces=2))
|
|
|
elif "//FEATURES3" in line:
|
|
|
n = 0
|
|
|
f.write(indented_str(5, "<Button", spaces=2))
|
|
@@ -2599,6 +2810,28 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
|
|
|
f.write(indented_str(6, 'title="Community"', spaces=2))
|
|
|
f.write(indented_str(6, f'onPress={{() => handleActionSheetPress(18)}}', spaces=2))
|
|
|
f.write(indented_str(5, "/> */}", spaces=2))
|
|
|
+ if features["conference_room"]["status"]:
|
|
|
+ f.write(indented_str(5, "<Button", spaces=2))
|
|
|
+ f.write(indented_str(6, 'title="Conference Room"', spaces=2))
|
|
|
+ f.write(indented_str(6, f'onPress={{() => handleActionSheetPress({n})}}', spaces=2))
|
|
|
+ f.write(indented_str(5, "/>", spaces=2))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(5, "{/* <Button", spaces=2))
|
|
|
+ f.write(indented_str(6, 'title="Conference Room"', spaces=2))
|
|
|
+ f.write(indented_str(6, f'onPress={{() => handleActionSheetPress(19)}}', spaces=2))
|
|
|
+ f.write(indented_str(5, "/> */}", spaces=2))
|
|
|
+ if features["call_log"]["status"]:
|
|
|
+ f.write(indented_str(5, "<Button", spaces=2))
|
|
|
+ f.write(indented_str(6, 'title="Call Log"', spaces=2))
|
|
|
+ f.write(indented_str(6, f'onPress={{() => handleActionSheetPress({n})}}', spaces=2))
|
|
|
+ f.write(indented_str(5, "/>", spaces=2))
|
|
|
+ n = n + 1
|
|
|
+ else:
|
|
|
+ f.write(indented_str(5, "{/* <Button", spaces=2))
|
|
|
+ f.write(indented_str(6, 'title="Call Log"', spaces=2))
|
|
|
+ f.write(indented_str(6, f'onPress={{() => handleActionSheetPress(20)}}', spaces=2))
|
|
|
+ f.write(indented_str(5, "/> */}", spaces=2))
|
|
|
else:
|
|
|
f.write(line)
|
|
|
with open(main_act_android, "r") as f:
|
|
@@ -3353,6 +3586,9 @@ def save_icons(app_id: str, platform: str, mode: str, path_dest: str, features:
|
|
|
if features["nc"]["icon"]:
|
|
|
file = features["nc"]["icon"]
|
|
|
file.save(os.path.join(drawable_path, "pb_button_notif_center.png"))
|
|
|
+ if features["secure_folder"]["icon"]:
|
|
|
+ file = features["im"]["icon"]
|
|
|
+ file.save(os.path.join(drawable_path, "pb_button_secure_folder.png"))
|
|
|
if features["custom_url"]["icon"]:
|
|
|
file = features["custom_url"]["icon"]
|
|
|
file.save(os.path.join(drawable_path, "pb_button_custom_url.png"))
|
|
@@ -3380,9 +3616,12 @@ def save_icons(app_id: str, platform: str, mode: str, path_dest: str, features:
|
|
|
if features["community"]["icon"]:
|
|
|
file = features["community"]["icon"]
|
|
|
file.save(os.path.join(drawable_path, "pb_button_community.png"))
|
|
|
- if features["secure_folder"]["icon"]:
|
|
|
- file = features["im"]["icon"]
|
|
|
- file.save(os.path.join(drawable_path, "pb_button_secure_folder.png"))
|
|
|
+ if features["conference_room"]["icon"]:
|
|
|
+ file = features["conference_room"]["icon"]
|
|
|
+ file.save(os.path.join(drawable_path, "pb_button_conference_room.png"))
|
|
|
+ if features["call_log"]["icon"]:
|
|
|
+ file = features["call_log"]["icon"]
|
|
|
+ file.save(os.path.join(drawable_path, "call_log.png"))
|
|
|
pass
|
|
|
|
|
|
def deliver_zip(path_dest, uid):
|
|
@@ -3507,6 +3746,14 @@ def build_project():
|
|
|
"status": False,
|
|
|
"icon": None
|
|
|
},
|
|
|
+ "conference_room": {
|
|
|
+ "status": False,
|
|
|
+ "icon": None
|
|
|
+ },
|
|
|
+ "call_log": {
|
|
|
+ "status": False,
|
|
|
+ "icon": None
|
|
|
+ },
|
|
|
|
|
|
"cc_chat": {
|
|
|
"status": False,
|
|
@@ -3597,6 +3844,10 @@ def build_project():
|
|
|
feature_dict["contact_list"]["status"] = request.form["feature_contact_list"] == "1"
|
|
|
if "feature_community" in request.form:
|
|
|
feature_dict["community"]["status"] = request.form["feature_community"] == "1"
|
|
|
+ if "feature_conference_room" in request.form:
|
|
|
+ feature_dict["conference_room"]["status"] = request.form["feature_conference_room"] == "1"
|
|
|
+ if "feature_call_log" in request.form:
|
|
|
+ feature_dict["call_log"]["status"] = request.form["feature_call_log"] == "1"
|
|
|
if "feature_secure_folder" in request.form and not security_dict["secure_folder"]:
|
|
|
security_dict["secure_folder"] = request.form["feature_secure_folder"] == "1"
|
|
|
|
|
@@ -3631,7 +3882,7 @@ def build_project():
|
|
|
security_dict["capture"] = request.form["security_capture"] == "1"
|
|
|
if "security_call_forwarding" in request.form:
|
|
|
security_dict["call_forwarding"] = request.form["security_call_forwarding"] == "1"
|
|
|
- if "security_secure_folder" in request.form and not security_dict["secure_folder"]::
|
|
|
+ if "security_secure_folder" in request.form and not security_dict["secure_folder"]:
|
|
|
security_dict["secure_folder"] = request.form["security_secure_folder"] == "1"
|
|
|
if "secure_folder" in request.form and not security_dict["secure_folder"]:
|
|
|
security_dict["secure_folder"] = request.form["secure_folder"] == "1"
|
|
@@ -3715,6 +3966,14 @@ def build_project():
|
|
|
file = request.files['gridicon_community']
|
|
|
if file and file.filename and allowed_file(file.filename):
|
|
|
feature_dict["community"]["icon"] = file
|
|
|
+ if "gridicon_conference_room" in request.files:
|
|
|
+ file = request.files['gridicon_conference_room']
|
|
|
+ if file and file.filename and allowed_file(file.filename):
|
|
|
+ feature_dict["conference_room"]["icon"] = file
|
|
|
+ if "gridicon_call_log" in request.files:
|
|
|
+ file = request.files['gridicon_call_log']
|
|
|
+ if file and file.filename and allowed_file(file.filename):
|
|
|
+ feature_dict["call_log"]["icon"] = file
|
|
|
if "gridicon_secure_folder" in request.files:
|
|
|
file = request.files['gridicon_secure_folder']
|
|
|
if file and file.filename and allowed_file(file.filename):
|