Flutter Android
Add new app into Appfigurate Emulator.
Run Appfigurate in the Android Emulator.
Tap ≡
Add app
.
Select app type Android
.
Enter the URL scheme quickstart
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.
Tap Add app
.
Create nz.co.electricbolt.appfiguratelibrary.Configuration subclass
In your app, add a Kotlin class called Configuration.kt
Paste the Kotlin implementation file output to the Console in Output source code snippets.
Note: your public key output to the Console in Output source code snippets will be different to the public key in the following example.
Edit Android.xml manifest
Paste the meta-data
and provider
into your app's AndroidMainfest.xml
that were output to the console in Output source code snippets.
Test your configuration
To test that you've successfully updated your Android app to use Appfigurate:
Compile and run Quickstart
to the same Emulator instance that Appfigurate Emulator was run from previously.
Tap the Appfigurate app icon.
Tap the Quickstart
row. Appfigurate will read the configuration from the Quickstart
app.
Appfigurate will now display the following screen:
Since we added a @BooleanProperty
for debugLogging
and @StringPropertyListEdit
for serverURL
, you can now change these configuration items at runtime. Tap Apply⌄
to apply the configuration to the Quickstart
app.
Now jump to Supported property types.
Last updated