diff --git a/.cspell/app-words.txt b/.cspell/app-words.txt index 2485281..a2d6302 100644 --- a/.cspell/app-words.txt +++ b/.cspell/app-words.txt @@ -1 +1,2 @@ # App Specific Words +configurator diff --git a/.vscode/launch.json b/.vscode/launch.json index aebe640..48a4469 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,8 +5,8 @@ "version": "0.2.0", "configurations": [ { - "name": "flutterfire_remote_parameter_fetcher/example", - "cwd": "packages/flutterfire_remote_parameter_fetcher/example", + "name": "flutterfire_configurator/example", + "cwd": "packages/flutterfire_configurator/example", "request": "launch", "type": "dart", "flutterMode": "debug" diff --git a/packages/flutterfire_remote_parameter_fetcher/.gitignore b/packages/flutterfire_configurator/.gitignore similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/.gitignore rename to packages/flutterfire_configurator/.gitignore diff --git a/packages/flutterfire_remote_parameter_fetcher/.metadata b/packages/flutterfire_configurator/.metadata similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/.metadata rename to packages/flutterfire_configurator/.metadata diff --git a/packages/flutterfire_remote_parameter_fetcher/CHANGELOG.md b/packages/flutterfire_configurator/CHANGELOG.md similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/CHANGELOG.md rename to packages/flutterfire_configurator/CHANGELOG.md diff --git a/packages/flutterfire_remote_parameter_fetcher/README.md b/packages/flutterfire_configurator/README.md similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/README.md rename to packages/flutterfire_configurator/README.md diff --git a/packages/flutterfire_remote_parameter_fetcher/analysis_options.yaml b/packages/flutterfire_configurator/analysis_options.yaml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/analysis_options.yaml rename to packages/flutterfire_configurator/analysis_options.yaml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/.gitignore b/packages/flutterfire_configurator/example/.gitignore similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/.gitignore rename to packages/flutterfire_configurator/example/.gitignore diff --git a/packages/flutterfire_remote_parameter_fetcher/example/.metadata b/packages/flutterfire_configurator/example/.metadata similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/.metadata rename to packages/flutterfire_configurator/example/.metadata diff --git a/packages/flutterfire_configurator/example/README.md b/packages/flutterfire_configurator/example/README.md new file mode 100644 index 0000000..8467d0d --- /dev/null +++ b/packages/flutterfire_configurator/example/README.md @@ -0,0 +1,3 @@ +# FlutterFire Configurator example + +A new Flutter project. diff --git a/packages/flutterfire_remote_parameter_fetcher/example/analysis_options.yaml b/packages/flutterfire_configurator/example/analysis_options.yaml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/analysis_options.yaml rename to packages/flutterfire_configurator/example/analysis_options.yaml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/.gitignore b/packages/flutterfire_configurator/example/android/.gitignore similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/.gitignore rename to packages/flutterfire_configurator/example/android/.gitignore diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/build.gradle b/packages/flutterfire_configurator/example/android/app/build.gradle similarity index 92% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/build.gradle rename to packages/flutterfire_configurator/example/android/app/build.gradle index 633eca8..eeba70b 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/android/app/build.gradle +++ b/packages/flutterfire_configurator/example/android/app/build.gradle @@ -23,7 +23,7 @@ if (flutterVersionName == null) { } android { - namespace "jp.co.altive.flutterfireremoteparameterfetcher.example" + namespace "jp.co.altive.flutterfireconfigurator.example" compileSdkVersion flutter.compileSdkVersion ndkVersion flutter.ndkVersion @@ -42,7 +42,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "jp.co.altive.flutterfireremoteparameterfetcher.example" + applicationId "jp.co.altive.flutterfireconfigurator.example" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. minSdkVersion flutter.minSdkVersion diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/google-services.json b/packages/flutterfire_configurator/example/android/app/google-services.json similarity index 88% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/google-services.json rename to packages/flutterfire_configurator/example/android/app/google-services.json index 304dff6..ae283c1 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/android/app/google-services.json +++ b/packages/flutterfire_configurator/example/android/app/google-services.json @@ -9,7 +9,7 @@ "client_info": { "mobilesdk_app_id": "1:282061201204:android:86708a3c3a298e18b04f61", "android_client_info": { - "package_name": "jp.co.altive.flutterfireremoteparameterfetcher.example" + "package_name": "jp.co.altive.flutterfireconfigurator.example" } }, "oauth_client": [], diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/debug/AndroidManifest.xml b/packages/flutterfire_configurator/example/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/debug/AndroidManifest.xml rename to packages/flutterfire_configurator/example/android/app/src/debug/AndroidManifest.xml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/AndroidManifest.xml b/packages/flutterfire_configurator/example/android/app/src/main/AndroidManifest.xml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/AndroidManifest.xml rename to packages/flutterfire_configurator/example/android/app/src/main/AndroidManifest.xml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/kotlin/jp/co/altive/flutterfireremoteparameterfetcher/example/MainActivity.kt b/packages/flutterfire_configurator/example/android/app/src/main/kotlin/jp/co/altive/flutterfireremoteparameterfetcher/example/MainActivity.kt similarity index 60% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/kotlin/jp/co/altive/flutterfireremoteparameterfetcher/example/MainActivity.kt rename to packages/flutterfire_configurator/example/android/app/src/main/kotlin/jp/co/altive/flutterfireremoteparameterfetcher/example/MainActivity.kt index dc24365..82fad81 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/kotlin/jp/co/altive/flutterfireremoteparameterfetcher/example/MainActivity.kt +++ b/packages/flutterfire_configurator/example/android/app/src/main/kotlin/jp/co/altive/flutterfireremoteparameterfetcher/example/MainActivity.kt @@ -1,4 +1,4 @@ -package jp.co.altive.flutterfireremoteparameterfetcher.example +package jp.co.altive.flutterfireconfigurator.example import io.flutter.embedding.android.FlutterActivity diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/flutterfire_configurator/example/android/app/src/main/res/drawable-v21/launch_background.xml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/drawable-v21/launch_background.xml rename to packages/flutterfire_configurator/example/android/app/src/main/res/drawable-v21/launch_background.xml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/drawable/launch_background.xml b/packages/flutterfire_configurator/example/android/app/src/main/res/drawable/launch_background.xml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/drawable/launch_background.xml rename to packages/flutterfire_configurator/example/android/app/src/main/res/drawable/launch_background.xml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/values-night/styles.xml b/packages/flutterfire_configurator/example/android/app/src/main/res/values-night/styles.xml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/values-night/styles.xml rename to packages/flutterfire_configurator/example/android/app/src/main/res/values-night/styles.xml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/values/styles.xml b/packages/flutterfire_configurator/example/android/app/src/main/res/values/styles.xml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/main/res/values/styles.xml rename to packages/flutterfire_configurator/example/android/app/src/main/res/values/styles.xml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/app/src/profile/AndroidManifest.xml b/packages/flutterfire_configurator/example/android/app/src/profile/AndroidManifest.xml similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/app/src/profile/AndroidManifest.xml rename to packages/flutterfire_configurator/example/android/app/src/profile/AndroidManifest.xml diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/build.gradle b/packages/flutterfire_configurator/example/android/build.gradle similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/build.gradle rename to packages/flutterfire_configurator/example/android/build.gradle diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/gradle.properties b/packages/flutterfire_configurator/example/android/gradle.properties similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/gradle.properties rename to packages/flutterfire_configurator/example/android/gradle.properties diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/gradle/wrapper/gradle-wrapper.properties b/packages/flutterfire_configurator/example/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/gradle/wrapper/gradle-wrapper.properties rename to packages/flutterfire_configurator/example/android/gradle/wrapper/gradle-wrapper.properties diff --git a/packages/flutterfire_remote_parameter_fetcher/example/android/settings.gradle b/packages/flutterfire_configurator/example/android/settings.gradle similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/android/settings.gradle rename to packages/flutterfire_configurator/example/android/settings.gradle diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/.gitignore b/packages/flutterfire_configurator/example/ios/.gitignore similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/.gitignore rename to packages/flutterfire_configurator/example/ios/.gitignore diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Flutter/AppFrameworkInfo.plist b/packages/flutterfire_configurator/example/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Flutter/AppFrameworkInfo.plist rename to packages/flutterfire_configurator/example/ios/Flutter/AppFrameworkInfo.plist diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Flutter/Debug.xcconfig b/packages/flutterfire_configurator/example/ios/Flutter/Debug.xcconfig similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Flutter/Debug.xcconfig rename to packages/flutterfire_configurator/example/ios/Flutter/Debug.xcconfig diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Flutter/Release.xcconfig b/packages/flutterfire_configurator/example/ios/Flutter/Release.xcconfig similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Flutter/Release.xcconfig rename to packages/flutterfire_configurator/example/ios/Flutter/Release.xcconfig diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Podfile b/packages/flutterfire_configurator/example/ios/Podfile similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Podfile rename to packages/flutterfire_configurator/example/ios/Podfile diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Podfile.lock b/packages/flutterfire_configurator/example/ios/Podfile.lock similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Podfile.lock rename to packages/flutterfire_configurator/example/ios/Podfile.lock diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.pbxproj b/packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.pbxproj similarity index 98% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.pbxproj rename to packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.pbxproj index 070bd51..f2c1ff5 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.pbxproj +++ b/packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.pbxproj @@ -479,7 +479,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -496,7 +496,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -514,7 +514,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -530,7 +530,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -658,7 +658,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -681,7 +681,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/flutterfire_configurator/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/flutterfire_configurator/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/flutterfire_configurator/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/packages/flutterfire_configurator/example/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to packages/flutterfire_configurator/example/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/flutterfire_configurator/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/flutterfire_configurator/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/packages/flutterfire_configurator/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to packages/flutterfire_configurator/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/AppDelegate.swift b/packages/flutterfire_configurator/example/ios/Runner/AppDelegate.swift similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/AppDelegate.swift rename to packages/flutterfire_configurator/example/ios/Runner/AppDelegate.swift diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to packages/flutterfire_configurator/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/packages/flutterfire_configurator/example/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to packages/flutterfire_configurator/example/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Base.lproj/Main.storyboard b/packages/flutterfire_configurator/example/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Base.lproj/Main.storyboard rename to packages/flutterfire_configurator/example/ios/Runner/Base.lproj/Main.storyboard diff --git a/packages/flutterfire_configurator/example/ios/Runner/GoogleService-Info.plist b/packages/flutterfire_configurator/example/ios/Runner/GoogleService-Info.plist new file mode 100644 index 0000000..d94d849 --- /dev/null +++ b/packages/flutterfire_configurator/example/ios/Runner/GoogleService-Info.plist @@ -0,0 +1,30 @@ + + + + + API_KEY + AIzaSyDW2cbXfGjFB4EdKJTFojoAt_7wM-P10lg + GCM_SENDER_ID + 282061201204 + PLIST_VERSION + 1 + BUNDLE_ID + jp.co.altive.flutterfireconfigurator.example + PROJECT_ID + flutterfire-adapter + STORAGE_BUCKET + flutterfire-adapter.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:282061201204:ios:0971ee1979644c5eb04f61 + + \ No newline at end of file diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Info.plist b/packages/flutterfire_configurator/example/ios/Runner/Info.plist similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Info.plist rename to packages/flutterfire_configurator/example/ios/Runner/Info.plist diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Runner-Bridging-Header.h b/packages/flutterfire_configurator/example/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/Runner-Bridging-Header.h rename to packages/flutterfire_configurator/example/ios/Runner/Runner-Bridging-Header.h diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/RunnerTests/RunnerTests.swift b/packages/flutterfire_configurator/example/ios/RunnerTests/RunnerTests.swift similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/RunnerTests/RunnerTests.swift rename to packages/flutterfire_configurator/example/ios/RunnerTests/RunnerTests.swift diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/firebase_app_id_file.json b/packages/flutterfire_configurator/example/ios/firebase_app_id_file.json similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/ios/firebase_app_id_file.json rename to packages/flutterfire_configurator/example/ios/firebase_app_id_file.json diff --git a/packages/flutterfire_remote_parameter_fetcher/example/lib/firebase_options.dart b/packages/flutterfire_configurator/example/lib/firebase_options.dart similarity index 94% rename from packages/flutterfire_remote_parameter_fetcher/example/lib/firebase_options.dart rename to packages/flutterfire_configurator/example/lib/firebase_options.dart index 4e163ef..3b1e10d 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/lib/firebase_options.dart +++ b/packages/flutterfire_configurator/example/lib/firebase_options.dart @@ -66,7 +66,7 @@ class DefaultFirebaseOptions { messagingSenderId: '282061201204', projectId: 'flutterfire-adapter', storageBucket: 'flutterfire-adapter.appspot.com', - iosBundleId: 'jp.co.altive.flutterfireremoteparameterfetcher.example', + iosBundleId: 'jp.co.altive.flutterfireconfigurator.example', ); static const FirebaseOptions macos = FirebaseOptions( @@ -75,6 +75,6 @@ class DefaultFirebaseOptions { messagingSenderId: '282061201204', projectId: 'flutterfire-adapter', storageBucket: 'flutterfire-adapter.appspot.com', - iosBundleId: 'jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests', + iosBundleId: 'jp.co.altive.flutterfireconfigurator.example.RunnerTests', ); } diff --git a/packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart b/packages/flutterfire_configurator/example/lib/main.dart similarity index 55% rename from packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart rename to packages/flutterfire_configurator/example/lib/main.dart index 41d25cc..08fa5ce 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/lib/main.dart +++ b/packages/flutterfire_configurator/example/lib/main.dart @@ -1,54 +1,54 @@ import 'package:firebase_core/firebase_core.dart'; import 'package:flutter/material.dart'; -import 'package:flutterfire_remote_parameter_fetcher/remote_parameter_fetcher.dart'; +import 'package:flutterfire_configurator/configurator.dart'; import 'firebase_options.dart'; Future main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform); - final rpf = RemoteParameterFetcher(); - await rpf.setDefaults({ + final configurator = Configurator(); + await configurator.setDefaults({ 'int_parameter': 123, }); - runApp(MainApp(rpf: rpf)); + runApp(MainApp(configurator: configurator)); } class MainApp extends StatefulWidget { - const MainApp({super.key, required this.rpf}); + const MainApp({super.key, required this.configurator}); - final RemoteParameterFetcher rpf; + final Configurator configurator; @override State createState() => _MainAppState(); } class _MainAppState extends State { - late final rpf = widget.rpf; + late final configurator = widget.configurator; - late RemoteParameter _intRemoteParameter; + late Config _intConfig; - late int _intParameterValue; + late int _intConfigValue; @override void initState() { super.initState(); - _intRemoteParameter = rpf.getIntParameter( + _intConfig = configurator.getIntParameter( 'int_parameter', onConfigUpdated: (value) { - debugPrint('remoteParameter value changed: $value'); + debugPrint('Config value changed: $value'); setState(() { - _intParameterValue = value; + _intConfigValue = value; }); }, ); - _intParameterValue = _intRemoteParameter.value; + _intConfigValue = _intConfig.value; } @override Future dispose() async { - await _intRemoteParameter.dispose(); + await _intConfig.dispose(); super.dispose(); } @@ -56,11 +56,11 @@ class _MainAppState extends State { Widget build(BuildContext context) { return MaterialApp( home: Scaffold( - appBar: AppBar(title: const Text('FlutterFireRemoteParameterFetcher')), + appBar: AppBar(title: const Text('FlutterFireConfigurator')), body: Padding( padding: const EdgeInsets.all(32), child: Center( - child: Text('RemoteParameter value: $_intParameterValue'), + child: Text('Config value: $_intConfigValue'), ), ), ), diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/.gitignore b/packages/flutterfire_configurator/example/macos/.gitignore similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/.gitignore rename to packages/flutterfire_configurator/example/macos/.gitignore diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Flutter/Flutter-Debug.xcconfig b/packages/flutterfire_configurator/example/macos/Flutter/Flutter-Debug.xcconfig similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Flutter/Flutter-Debug.xcconfig rename to packages/flutterfire_configurator/example/macos/Flutter/Flutter-Debug.xcconfig diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Flutter/Flutter-Release.xcconfig b/packages/flutterfire_configurator/example/macos/Flutter/Flutter-Release.xcconfig similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Flutter/Flutter-Release.xcconfig rename to packages/flutterfire_configurator/example/macos/Flutter/Flutter-Release.xcconfig diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Podfile b/packages/flutterfire_configurator/example/macos/Podfile similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Podfile rename to packages/flutterfire_configurator/example/macos/Podfile diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Podfile.lock b/packages/flutterfire_configurator/example/macos/Podfile.lock similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Podfile.lock rename to packages/flutterfire_configurator/example/macos/Podfile.lock diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcodeproj/project.pbxproj b/packages/flutterfire_configurator/example/macos/Runner.xcodeproj/project.pbxproj similarity index 99% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcodeproj/project.pbxproj rename to packages/flutterfire_configurator/example/macos/Runner.xcodeproj/project.pbxproj index a3c2342..e9f583a 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcodeproj/project.pbxproj +++ b/packages/flutterfire_configurator/example/macos/Runner.xcodeproj/project.pbxproj @@ -482,7 +482,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example"; @@ -497,7 +497,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example"; @@ -512,7 +512,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/example.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/example"; diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/flutterfire_configurator/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/flutterfire_configurator/example/macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/packages/flutterfire_configurator/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to packages/flutterfire_configurator/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcworkspace/contents.xcworkspacedata b/packages/flutterfire_configurator/example/macos/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcworkspace/contents.xcworkspacedata rename to packages/flutterfire_configurator/example/macos/Runner.xcworkspace/contents.xcworkspacedata diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/packages/flutterfire_configurator/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to packages/flutterfire_configurator/example/macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/AppDelegate.swift b/packages/flutterfire_configurator/example/macos/Runner/AppDelegate.swift similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/AppDelegate.swift rename to packages/flutterfire_configurator/example/macos/Runner/AppDelegate.swift diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png b/packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png rename to packages/flutterfire_configurator/example/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Base.lproj/MainMenu.xib b/packages/flutterfire_configurator/example/macos/Runner/Base.lproj/MainMenu.xib similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Base.lproj/MainMenu.xib rename to packages/flutterfire_configurator/example/macos/Runner/Base.lproj/MainMenu.xib diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/AppInfo.xcconfig b/packages/flutterfire_configurator/example/macos/Runner/Configs/AppInfo.xcconfig similarity index 86% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/AppInfo.xcconfig rename to packages/flutterfire_configurator/example/macos/Runner/Configs/AppInfo.xcconfig index 6c89b02..fc77228 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/AppInfo.xcconfig +++ b/packages/flutterfire_configurator/example/macos/Runner/Configs/AppInfo.xcconfig @@ -8,7 +8,7 @@ PRODUCT_NAME = example // The application's bundle identifier -PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireremoteparameterfetcher.example +PRODUCT_BUNDLE_IDENTIFIER = jp.co.altive.flutterfireconfigurator.example // The copyright displayed in application information PRODUCT_COPYRIGHT = Copyright © 2023 com.example. All rights reserved. diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/Debug.xcconfig b/packages/flutterfire_configurator/example/macos/Runner/Configs/Debug.xcconfig similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/Debug.xcconfig rename to packages/flutterfire_configurator/example/macos/Runner/Configs/Debug.xcconfig diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/Release.xcconfig b/packages/flutterfire_configurator/example/macos/Runner/Configs/Release.xcconfig similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/Release.xcconfig rename to packages/flutterfire_configurator/example/macos/Runner/Configs/Release.xcconfig diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/Warnings.xcconfig b/packages/flutterfire_configurator/example/macos/Runner/Configs/Warnings.xcconfig similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Configs/Warnings.xcconfig rename to packages/flutterfire_configurator/example/macos/Runner/Configs/Warnings.xcconfig diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/DebugProfile.entitlements b/packages/flutterfire_configurator/example/macos/Runner/DebugProfile.entitlements similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/DebugProfile.entitlements rename to packages/flutterfire_configurator/example/macos/Runner/DebugProfile.entitlements diff --git a/packages/flutterfire_configurator/example/macos/Runner/GoogleService-Info.plist b/packages/flutterfire_configurator/example/macos/Runner/GoogleService-Info.plist new file mode 100644 index 0000000..78c64ee --- /dev/null +++ b/packages/flutterfire_configurator/example/macos/Runner/GoogleService-Info.plist @@ -0,0 +1,30 @@ + + + + + API_KEY + AIzaSyDW2cbXfGjFB4EdKJTFojoAt_7wM-P10lg + GCM_SENDER_ID + 282061201204 + PLIST_VERSION + 1 + BUNDLE_ID + jp.co.altive.flutterfireconfigurator.example.RunnerTests + PROJECT_ID + flutterfire-adapter + STORAGE_BUCKET + flutterfire-adapter.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:282061201204:ios:160f3e4560ec8c4db04f61 + + \ No newline at end of file diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Info.plist b/packages/flutterfire_configurator/example/macos/Runner/Info.plist similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Info.plist rename to packages/flutterfire_configurator/example/macos/Runner/Info.plist diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/MainFlutterWindow.swift b/packages/flutterfire_configurator/example/macos/Runner/MainFlutterWindow.swift similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/MainFlutterWindow.swift rename to packages/flutterfire_configurator/example/macos/Runner/MainFlutterWindow.swift diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Release.entitlements b/packages/flutterfire_configurator/example/macos/Runner/Release.entitlements similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/Release.entitlements rename to packages/flutterfire_configurator/example/macos/Runner/Release.entitlements diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/RunnerTests/RunnerTests.swift b/packages/flutterfire_configurator/example/macos/RunnerTests/RunnerTests.swift similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/RunnerTests/RunnerTests.swift rename to packages/flutterfire_configurator/example/macos/RunnerTests/RunnerTests.swift diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/firebase_app_id_file.json b/packages/flutterfire_configurator/example/macos/firebase_app_id_file.json similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/macos/firebase_app_id_file.json rename to packages/flutterfire_configurator/example/macos/firebase_app_id_file.json diff --git a/packages/flutterfire_remote_parameter_fetcher/example/pubspec.lock b/packages/flutterfire_configurator/example/pubspec.lock similarity index 99% rename from packages/flutterfire_remote_parameter_fetcher/example/pubspec.lock rename to packages/flutterfire_configurator/example/pubspec.lock index be8fefe..3425497 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/pubspec.lock +++ b/packages/flutterfire_configurator/example/pubspec.lock @@ -152,7 +152,7 @@ packages: description: flutter source: sdk version: "0.0.0" - flutterfire_remote_parameter_fetcher: + flutterfire_configurator: dependency: "direct main" description: path: ".." diff --git a/packages/flutterfire_remote_parameter_fetcher/example/pubspec.yaml b/packages/flutterfire_configurator/example/pubspec.yaml similarity index 59% rename from packages/flutterfire_remote_parameter_fetcher/example/pubspec.yaml rename to packages/flutterfire_configurator/example/pubspec.yaml index 0e5d069..cb04862 100644 --- a/packages/flutterfire_remote_parameter_fetcher/example/pubspec.yaml +++ b/packages/flutterfire_configurator/example/pubspec.yaml @@ -1,5 +1,5 @@ -name: flutterfire_remote_parameter_fetcher_example -description: Demonstrates how to use the flutterfire_remote_parameter_fetcher package. +name: flutterfire_configurator_example +description: Demonstrates how to use the flutterfire_configurator package. publish_to: "none" version: 0.1.0 @@ -11,7 +11,7 @@ dependencies: firebase_core: ^2.21.0 flutter: sdk: flutter - flutterfire_remote_parameter_fetcher: + flutterfire_configurator: path: ../ dev_dependencies: diff --git a/packages/flutterfire_remote_parameter_fetcher/example/web/favicon.png b/packages/flutterfire_configurator/example/web/favicon.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/web/favicon.png rename to packages/flutterfire_configurator/example/web/favicon.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-192.png b/packages/flutterfire_configurator/example/web/icons/Icon-192.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-192.png rename to packages/flutterfire_configurator/example/web/icons/Icon-192.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-512.png b/packages/flutterfire_configurator/example/web/icons/Icon-512.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-512.png rename to packages/flutterfire_configurator/example/web/icons/Icon-512.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-maskable-192.png b/packages/flutterfire_configurator/example/web/icons/Icon-maskable-192.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-maskable-192.png rename to packages/flutterfire_configurator/example/web/icons/Icon-maskable-192.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-maskable-512.png b/packages/flutterfire_configurator/example/web/icons/Icon-maskable-512.png similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/web/icons/Icon-maskable-512.png rename to packages/flutterfire_configurator/example/web/icons/Icon-maskable-512.png diff --git a/packages/flutterfire_remote_parameter_fetcher/example/web/index.html b/packages/flutterfire_configurator/example/web/index.html similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/web/index.html rename to packages/flutterfire_configurator/example/web/index.html diff --git a/packages/flutterfire_remote_parameter_fetcher/example/web/manifest.json b/packages/flutterfire_configurator/example/web/manifest.json similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/example/web/manifest.json rename to packages/flutterfire_configurator/example/web/manifest.json diff --git a/packages/flutterfire_configurator/lib/configurator.dart b/packages/flutterfire_configurator/lib/configurator.dart new file mode 100644 index 0000000..c91cae1 --- /dev/null +++ b/packages/flutterfire_configurator/lib/configurator.dart @@ -0,0 +1,5 @@ +/// Configurator +library configurator; + +export 'src/config.dart'; +export 'src/configurator.dart'; diff --git a/packages/flutterfire_remote_parameter_fetcher/lib/src/remote_parameter.dart b/packages/flutterfire_configurator/lib/src/config.dart similarity index 87% rename from packages/flutterfire_remote_parameter_fetcher/lib/src/remote_parameter.dart rename to packages/flutterfire_configurator/lib/src/config.dart index 474f87e..a198e31 100644 --- a/packages/flutterfire_remote_parameter_fetcher/lib/src/remote_parameter.dart +++ b/packages/flutterfire_configurator/lib/src/config.dart @@ -2,8 +2,8 @@ import 'dart:async'; /// A class that holds the value of a parameter fetched from a remote. /// It also provides a Stream of updated parameter information. -class RemoteParameter { - RemoteParameter({ +class Config { + Config({ required T value, required StreamSubscription subscription, }) : _value = value, @@ -16,7 +16,7 @@ class RemoteParameter { T get value => _value; final T _value; - /// Closes the [RemoteParameter]. + /// Closes the [Config]. Future dispose() async { await _subscription.cancel(); } diff --git a/packages/flutterfire_remote_parameter_fetcher/lib/src/remote_parameter_fetcher.dart b/packages/flutterfire_configurator/lib/src/configurator.dart similarity index 82% rename from packages/flutterfire_remote_parameter_fetcher/lib/src/remote_parameter_fetcher.dart rename to packages/flutterfire_configurator/lib/src/configurator.dart index 4a1f5c9..3292e45 100644 --- a/packages/flutterfire_remote_parameter_fetcher/lib/src/remote_parameter_fetcher.dart +++ b/packages/flutterfire_configurator/lib/src/configurator.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'package:firebase_remote_config/firebase_remote_config.dart'; import 'package:meta/meta.dart'; -import 'remote_parameter.dart'; +import 'config.dart'; typedef ValueChanged = void Function(T value); @@ -12,8 +12,8 @@ typedef ValueChanged = void Function(T value); /// them". /// /// Exposes [fetchAndActivate] and configuration methods for Remote Config. -class RemoteParameterFetcher { - RemoteParameterFetcher({ +class Configurator { + Configurator({ FirebaseRemoteConfig? rc, }) : _rc = rc ?? FirebaseRemoteConfig.instance; @@ -113,12 +113,12 @@ class RemoteParameterFetcher { return fromJson(json); } - /// Returns a [RemoteParameter] of type [String]. - RemoteParameter getStringParameter( + /// Returns a [Config] of type [String]. + Config getStringParameter( String key, { required ValueChanged onConfigUpdated, }) { - return RemoteParameter( + return Config( value: getString(key), subscription: filteredOnConfigUpdated(key).listen((event) async { await activate(); @@ -127,12 +127,12 @@ class RemoteParameterFetcher { ); } - /// Returns a [RemoteParameter] of type [int]. - RemoteParameter getIntParameter( + /// Returns a [Config] of type [int]. + Config getIntParameter( String key, { required ValueChanged onConfigUpdated, }) { - return RemoteParameter( + return Config( value: getInt(key), subscription: filteredOnConfigUpdated(key).listen((event) async { await activate(); @@ -141,12 +141,12 @@ class RemoteParameterFetcher { ); } - /// Returns a [RemoteParameter] of type [double]. - RemoteParameter getDoubleParameter( + /// Returns a [Config] of type [double]. + Config getDoubleParameter( String key, { required ValueChanged onConfigUpdated, }) { - return RemoteParameter( + return Config( value: getDouble(key), subscription: filteredOnConfigUpdated(key).listen((event) async { await activate(); @@ -155,12 +155,12 @@ class RemoteParameterFetcher { ); } - /// Returns a [RemoteParameter] of type [bool]. - RemoteParameter getBoolParameter( + /// Returns a [Config] of type [bool]. + Config getBoolParameter( String key, { required ValueChanged onConfigUpdated, }) { - return RemoteParameter( + return Config( value: getBool(key), subscription: filteredOnConfigUpdated(key).listen((event) async { await activate(); @@ -169,12 +169,12 @@ class RemoteParameterFetcher { ); } - /// Returns a [RemoteParameter] of type [Map]. - RemoteParameter> getJsonParameter( + /// Returns a [Config] of type [Map]. + Config> getJsonParameter( String key, { required ValueChanged> onConfigUpdated, }) { - return RemoteParameter>( + return Config>( value: getJson(key), subscription: filteredOnConfigUpdated(key).listen((event) async { await activate(); @@ -183,12 +183,12 @@ class RemoteParameterFetcher { ); } - /// Returns a [RemoteParameter] of type [List] of [Map]. - RemoteParameter>> getListJsonParameter( + /// Returns a [Config] of type [List] of [Map]. + Config>> getListJsonParameter( String key, { required ValueChanged>> onConfigUpdated, }) { - return RemoteParameter>>( + return Config>>( value: getListJson(key), subscription: filteredOnConfigUpdated(key).listen((event) async { await activate(); @@ -197,13 +197,13 @@ class RemoteParameterFetcher { ); } - /// Returns a [RemoteParameter] of type [T]. - RemoteParameter getDataParameter( + /// Returns a [Config] of type [T]. + Config getDataParameter( String key, { required T Function(Map) fromJson, required ValueChanged onConfigUpdated, }) { - return RemoteParameter( + return Config( value: getData(key: key, fromJson: fromJson), subscription: filteredOnConfigUpdated(key).listen((event) async { await activate(); diff --git a/packages/flutterfire_remote_parameter_fetcher/pubspec.yaml b/packages/flutterfire_configurator/pubspec.yaml similarity index 61% rename from packages/flutterfire_remote_parameter_fetcher/pubspec.yaml rename to packages/flutterfire_configurator/pubspec.yaml index 04afa23..06c999d 100644 --- a/packages/flutterfire_remote_parameter_fetcher/pubspec.yaml +++ b/packages/flutterfire_configurator/pubspec.yaml @@ -1,5 +1,5 @@ -name: flutterfire_remote_parameter_fetcher -description: flutterfire_remote_parameter_fetcher with FlutterFire Remote Config. +name: flutterfire_configurator +description: flutterfire_configurator with FlutterFire Remote Config. publish_to: "none" version: 0.1.0 diff --git a/packages/flutterfire_remote_parameter_fetcher/test/data_class.dart b/packages/flutterfire_configurator/test/data_class.dart similarity index 100% rename from packages/flutterfire_remote_parameter_fetcher/test/data_class.dart rename to packages/flutterfire_configurator/test/data_class.dart diff --git a/packages/flutterfire_remote_parameter_fetcher/test/src/remote_parameter_test.dart b/packages/flutterfire_configurator/test/src/config_test.dart similarity index 81% rename from packages/flutterfire_remote_parameter_fetcher/test/src/remote_parameter_test.dart rename to packages/flutterfire_configurator/test/src/config_test.dart index 2aa7b4d..d65b53f 100644 --- a/packages/flutterfire_remote_parameter_fetcher/test/src/remote_parameter_test.dart +++ b/packages/flutterfire_configurator/test/src/config_test.dart @@ -1,26 +1,26 @@ import 'dart:async'; import 'package:flutter_test/flutter_test.dart'; -import 'package:flutterfire_remote_parameter_fetcher/src/remote_parameter.dart'; +import 'package:flutterfire_configurator/src/config.dart'; void main() { - group('RemoteParameter', () { + group('Config', () { test('should initialize with correct value', () async { final controller = StreamController(); addTearDown(controller.close); - final rp = RemoteParameter( + final config = Config( value: 10, subscription: controller.stream.listen((event) {}), ); - expect(rp.value, 10); + expect(config.value, 10); }); test('should update value when stream emits', () async { final controller = StreamController(); addTearDown(controller.close); var value = 10; - RemoteParameter( + Config( value: value, subscription: controller.stream.listen((event) { value = event; @@ -38,7 +38,7 @@ void main() { final controller = StreamController(); addTearDown(controller.close); var value = 10; - final rp = RemoteParameter( + final config = Config( value: 10, subscription: controller.stream.listen((event) { value = event; @@ -49,7 +49,7 @@ void main() { await pumpEventQueue(); expect(value, 20); - await rp.dispose(); + await config.dispose(); controller.add(30); await pumpEventQueue(); diff --git a/packages/flutterfire_remote_parameter_fetcher/test/src/remote_parameter_fetcher_test.dart b/packages/flutterfire_configurator/test/src/configurator_test.dart similarity index 83% rename from packages/flutterfire_remote_parameter_fetcher/test/src/remote_parameter_fetcher_test.dart rename to packages/flutterfire_configurator/test/src/configurator_test.dart index 7b937c4..041f8f0 100644 --- a/packages/flutterfire_remote_parameter_fetcher/test/src/remote_parameter_fetcher_test.dart +++ b/packages/flutterfire_configurator/test/src/configurator_test.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'package:firebase_remote_config/firebase_remote_config.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:flutterfire_remote_parameter_fetcher/remote_parameter_fetcher.dart'; +import 'package:flutterfire_configurator/configurator.dart'; import '../data_class.dart'; @@ -10,7 +10,7 @@ void main() { group('setDefaults', () { test('Error occurs when setting a Class instance as a value', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); expect( () async => @@ -21,7 +21,7 @@ void main() { test('Error occurs when setting a List type as a value', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); expect( () async => target.setDefaults({ @@ -33,7 +33,7 @@ void main() { test('Error occurs when setting a Map type as a value', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); expect( () async => target.setDefaults({ @@ -47,7 +47,7 @@ void main() { group('onConfigUpdated', () { test('Can retrieve the Stream of RemoteConfigUpdate', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); final stream = target.onConfigUpdated; expect(stream, isA>()); @@ -58,7 +58,7 @@ void main() { test('Can retrieve the Stream of RemoteConfigUpdate filtered by key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'string_001'; @@ -70,7 +70,7 @@ void main() { group('getString', () { test('Can retrieve the Remote string corresponding to the key', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'string_001'; @@ -82,7 +82,7 @@ void main() { group('getInt', () { test('Can retrieve the Remote integer corresponding to the key', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'int_001'; @@ -96,7 +96,7 @@ void main() { 'Can retrieve the Remote floating-point number corresponding to the key', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'double_001'; @@ -109,7 +109,7 @@ void main() { group('getBool', () { test('Can retrieve the boolean value corresponding to the key', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'bool_001'; @@ -121,7 +121,7 @@ void main() { group('getJson', () { test('Can retrieve the JSON (Map) corresponding to the key', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'json_001'; @@ -138,7 +138,7 @@ void main() { group('getListJson', () { test('Can retrieve the list of JSON (Map) corresponding to the key', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'list_json_001'; @@ -166,7 +166,7 @@ void main() { group('getData', () { test('Can retrieve the class object corresponding to the key', () { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'data_001'; @@ -178,10 +178,10 @@ void main() { group('getStringParameter', () { test( - 'Can retrieve the RemoteParameter corresponding to the key', + 'Can retrieve the Config corresponding to the key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'string_001'; var updatedValue = ''; @@ -193,7 +193,7 @@ void main() { }, ); - expect(parameter, isA>()); + expect(parameter, isA>()); expect(parameter.value, equals('string_value')); mockRC.configUpdatesController.add( @@ -209,10 +209,10 @@ void main() { group('getIntParameter', () { test( - 'Can retrieve the RemoteParameter corresponding to the key', + 'Can retrieve the Config corresponding to the key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'int_001'; var updatedValue = 0; @@ -224,7 +224,7 @@ void main() { }, ); - expect(value, isA>()); + expect(value, isA>()); expect(value.value, equals(1)); mockRC.configUpdatesController.add( @@ -240,10 +240,10 @@ void main() { group('getDoubleParameter', () { test( - 'Can retrieve the RemoteParameter corresponding to the key', + 'Can retrieve the Config corresponding to the key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'double_001'; var updatedValue = 0.0; @@ -255,7 +255,7 @@ void main() { }, ); - expect(value, isA>()); + expect(value, isA>()); expect(value.value, equals(0.1)); mockRC.configUpdatesController.add( @@ -271,10 +271,10 @@ void main() { group('getBoolParameter', () { test( - 'Can retrieve the RemoteParameter corresponding to the key', + 'Can retrieve the Config corresponding to the key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'bool_001'; var updatedValue = false; @@ -286,7 +286,7 @@ void main() { }, ); - expect(value, isA>()); + expect(value, isA>()); expect(value.value, isTrue); mockRC.configUpdatesController.add( @@ -302,11 +302,11 @@ void main() { group('getJsonParameter', () { test( - 'Can retrieve the RemoteParameter> ' + 'Can retrieve the Config> ' 'corresponding to the key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'json_001'; var updatedValue = {}; @@ -318,7 +318,7 @@ void main() { }, ); - expect(value, isA>>()); + expect(value, isA>>()); expect(value.value, { 'value_1': '01', 'value_2': 2, @@ -344,11 +344,11 @@ void main() { group('getListJsonParameter', () { test( - 'Can retrieve the RemoteParameter>> ' + 'Can retrieve the Config>> ' 'corresponding to the key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'list_json_001'; var updatedValue = >[]; @@ -360,7 +360,7 @@ void main() { }, ); - expect(value, isA>>>()); + expect(value, isA>>>()); expect( value.value, [ @@ -408,10 +408,10 @@ void main() { group('getDataParameter', () { test( - 'Can retrieve the RemoteParameter corresponding to the key', + 'Can retrieve the Config corresponding to the key', () async { final mockRC = _FakeRemoteConfig(); - final target = RemoteParameterFetcher(rc: mockRC); + final target = Configurator(rc: mockRC); const key = 'data_001'; var updatedValue = const DataClass(value: ''); @@ -424,7 +424,7 @@ void main() { }, ); - expect(value, isA>()); + expect(value, isA>()); expect(value.value, const DataClass(value: 'tokyo')); mockRC.configUpdatesController.add( diff --git a/packages/flutterfire_remote_parameter_fetcher/example/README.md b/packages/flutterfire_remote_parameter_fetcher/example/README.md deleted file mode 100644 index 75999dd..0000000 --- a/packages/flutterfire_remote_parameter_fetcher/example/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# FlutterFire RemoteParameterFetcher example - -A new Flutter project. diff --git a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/GoogleService-Info.plist b/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/GoogleService-Info.plist deleted file mode 100644 index 0a77073..0000000 --- a/packages/flutterfire_remote_parameter_fetcher/example/ios/Runner/GoogleService-Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - API_KEY - AIzaSyDW2cbXfGjFB4EdKJTFojoAt_7wM-P10lg - GCM_SENDER_ID - 282061201204 - PLIST_VERSION - 1 - BUNDLE_ID - jp.co.altive.flutterfireremoteparameterfetcher.example - PROJECT_ID - flutterfire-adapter - STORAGE_BUCKET - flutterfire-adapter.appspot.com - IS_ADS_ENABLED - - IS_ANALYTICS_ENABLED - - IS_APPINVITE_ENABLED - - IS_GCM_ENABLED - - IS_SIGNIN_ENABLED - - GOOGLE_APP_ID - 1:282061201204:ios:0971ee1979644c5eb04f61 - - \ No newline at end of file diff --git a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/GoogleService-Info.plist b/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/GoogleService-Info.plist deleted file mode 100644 index 9df68f7..0000000 --- a/packages/flutterfire_remote_parameter_fetcher/example/macos/Runner/GoogleService-Info.plist +++ /dev/null @@ -1,30 +0,0 @@ - - - - - API_KEY - AIzaSyDW2cbXfGjFB4EdKJTFojoAt_7wM-P10lg - GCM_SENDER_ID - 282061201204 - PLIST_VERSION - 1 - BUNDLE_ID - jp.co.altive.flutterfireremoteparameterfetcher.example.RunnerTests - PROJECT_ID - flutterfire-adapter - STORAGE_BUCKET - flutterfire-adapter.appspot.com - IS_ADS_ENABLED - - IS_ANALYTICS_ENABLED - - IS_APPINVITE_ENABLED - - IS_GCM_ENABLED - - IS_SIGNIN_ENABLED - - GOOGLE_APP_ID - 1:282061201204:ios:160f3e4560ec8c4db04f61 - - \ No newline at end of file diff --git a/packages/flutterfire_remote_parameter_fetcher/lib/remote_parameter_fetcher.dart b/packages/flutterfire_remote_parameter_fetcher/lib/remote_parameter_fetcher.dart deleted file mode 100644 index 57c305c..0000000 --- a/packages/flutterfire_remote_parameter_fetcher/lib/remote_parameter_fetcher.dart +++ /dev/null @@ -1,5 +0,0 @@ -/// Remote Parameter Fetcher -library remote_parameter_fetcher; - -export '../src/remote_parameter.dart'; -export '../src/remote_parameter_fetcher.dart';