File tree Expand file tree Collapse file tree
Application/Presentation/ProfileTab/Sources/Settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,17 +34,19 @@ struct SettingsFeature {
3434 var loading = LoadingFeature . State ( )
3535 var alertType : Action . AlertType ?
3636 var appVersion = Self . appVersion ( )
37- var betaTestURL = Self . betaTestURL ( )
37+ var betaTestURL = Self . betaTestURL (
38+ databaseID: Bundle . main. object ( forInfoDictionaryKey: " FIRESTORE_DATABASE_ID " ) as? String ,
39+ testFlightURL: Bundle . main. object ( forInfoDictionaryKey: " TESTFLIGHT_URL " ) as? String
40+ )
3841 var policyURL = Bundle . main. object ( forInfoDictionaryKey: " PRIVACY_POLICY_URL " ) as? String
3942
4043 var isLoading : Bool {
4144 loading. isLoading
4245 }
4346
44- private static func betaTestURL( ) -> URL ? {
45- let databaseID = Bundle . main. object ( forInfoDictionaryKey: " FIRESTORE_DATABASE_ID " ) as? String
47+ static func betaTestURL( databaseID: String ? , testFlightURL: String ? ) -> URL ? {
4648 guard databaseID? . trimmingCharacters ( in: . whitespacesAndNewlines) == " prod " ,
47- let rawValue = Bundle . main . object ( forInfoDictionaryKey : " TESTFLIGHT_URL " ) as? String else {
49+ let rawValue = testFlightURL else {
4850 return nil
4951 }
5052
You can’t perform that action at this time.
0 commit comments