Explorar el Código

update pod install

kevin hace 3 años
padre
commit
4657f08ce5
Se han modificado 2 ficheros con 9 adiciones y 5 borrados
  1. 4 0
      appbuilder-ios/AppBuilder/AppBuilder/ViewController.swift
  2. 5 5
      src/mainIOS.py

+ 4 - 0
appbuilder-ios/AppBuilder/AppBuilder/ViewController.swift

@@ -142,6 +142,10 @@ class ViewController: UITabBarController, UITabBarControllerDelegate {
         let numberOfItems = CGFloat(tabBar.items!.count)
         let tabBarItemSize = CGSize(width: tabBar.frame.width / numberOfItems, height: tabBar.frame.height)
         tabBar.selectionIndicatorImage = UIImage.imageWithColor(color: UIColor.grayColor, size: tabBarItemSize).resizableImage(withCapInsets: .zero)
+        if Bundle.main.displayName == "DigiNetS" {
+            tabBar.barTintColor = .darkGray
+            tabBar.selectionIndicatorImage = UIImage.imageWithColor(color: UIColor.gray, size: tabBarItemSize).resizableImage(withCapInsets: .zero)
+        }
         UIFont.overrideInitialize()
     }
     

+ 5 - 5
src/mainIOS.py

@@ -78,7 +78,7 @@ def change_name(path_dest, app_name, package_id):
     xcproj = os.path.join(path_dest, "{}.xcodeproj".format(app_name))
     xcwork = os.path.join(path_dest, "{}.xcworkspace".format(app_name))
     shutil.move(os.path.join(path_dest, "AppBuilder.xcodeproj"), xcproj)
-    shutil.move(os.path.join(path_dest, "AppBuilder.xcworkspace"), xcwork)
+    # shutil.move(os.path.join(path_dest, "AppBuilder.xcworkspace"), xcwork)
     xcshareddata = os.path.join(xcproj, "xcshareddata/xcschemes", "{}.xcscheme".format(app_name))
     shutil.move(os.path.join(xcproj, "xcshareddata/xcschemes", "AppBuilder.xcscheme"), xcshareddata)
     podfile = os.path.join(path_dest, "Podfile")
@@ -121,14 +121,14 @@ def change_name(path_dest, app_name, package_id):
             f.write(replaced)
     except FileNotFoundError:
         pass
+    os.chdir(path_dest)
+    subprocess.run(["pod", "install"])
     contentsw = os.path.join(xcwork, "contents.xcworkspacedata")
     with open(contentsw, "r") as f:
         file_source = f.read()
     replaced = file_source.replace("AppBuilder", app_name)
     with open(contentsw, "w") as f:
         f.write(replaced)
-    os.chdir(path_dest)
-    subprocess.run(["pod", "install"])
 
 
 def change_certificate(path_dest, key, keystore, keytool):
@@ -278,8 +278,8 @@ def change_background(c_code_path, background):
 
 
 def change_fb(lib_dest, fb_icon):
-    default_fb_icon = ["pb_button_chat", "pb_button_call", "pb_button_cc", "pb_button_stream"]
-    for i in range(4):
+    default_fb_icon = ["pb_button_chat", "pb_button_call", "pb_button_cc", "pb_button_post", "pb_button_stream"]
+    for i in range(5):
         if not fb_icon[i]:
             continue
         img_path = "NexilisLite/Resource/Assets.xcassets"