Add 32 bit iOS support

This commit is contained in:
Ethan O'Brien 2024-09-02 14:38:12 -05:00
parent f07e0b75a3
commit 5332f60277
6 changed files with 353 additions and 6 deletions

View File

@ -18,7 +18,7 @@ async function patch(file, android, newDomain, patches) {
await zip.loadAsync(file);
update_status("Getting current config");
let basePath = android ? "" : "Payload/LoveLive.app/ProjectResources/";
let basePath = android ? "" : "Payload/LoveLive.app/";
let server_file;
if (android) {
let server_info = await zip.file("assets/AppAssets.zip").async("arraybuffer");

View File

@ -8,7 +8,7 @@
"files": [
{
"path": "patches/english/language.lua",
"outpath": "common/language.lua"
"outpath": "ProjectResources/common/language.lua"
}
]
},
@ -21,7 +21,7 @@
"files": [
{
"path": "patches/serial_code/model.lua",
"outpath": "m_menu/model.lua"
"outpath": "ProjectResources/m_menu/model.lua"
}
]
},
@ -34,15 +34,40 @@
"files": [
{
"path": "patches/restore_title_screen_song/assets/sound/login/startup_aq_1.mp3",
"outpath": "assets/sound/login/startup_aq_1.mp3"
"outpath": "ProjectResources/assets/sound/login/startup_aq_1.mp3"
},
{
"path": "patches/restore_title_screen_song/assets/sound/login/startup_mu_1.mp3",
"outpath": "assets/sound/login/startup_mu_1.mp3"
"outpath": "ProjectResources/assets/sound/login/startup_mu_1.mp3"
},
{
"path": "patches/restore_title_screen_song/m_login/start.lua",
"outpath": "m_login/start.lua"
"outpath": "ProjectResources/m_login/start.lua"
}
]
},
{
"id": "32_bit_ios",
"description": "Use 32 bit binary (iOS 10 and older)",
"android": false,
"ios": true,
"checked": false,
"files": [
{
"path": "patches/32_bit_ios/Info.plist",
"outpath": "Info.plist"
},
{
"path": "patches/32_bit_ios/LoveLive",
"outpath": "LoveLive"
},
{
"path": "patches/32_bit_ios/PaymentConfig.xcconfig",
"outpath": "PaymentConfig.xcconfig"
},
{
"path": "patches/32_bit_ios/ProductConfig.xcconfig",
"outpath": "ProductConfig.xcconfig"
}
]
}

View File

@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSUserTrackingUsageDescription</key>
<string>Your data will be used to deliver ads tailored for you.</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>UIRequiresFullScreen</key>
<true/>
<key>DTPlatformVersion</key>
<string>15.2</string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>CFBundleName</key>
<string>LoveLive</string>
<key>DTSDKName</key>
<string>iphoneos15.2</string>
<key>FIREBASE_ANALYTICS_COLLECTION_ENABLED</key>
<false/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-9676127324675532~6059138204</string>
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon20x20</string>
<string>AppIcon29x29</string>
<string>AppIcon40x40</string>
<string>AppIcon60x60</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>jp.klab.lovelive-en</string>
<key>CFBundleURLSchemes</key>
<array>
<string>lovelive-en-klab</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>jp.klab.lovelive-en</string>
<key>CFBundleURLSchemes</key>
<array>
<string>foxloveliveen</string>
</array>
</dict>
</array>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>CFBundleDisplayName</key>
<string>LoveLive</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSLocationWhenInUseUsageDescription</key>
<string>your current location is required to access certain funtions of the application</string>
<key>smrtbeat_api_key</key>
<string>8dd195d1-254c-4860-a57d-ab8740cef1c0</string>
<key>appsFlyer_dev_key</key>
<string>Z8X73UaN5jntwk2U7oua3L</string>
<key>DTSDKBuild</key>
<string>19C51</string>
<key>CFBundleShortVersionString</key>
<string>9.11</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>BuildMachineOSBuild</key>
<string>20G224</string>
<key>DTPlatformBuild</key>
<string>19C51</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>Ad_Unit_ID</key>
<string>ca-app-pub-9676127324675532/5519888631</string>
<key>CFBundleDevelopmentRegion</key>
<string>ja_JP</string>
<key>DTXcodeBuild</key>
<string>13C100</string>
<key>CFBundleVersion</key>
<string>9.11.32</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<key>UIPrerenderedIcon</key>
<true/>
<key>UIStatusBarHidden</key>
<true/>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
<integer>2</integer>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>CFBundleIdentifier</key>
<string>jp.klab.lovelive-en</string>
<key>CFBundleIconFiles</key>
<array/>
<key>appsFlyer_app_id</key>
<string>834030294</string>
<key>DTXcode</key>
<string>1321</string>
<key>CFBundleExecutable</key>
<string>LoveLive</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleIcons~ipad</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>AppIcon20x20</string>
<string>AppIcon29x29</string>
<string>AppIcon40x40</string>
<string>AppIcon60x60</string>
<string>AppIcon76x76</string>
<string>AppIcon83.5x83.5</string>
</array>
<key>CFBundleIconName</key>
<string>AppIcon</string>
</dict>
</dict>
<key>CFBundleSignature</key>
<string>????</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>SKAdNetworkItems</key>
<array>
<dict>
<key>SKAdNetworkIdentifier</key>
<string>cstr6suwn9.skadnetwork</string>
</dict>
</array>
<key>DTAppStoreToolsBuild</key>
<string>13E500</string>
<key>UISupportedDevices</key>
<array>
<string>iPhone4,1</string>
<string>iPhone5,1</string>
<string>iPhone5,2</string>
<string>iPhone5,3</string>
<string>iPhone5,4</string>
<string>iPod5,1</string>
</array>
</dict>
</plist>

BIN
patches/32_bit_ios/LoveLive Normal file

Binary file not shown.

View File

@ -0,0 +1,72 @@
//
// PaymentConfig.xcconfig
// LoveliveProduct
//
// Created by xu-x on 2019/04/22.
//
// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974
// Bundle
PRODUCT_BUNDLE_IDENTIFIER = jp.klab.lovelive-en
PRODUCT_NAME = LoveLive
// Provisioning
PROVISIONING_PROFILE_SPECIFIER = Lovelive EN Dev
PROVISIONING_PROFILE = 9f7bc955-4271-4098-a13d-5c0007a6fcc1
PROVISIONING_PROFILE[sdk=iphoneos*] = 9f7bc955-4271-4098-a13d-5c0007a6fcc1
DEVELOPMENT_TEAM = PH7T7DHD79 // KLab Inc.
CODE_SIGN_IDENTITY = iPhone Developer: asato iijima (RQ45AK3JJ5)
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Developer: asato iijima (RQ45AK3JJ5)
CODE_SIGN_ENTITLEMENTS = LoveliveProduct/LoveliveProduct.entitlements
// Build
SDKROOT = iphoneos
MACH_O_TYPE = mh_execute
ONLY_ACTIVE_ARCH = NO
TARGETED_DEVICE_FAMILY = 1,2
IPHONEOS_DEPLOYMENT_TARGET = 9.0
VALIDATE_PRODUCT = YES
ENABLE_BITCODE = NO
GENERATE_PKGINFO_FILE = YES
WRAPPER_EXTENSION = app
ALWAYS_SEARCH_USER_PATHS = NO
GCC_C_LANGUAGE_STANDARD = gnu99
ENABLE_STRICT_OBJC_MSGSEND = YES
CLANG_WARN_EMPTY_BODY = YES
CLANG_WARN_BOOL_CONVERSION = YES
CLANG_WARN_CONSTANT_CONVERSION = YES
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
CLANG_WARN_ENUM_CONVERSION = YES
CLANG_WARN_INT_CONVERSION = YES
GCC_WARN_ABOUT_RETURN_TYPE = YES
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
GCC_WARN_UNINITIALIZED_AUTOS = YES
CLANG_WARN_UNREACHABLE_CODE = YES
GCC_WARN_UNUSED_FUNCTION = YES
GCC_WARN_UNUSED_VARIABLE = YES
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
GCC_WARN_UNDECLARED_SELECTOR = YES
//GCC_VERSION = com.apple.compilers.llvm.clang.1_0
GCC_PRECOMPILE_PREFIX_HEADER = YES
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) OPENGL2 FT2_BUILD_LIBRARY ONLY_C PNG_ARM_NEON_OPT=0 SUBTHREAD_UNZIP=1 DEBUG_ASSERT_OFF USE_EXTERNAL_SDK DEBUG_PRINT_OFF SEND_APPSFLYER_EVENT USING_RECORD_LUA_PATH USE_LUA_HASH_CHECK GAME_LOVE_LIVE_GL
OTHER_CFLAGS = -DNS_BLOCK_ASSERTIONS=1
OTHER_LDFLAGS = -ObjC
GCC_OPTIMIZATION_LEVEL = s
// Debug Symbols
DEPLOYMENT_POSTPROCESSING = NO // "NO" means contained something like debug-info
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
COPY_PHASE_STRIP = YES // DO strip debug symbols
// Path
INSTALL_PATH = $(LOCAL_APPS_DIR)
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
INFOPLIST_FILE = LoveliveProduct/LoveliveProduct-Info.plist
GCC_PREFIX_HEADER = Resources/Lovelive-Prefix.pch
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../include" "$(SRCROOT)/../../../../Engine/porting/iOS/libfreetype2/include" "$(SRCROOT)/../../../../Engine/porting/iOS/Chipmunk2D/include" "$(SRCROOT)/../../../../Engine/libs/spine-c/include"
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../../Extensions/SmartBeat/porting/iOS" "$(SRCROOT)/../../../../Extensions/Firebase/porting/iOS" "$(SRCROOT)/../../../../Extensions/AppsFlyer/porting/iOS"
LIBRARY_SEARCH_PATHS = $(inherited) $(SRCROOT) "$(SRCROOT)/ExternalSDK" "$(SRCROOT)/../../../../Engine/porting/iOS/curl/ios-dev/lib" "$(SRCROOT)/../../../../Engine/porting/iOS/libfreetype2" "$(SRCROOT)/../../../../Engine/porting/iOS/Chipmunk2D"
FRAMEWORK_SEARCH_PATHS = $(inherited) $(SRCROOT) "$(SRCROOT)/../../" "$(SRCROOT)/../../../../Extensions/SmartBeat/porting/iOS/Frameworks" "$(SRCROOT)/../../../../Extensions/Firebase/porting/iOS/Frameworks" "$(SRCROOT)/../../../../Extensions/AppsFlyer/porting/iOS/Frameworks"

View File

@ -0,0 +1,73 @@
//
// ProductConfig.xcconfig
// Lovelive
//
// Created by xu-x on 2019/04/22.
//
// Configuration settings file format documentation can be found at:
// https://help.apple.com/xcode/#/dev745c5c974
// Bundle
PRODUCT_BUNDLE_IDENTIFIER = jp.klab.lovelive-en
PRODUCT_NAME = LoveLive
// Provisioning
PROVISIONING_PROFILE_SPECIFIER = Lovelive EN Dist
PROVISIONING_PROFILE = F07D8A12-D2A7-461B-B3AB-EEDE76F4D606
PROVISIONING_PROFILE[sdk=iphoneos*] = F07D8A12-D2A7-461B-B3AB-EEDE76F4D606
DEVELOPMENT_TEAM = PH7T7DHD79 // KLab Inc.
CODE_SIGN_IDENTITY = iPhone Distribution: KLab Inc. (PH7T7DHD79)
CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution: KLab Inc. (PH7T7DHD79)
CODE_SIGN_ENTITLEMENTS = Lovelive/Lovelive.entitlements
// Build
SDKROOT = iphoneos
MACH_O_TYPE = mh_execute
ONLY_ACTIVE_ARCH = NO
TARGETED_DEVICE_FAMILY = 1,2
IPHONEOS_DEPLOYMENT_TARGET = 9.0
VALIDATE_PRODUCT = YES
ENABLE_BITCODE = NO
GENERATE_PKGINFO_FILE = YES
WRAPPER_EXTENSION = app
ALWAYS_SEARCH_USER_PATHS = NO
GCC_C_LANGUAGE_STANDARD = gnu99
ENABLE_STRICT_OBJC_MSGSEND = YES
CLANG_WARN_EMPTY_BODY = YES
CLANG_WARN_BOOL_CONVERSION = YES
CLANG_WARN_CONSTANT_CONVERSION = YES
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
CLANG_WARN_ENUM_CONVERSION = YES
CLANG_WARN_INT_CONVERSION = YES
GCC_WARN_ABOUT_RETURN_TYPE = YES
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
GCC_WARN_UNINITIALIZED_AUTOS = YES
CLANG_WARN_UNREACHABLE_CODE = YES
GCC_WARN_UNUSED_FUNCTION = YES
GCC_WARN_UNUSED_VARIABLE = YES
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
GCC_WARN_UNDECLARED_SELECTOR = YES
//GCC_VERSION = com.apple.compilers.llvm.clang.1_0
GCC_PRECOMPILE_PREFIX_HEADER = YES
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) OPENGL2 FT2_BUILD_LIBRARY ONLY_C PNG_ARM_NEON_OPT=0 SUBTHREAD_UNZIP=1 DEBUG_ASSERT_OFF USE_EXTERNAL_SDK DEBUG_PRINT_OFF SEND_APPSFLYER_EVENT USING_RECORD_LUA_PATH USE_LUA_HASH_CHECK GAME_LOVE_LIVE_GL
OTHER_CFLAGS = -DNS_BLOCK_ASSERTIONS=1
OTHER_LDFLAGS = -ObjC
GCC_OPTIMIZATION_LEVEL = s
// Debug Symbols
DEPLOYMENT_POSTPROCESSING = YES // "YES" means not contained something like debug-info
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
COPY_PHASE_STRIP = YES // DO strip debug symbols
// Path
INSTALL_PATH = $(LOCAL_APPS_DIR)
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
INFOPLIST_FILE = LoveliveProduct/LoveliveProduct-Info.plist
GCC_PREFIX_HEADER = Resources/Lovelive-Prefix.pch
HEADER_SEARCH_PATHS = "$(SRCROOT)/../../include" "$(SRCROOT)/../../../../Engine/porting/iOS/libfreetype2/include" "$(SRCROOT)/../../../../Engine/porting/iOS/Chipmunk2D/include" "$(SRCROOT)/../../../../Engine/libs/spine-c/include"
USER_HEADER_SEARCH_PATHS = "$(SRCROOT)/../../../../Extensions/SmartBeat/porting/iOS" "$(SRCROOT)/../../../../Extensions/Firebase/porting/iOS" "$(SRCROOT)/../../../../Extensions/AppsFlyer/porting/iOS"
LIBRARY_SEARCH_PATHS = $(inherited) $(SRCROOT) "$(SRCROOT)/ExternalSDK" "$(SRCROOT)/../../../../Engine/porting/iOS/curl/ios-dev/lib" "$(SRCROOT)/../../../../Engine/porting/iOS/libfreetype2" "$(SRCROOT)/../../../../Engine/porting/iOS/Chipmunk2D"
FRAMEWORK_SEARCH_PATHS = $(inherited) $(SRCROOT) "$(SRCROOT)/../../" "$(SRCROOT)/../../../../Extensions/SmartBeat/porting/iOS/Frameworks" "$(SRCROOT)/../../../../Extensions/Firebase/porting/iOS/Frameworks" "$(SRCROOT)/../../../../Extensions/AppsFlyer/porting/iOS/Frameworks"