|
@@ -7,20 +7,22 @@ import uuid
|
|
|
|
|
|
from flask import Flask, request
|
|
|
|
|
|
+base_directory = "/Users/maronakins/Documents"
|
|
|
+
|
|
|
app = Flask(__name__)
|
|
|
app.base_project = {
|
|
|
- "android": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCode",
|
|
|
- "android_flutter": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCodeFlutter-Android",
|
|
|
- "android_ionic": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCodeIonic-Android",
|
|
|
- "android_react": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCodeReact-Android",
|
|
|
- "ios": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCode-iOS",
|
|
|
- "ios_flutter": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCodeFlutter-iOS",
|
|
|
- "ios_ionic": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCodeIonic-iOS",
|
|
|
- "ios_react": "/Users/maronakins/Documents/EmbedFeatures/NexilisSampleCodeReact-iOS"
|
|
|
+ "android": base_directory + "/EmbedFeatures/NexilisSampleCode",
|
|
|
+ "android_flutter": base_directory + "/EmbedFeatures/NexilisSampleCodeFlutter-Android",
|
|
|
+ "android_ionic": base_directory + "/EmbedFeatures/NexilisSampleCodeIonic-Android",
|
|
|
+ "android_react": base_directory + "/EmbedFeatures/NexilisSampleCodeReact-Android",
|
|
|
+ "ios": base_directory + "/EmbedFeatures/NexilisSampleCode-iOS",
|
|
|
+ "ios_flutter": base_directory + "/EmbedFeatures/NexilisSampleCodeFlutter-iOS",
|
|
|
+ "ios_ionic": base_directory + "/EmbedFeatures/NexilisSampleCodeIonic-iOS",
|
|
|
+ "ios_react": base_directory + "/EmbedFeatures/NexilisSampleCodeReact-iOS"
|
|
|
}
|
|
|
-app.temp_folder = "/Users/maronakins/Documents/EmbedFeatures/BuildExample"
|
|
|
-app.zip_folder = "/Users/maronakins/Documents/EmbedFeatures/uploads"
|
|
|
-# app.ssl = ('/usr/src/app/ssl/STAR_newuniverse_io.crt', '/usr/src/app/ssl/STAR_newuniverse.io.key')
|
|
|
+app.temp_folder = base_directory + "/EmbedFeatures/BuildExample"
|
|
|
+app.zip_folder = base_directory + "/EmbedFeatures/uploads"
|
|
|
+# app.ssl = ('/usr/src/app/ssl/STAR_newuniverse_io.crt', '/usr/src/app/ssl/STAR_nexilis.key')
|
|
|
app.ssl = None
|
|
|
app.verbose = True
|
|
|
|
|
@@ -597,7 +599,7 @@ def change(platform: str, mode: str, path_dest: str, features: dict, security: d
|
|
|
f.write(line)
|
|
|
elif platform == "android_ionic":
|
|
|
main_act_path = os.path.join(path_dest,"src/app/app.component.ts")
|
|
|
- main_act_android = os.path.join(path_dest, "android/app/src/main/java/com/example/paliolitesamplecodeionic/MainActivity.java")
|
|
|
+ main_act_android = os.path.join(path_dest, "android/app/src/main/java/com/example/nexilissamplecodeionic/MainActivity.java")
|
|
|
with open(main_act_path, "r") as f:
|
|
|
lines = f.readlines()
|
|
|
with open(main_act_path, "w") as f:
|