فهرست منبع

update 5.0.1 and add count like in viewer streaming

alqindiirsyam 6 ماه پیش
والد
کامیت
559c2f49ec

+ 4 - 4
AppBuilder/AppBuilder.xcodeproj/project.pbxproj

@@ -527,7 +527,7 @@
 				BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 4;
+				CURRENT_PROJECT_VERSION = 5;
 				DEVELOPMENT_TEAM = TS9C3K7699;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
@@ -540,7 +540,7 @@
 					"$(inherited)",
 					"@executable_path/Frameworks",
 				);
-				MARKETING_VERSION = 4.0.7;
+				MARKETING_VERSION = 5.0.1;
 				PRODUCT_BUNDLE_IDENTIFIER = io.newuniverse.AppBuilder2;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE_SPECIFIER = "";
@@ -559,7 +559,7 @@
 				BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
 				CODE_SIGN_IDENTITY = "Apple Development";
 				CODE_SIGN_STYLE = Automatic;
-				CURRENT_PROJECT_VERSION = 4;
+				CURRENT_PROJECT_VERSION = 5;
 				DEVELOPMENT_TEAM = TS9C3K7699;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
@@ -572,7 +572,7 @@
 					"$(inherited)",
 					"@executable_path/Frameworks",
 				);
-				MARKETING_VERSION = 4.0.7;
+				MARKETING_VERSION = 5.0.1;
 				PRODUCT_BUNDLE_IDENTIFIER = io.newuniverse.AppBuilder2;
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				PROVISIONING_PROFILE_SPECIFIER = "";

+ 1 - 1
AppBuilder/AppBuilder/AppDelegate.swift

@@ -17,7 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
             showButton = true
         }
         Nexilis.isShowForceSignIn = false
-        APIS.connect(appName: Bundle.main.infoDictionary?["CFBundleName"] as! String , apiKey: "***REPLACE***WITH***YOUR***ACCOUNT***", delegate: self, showButton: showButton, fromMAB: true) //23091CF494A11149F5A8FC8D17FF690DC69AE656F91B86070A11506ED24144F5(BPKH) //38747683290F62E9667A018F490396EAE47BC16ADECD85B7E865C733E6DBD6A2(OneApp)
+        APIS.connect(appName: "OneApp" , apiKey: "38747683290F62E9667A018F490396EAE47BC16ADECD85B7E865C733E6DBD6A2", delegate: self, showButton: showButton, fromMAB: true) //23091CF494A11149F5A8FC8D17FF690DC69AE656F91B86070A11506ED24144F5(BPKH) //38747683290F62E9667A018F490396EAE47BC16ADECD85B7E865C733E6DBD6A2(OneApp)
         registerForPushNotifications()
         return true
     }

+ 1 - 1
AppBuilder/AppBuilder/PrefsUtil.swift

@@ -14,7 +14,7 @@ class PrefsUtil {
     static let CPAAS_MODE_DOCKED = 1
     static let CPAAS_MODE_BURGER = 2
     static let CPAAS_MODE_MIX = 4
-    static let DEFAULT_CPAAS_MODE = CPAAS_MODE_DOCKED
+    static let DEFAULT_CPAAS_MODE = CPAAS_MODE_FLOATING
     
     static func getCpaasMode() -> Int {
         let mode: Int! = SecureUserDefaults.shared.value(forKey: "cpaas_mode") ?? 0

+ 3 - 5
NexilisLite/NexilisLite/Source/View/Streaming/QmeraStreamingViewController.swift

@@ -207,8 +207,8 @@ class QmeraStreamingViewController: UIViewController {
         view.addSubview(stack)
         view.addLayoutGuide(keyboardLayoutGuide)
         
+        addLikeView()
         if isLive {
-            addLikeView()
             addCountViewerView()
         }
         
@@ -674,10 +674,8 @@ extension QmeraStreamingViewController: LiveStreamingDelegate {
         } else if state == 94 { // like
             let m = message.split(separator: ",", omittingEmptySubsequences: false)
             let countLike = m[2].trimmingCharacters(in: .whitespaces)
-            if isLive {
-                DispatchQueue.main.async {
-                    self.count.text = countLike
-                }
+            DispatchQueue.main.async {
+                self.count.text = countLike
             }
             
         } else if state == 95 { // chat