Skip to content

Commit a76c406

Browse files
committed
ui
1 parent d7a00b9 commit a76c406

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.DS_Store

0 Bytes
Binary file not shown.

ProjectConfig/.DS_Store

0 Bytes
Binary file not shown.

ProjectConfig/CmdDefault/.DS_Store

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

ProjectConfig/Script/AppInfo/AppInfo.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,7 @@ def replaceGoogleServiceFile(self,filepath,fileoutput, package):
198198
strfile = self.replaceString2(strfile, strStart, strMid, strEnd, package)
199199
self.saveString2File(strfile, fileoutput)
200200

201-
def replaceXcodeUrlScheme(self,filePath, fileOutPut,src, appid,idx):
202-
strFile = FileUtil.GetFileString(filePath)
203-
201+
def replaceXcodeUrlScheme(self,strFile,src, appid,idx):
204202
# <string>WEIXIN_APPID</string>
205203
if src==Source.WEIXIN or src==Source.WEIXINFRIEND:
206204
strOld = "<string>WEIXIN_APPID</string>"
@@ -214,8 +212,9 @@ def replaceXcodeUrlScheme(self,filePath, fileOutPut,src, appid,idx):
214212

215213
strNew = "<string>"+mainConfig.XcodeUrlScheme(src,appid,idx)+"</string>"
216214

217-
strOut = strFile.replace(strOld, strNew)
218-
self.saveString2File(strOut,fileOutPut)
215+
return strFile.replace(strOld, strNew)
216+
# print("strOld =",strOld,"strNew =",strNew,"strOut =",strOut)
217+
219218

220219

221220

@@ -796,16 +795,17 @@ def CopyAppInfo(self,isHd,chanel=""):
796795
# CFBundleURLSchemes
797796
src = Source.WEIBO
798797
appid = mainConfig.GetShareAppId(src,Source.IOS,isHd)
799-
self.replaceXcodeUrlScheme(file_info_plist_ios,file_info_plist_ios_xcode,src,appid,0)
798+
print("ios WEIBO:"+appid)
799+
strfile =self.replaceXcodeUrlScheme(strfile,src,appid,0)
800800

801801
src = Source.WEIXIN
802802
appid = mainConfig.GetShareAppId(src,Source.IOS,isHd)
803-
self.replaceXcodeUrlScheme(file_info_plist_ios,file_info_plist_ios_xcode,src,appid,0)
803+
strfile =self.replaceXcodeUrlScheme(strfile,src,appid,0)
804804

805805
src = Source.QQ
806806
appid = mainConfig.GetShareAppId(src,Source.IOS,isHd)
807-
self.replaceXcodeUrlScheme(file_info_plist_ios,file_info_plist_ios_xcode,src,appid,0)
808-
self.replaceXcodeUrlScheme(file_info_plist_ios,file_info_plist_ios_xcode,src,appid,1)
807+
strfile =self.replaceXcodeUrlScheme(strfile,src,appid,0)
808+
strfile =self.replaceXcodeUrlScheme(strfile,src,appid,1)
809809

810810
FileUtil.SaveString2File(strfile,file_info_plist_ios_xcode)
811811

-49 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)