public static void BuildMiInstallPackage(bool fullPackage = true) { SetLauncherIconSetting(new string[] { "Assets/SDKIcon/gfan/ic_launcher144.png", "Assets/SDKIcon/gfan/ic_launcher72.png", "Assets/SDKIcon/gfan/ic_launcher48.png", "Assets/SDKIcon/gfan/ic_launcher48.png", }); string platform = PlatformMi; string suffix = GetBundleIdentifierSplitChar() + platform; RecordChannel2Resouces(platform); CleanupBundleIdentifier(); PlayerSettings.applicationIdentifier += suffix; #if UNITY_ANDROID ModifyManifestPackageName(BuildAndroid.ManifestEntryPackageName + suffix); if (fullPackage) { // tzz added for preprocessing for build full apk // change AndroidMenifest file and copy the base jar file to right folder BuildAndroid.PreProcessToBuildFullApk(); BuildAndroidPackage(platform); } else { BuildAndroid.BuildSplitGame(BuildAndroid.GetCombineApkName(platform)); } #elif UNITY_IPHONE #endif }
public static string BuildGfanInstallPackage(bool fullPackage = true, string subChannel = "") { SetLauncherIconSetting(new string[] { #if UNITY_ANDROID "Assets/SDKIcon/gfan/ic_launcher144.png", "Assets/SDKIcon/gfan/ic_launcher72.png", "Assets/SDKIcon/gfan/ic_launcher48.png", "Assets/SDKIcon/gfan/ic_launcher48.png", #elif UNITY_IPHONE "Assets/SDKIcon/gfan/ic_launcher57.png", "Assets/SDKIcon/gfan/ic_launcher114.png", "Assets/SDKIcon/gfan/ic_launcher72.png", "Assets/SDKIcon/gfan/ic_launcher144.png", #endif }); string path = ""; string platform = PlatformGfan; string suffix = GetBundleIdentifierSplitChar() + platform; RecordChannel2Resouces(platform + subChannel); CleanupBundleIdentifier(); // PlayerSettings.bundleIdentifier += suffix; #if UNITY_ANDROID // modify the manifest.xml file ModifyManifestPackageName(BuildAndroid.ManifestEntryPackageName); if (fullPackage) { // tzz added for preprocessing for build full apk // change AndroidMenifest file and copy the base jar file to right folder BuildAndroid.PreProcessToBuildFullApk(); path = BuildAndroidPackage(platform); } else { BuildAndroid.BuildSplitGame(BuildAndroid.GetCombineApkName(platform)); } #elif UNITY_IPHONE BuildXcodeProject("GfanSDK"); #endif return(path); }
static void BuildWPayInstallPackage(string subChannnelID, bool fullPackage = true) { SetLauncherIconSetting(new string[] { #if UNITY_ANDROID "Assets/SDKIcon/wpay/ic_launcher144.png", "Assets/SDKIcon/wpay/ic_launcher72.png", "Assets/SDKIcon/wpay/ic_launcher48.png", "Assets/SDKIcon/wpay/ic_launcher48.png", #elif UNITY_IPHONE "Assets/SDKIcon/91/ic_launcher57.png", "Assets/SDKIcon/91/ic_launcher114.png", "Assets/SDKIcon/91/ic_launcher72.png", "Assets/SDKIcon/91/ic_launcher144.png", #endif }); string platform = PlatformWPay; string suffix = GetBundleIdentifierSplitChar() + platform; RecordChannel2Resouces(platform); RecordSubChannel2Resouces(subChannnelID); CleanupBundleIdentifier(); PlayerSettings.applicationIdentifier += suffix; #if UNITY_ANDROID ModifyManifestPackageName(BuildAndroid.ManifestEntryPackageName + suffix); if (fullPackage) { // tzz added for preprocessing for build full apk // change AndroidMenifest file and copy the base jar file to right folder BuildAndroid.PreProcessToBuildFullApk(); BuildAndroidPackage(platform, subChannnelID); } else { BuildAndroid.BuildSplitGame(BuildAndroid.GetCombineApkName(platform)); } #elif UNITY_IPHONE BuildXcodeProject("ND91SDK"); #endif }