update
This commit is contained in:
parent
1e61409501
commit
2679f31c4e
@ -78,7 +78,7 @@ final class AppUpdateChecker: ObservableObject {
|
|||||||
private func fetchRemoteConfig() async {
|
private func fetchRemoteConfig() async {
|
||||||
guard
|
guard
|
||||||
let buildType = AppConfig.APP_BUILD.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed),
|
let buildType = AppConfig.APP_BUILD.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed),
|
||||||
let url = URL(string: "https://static.yobble.org/config/ios/dev2-\(buildType).json")
|
let url = URL(string: "https://static.yobble.org/config/ios/\(buildType).json")
|
||||||
else {
|
else {
|
||||||
log("Unable to build remote config URL")
|
log("Unable to build remote config URL")
|
||||||
return
|
return
|
||||||
@ -117,8 +117,8 @@ final class AppUpdateChecker: ObservableObject {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
print("buildNumber", buildNumber)
|
// print("buildNumber", buildNumber)
|
||||||
print("config", config.notSupportedBuild, config.minSupportedBuild, config.recommendedBuild)
|
// print("config", config.notSupportedBuild, config.minSupportedBuild, config.recommendedBuild)
|
||||||
|
|
||||||
let requiresNeedUpdate = buildNumber <= config.notSupportedBuild
|
let requiresNeedUpdate = buildNumber <= config.notSupportedBuild
|
||||||
if requiresNeedUpdate {
|
if requiresNeedUpdate {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user