Flutter iOS
Last updated
Last updated
Run Appfigurate in the iOS Simulator.
Tap ≡
Add app
.
Select app type iOS
.
Enter a URL scheme that will be used by Appfigurate to launch your app in order to read or apply configuration. The URL scheme must be 4-64 ASCII characters in length and must be unique to your app. e.g. YOUR-APP-URLSCHEME
Tap Add app
.
In Appfiguate Simulator app, under the SWIFT/IOS LIBRARY INTEGRATION
section:
Tap Output implementation
then tap Clipboard
.
In Xcode, add a new Swift class, subclassing . e.g. Configuration
In your apps Configuration.swift
file, paste the implementation file in the clipboard from the section above.
Swift Configuration example
Info.plist
example
If you already have an existing CFBundleURLTypes
array in your Info.plist
file, then insert just the <dict> ... </dict>
portion.
To test that you've successfully updated your app to use Appfigurate:
Compile and run your app to the Simulator instance.
Launch the Appfigurate Simulator app.
Tap your applications row. The app will be run and made visible, it's configuration read, and then swap back to Appfigurate.
The function with C calling convention must be implemented in your app otherwise a linker error will be issued. The recommended place to implement is at the bottom of your subclass.
In your apps Info.plist
file (right click, Open As ‣ Source Code) include the following. Replace the text YOUR-APP-URLSCHEME
with your own app's URL Scheme - the same value you added in the section above.
Appfigurate's screen will now be displayed. You can now change the debugLogging
and serverURL
properties. Tap Apply⌄
to apply the configuration to your app.
Now jump to .