flutter-managed-configuration
mway-io/flutter-managed-configuration open-source repository details.
- 星標
- 3
- 分支
- 22
- 最近推送(UTC)
- 2026年6月20日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
managed_configurations
Plugin to support managed app configuration provided by a Mobile device management (MDM)
Allows to read out Managed App Configuration. Provides a method and a stream which calls on managed app configuration changes.
Additional Information
Android:
https://developer.android.com/work/managed-configurations
How to Test
It could be that you need to factory reset your android device before installing TestDPC for testing.
- https://github.com/googlesamples/android-testdpc
- https://developer.android.com/work/guide#testing
iOS/macOS
https://developer.apple.com/documentation/foundation/nsuserdefaults#2926901
How to Test
Apple does not provide a dev environment to test managed app configuration so you will need to use one of the available MDM provider. This package was created to work with Relution. You can create a free Account and enroll up to 5 devices to test your implementation.
For more information check out the documentation of the used MDM provider how to add managed app configuration to your app.
How to use
To get managed app configuration call:
final managedConfig = ManagedConfigurations();
final managedAppConfig = await managedConfig.getManagedConfigurations;
To listen for managed app config changes subscribe to the stream:
...
managedConfig.mangedConfigurationsStream.listen((managedAppConfig){
print(managedAppConfig);
});
(Android) Report state with KeyedAppStatesReporter
For more info please checkout Android doc: https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/KeyedAppStatesReporter
...
managedConfig.reportKeyedAppStates("key", Severity.SEVERITY_INFO, "message","data");
使用的依賴
依賴清單 4 項
- flutter
{"sdk":"flutter"} - plugin_platform_interface
^2.0.2 - flutter_test開發依賴
{"sdk":"flutter"} - lints開發依賴
^2.1.1
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗