diff --git a/.github/workflows/checkout.yml b/.github/workflows/checkout.yml
index 883528b..6ede96e 100644
--- a/.github/workflows/checkout.yml
+++ b/.github/workflows/checkout.yml
@@ -37,7 +37,7 @@ jobs:
run:
working-directory: ./
container:
- image: dart:beta
+ image: dart:stable
timeout-minutes: 10
steps:
- name: 🚂 Get latest code
@@ -58,7 +58,7 @@ jobs:
- name: 👷 Install Dependencies
timeout-minutes: 1
run: |
- dart pub get
+ dart pub get --no-example
- name: 🔎 Check format
timeout-minutes: 1
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 6c5efa5..0a75671 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -2,20 +2,34 @@
"version": "0.2.0",
"configurations": [
{
- "name": "Console (example)",
+ "name": "Example (lcl)",
"request": "launch",
"type": "dart",
- "program": "examples/console/bin/main.dart",
+ "flutterMode": "debug",
+ "cwd": "${workspaceFolder}/example",
+ "program": "lib/main.dart",
"env": {
"ENVIRONMENT": "local"
},
"console": "debugConsole",
"runTestsOnDevice": false,
"toolArgs": [],
- "args": [
- // "--token=X.Y.Z",
- "--verbose"
- ]
+ "args": ["--dart-define-from-file=config/local.json"]
+ },
+ {
+ "name": "Example (dev)",
+ "request": "launch",
+ "type": "dart",
+ "flutterMode": "debug",
+ "cwd": "${workspaceFolder}/example",
+ "program": "lib/main.dart",
+ "env": {
+ "ENVIRONMENT": "development"
+ },
+ "console": "debugConsole",
+ "runTestsOnDevice": false,
+ "toolArgs": [],
+ "args": ["--dart-define-from-file=config/development.json"]
}
]
}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index 96d945e..4f7d96b 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -11,6 +11,75 @@
},
"problemMatcher": []
},
+ {
+ "label": "Get protoc plugin",
+ "type": "shell",
+ "command": ["dart pub global activate protoc_plugin"],
+ "dependsOn": ["Dependencies"],
+ "group": {
+ "kind": "none",
+ "isDefault": true
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Generate protobuf",
+ "type": "shell",
+ "command": [
+ "protoc",
+ "--proto_path=lib/src/transport/protobuf",
+ "--dart_out=lib/src/transport/protobuf lib/src/transport/protobuf/client.proto"
+ ],
+ "dependsOn": ["Get protoc plugin"],
+ "group": {
+ "kind": "none",
+ "isDefault": true
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Codegenerate",
+ "type": "shell",
+ "command": ["dart run build_runner build --delete-conflicting-outputs"],
+ "dependsOn": ["Dependencies"],
+ "group": {
+ "kind": "none",
+ "isDefault": true
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Format",
+ "type": "shell",
+ "command": [
+ "dart format --fix -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/transport/protobuf/"
+ ],
+ "group": {
+ "kind": "none",
+ "isDefault": true
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "Prepare example",
+ "type": "shell",
+ "options": {
+ "cwd": "${workspaceFolder}/example"
+ },
+ "command": [
+ "dart pub global activate intl_utils",
+ "dart pub global run intl_utils:generate",
+ "fvm flutter pub get",
+ /* "&& fvm flutter gen-l10n --arb-dir lib/src/common/localization --output-dir lib/src/common/localization/generated --template-arb-file intl_en.arb", */
+ "&& fvm flutter pub run build_runner build --delete-conflicting-outputs",
+ "&& dart format --fix -l 80 ."
+ ],
+ "group": {
+ "kind": "none",
+ "isDefault": true
+ },
+ "problemMatcher": []
+ },
{
"label": "Start Centrifugo Server",
"type": "shell",
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ed0c828..58fce67 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,3 @@
-## 0.0.1-pre.2
+## 0.0.1-pre.7
- **ADDED**: Initial release
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 27c36da..1a26720 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -8,9 +8,9 @@ Windows:
$ choco install protoc
$ dart pub global activate protoc_plugin
$ dart pub get
-$ protoc --proto_path=lib/src/model/protobuf --dart_out=lib/src/model/protobuf lib/src/model/protobuf/client.proto
+$ protoc --proto_path=lib/src/transport/protobuf --dart_out=lib/src/transport/protobuf lib/src/transport/protobuf/client.proto
$ dart run build_runner build --delete-conflicting-outputs
-$ dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/model/protobuf/
+$ dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/transport/protobuf/
```
Linux:
@@ -21,9 +21,9 @@ $ sudo apt install -y protobuf-compiler dart
$ export PATH="$PATH":"$HOME/.pub-cache/bin"
$ dart pub global activate protoc_plugin
$ dart pub get
-$ protoc --proto_path=lib/src/model/protobuf --dart_out=lib/src/model/protobuf lib/src/model/protobuf/client.proto
+$ protoc --proto_path=lib/src/transport/protobuf --dart_out=lib/src/transport/protobuf lib/src/transport/protobuf/client.proto
$ dart run build_runner build --delete-conflicting-outputs
-$ dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/model/protobuf/
+$ dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/transport/protobuf/
```
macOS:
@@ -34,7 +34,7 @@ $ brew install protobuf dart
$ export PATH="$PATH":"$HOME/.pub-cache/bin"
$ dart pub global activate protoc_plugin
$ dart pub get
-$ protoc --proto_path=lib/src/model/protobuf --dart_out=lib/src/model/protobuf lib/src/model/protobuf/client.proto
+$ protoc --proto_path=lib/src/transport/protobuf --dart_out=lib/src/transport/protobuf lib/src/transport/protobuf/client.proto
$ dart run build_runner build --delete-conflicting-outputs
-$ dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/model/protobuf/
+$ dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/transport/protobuf/
```
diff --git a/Makefile b/Makefile
index 8070650..21c6fca 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ get:
test: get
@dart test --debug --coverage=.coverage --platform chrome,vm
-publish:
+publish: generate
@yes | dart pub publish
deploy: publish
@@ -44,6 +44,6 @@ pana: check
generate: get
@dart pub global activate protoc_plugin
- @protoc --proto_path=lib/src/model/protobuf --dart_out=lib/src/model/protobuf lib/src/model/protobuf/client.proto
+ @protoc --proto_path=lib/src/transport/protobuf --dart_out=lib/src/transport/protobuf lib/src/transport/protobuf/client.proto
@dart run build_runner build --delete-conflicting-outputs
- @dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/model/protobuf/
\ No newline at end of file
+ @dart format -l 80 lib/src/model/pubspec.yaml.g.dart lib/src/transport/protobuf/
\ No newline at end of file
diff --git a/README.md b/README.md
index 9e4912f..ac69208 100644
--- a/README.md
+++ b/README.md
@@ -55,7 +55,7 @@ Connection related features
- ✅ Publish data into a channel
- ✅ Enqueue methods
- ✅ Set observer for hooking events & errors
-- ❌ Metrics
+- ✅ Metrics
- ❌ Optimistic subscriptions
- ❌ Run in separate isolate
- ❌ JSON transport
@@ -99,4 +99,4 @@ We appreciate any form of support, whether it's a financial donation or just a s
## License
-[MIT](https://opensource.org/licenses/MIT)
+[The MIT License](https://opensource.org/licenses/MIT)
diff --git a/analysis_options.yaml b/analysis_options.yaml
index be57b00..907ca29 100644
--- a/analysis_options.yaml
+++ b/analysis_options.yaml
@@ -6,8 +6,8 @@ analyzer:
- "build/**"
# Codegen
- "lib/**.g.dart"
- - "lib/src/model/protobuf/*"
- - "lib/src/model/pubspec.yaml.g.dart"
+ - "lib/src/transport/protobuf/*"
+ - "lib/src/transport/pubspec.yaml.g.dart"
# Tests
- "test/**.mocks.dart"
- ".test_coverage.dart"
@@ -89,10 +89,9 @@ linter:
close_sinks: true
control_flow_in_finally: true
empty_statements: true
- iterable_contains_unrelated_type: true
+ collection_methods_unrelated_type: true
join_return_with_assignment: true
leading_newlines_in_multiline_strings: true
- list_remove_unrelated_type: true
literal_only_boolean_expressions: true
missing_whitespace_between_adjacent_strings: true
no_adjacent_strings_in_list: true
diff --git a/example/.fvm/fvm_config.json b/example/.fvm/fvm_config.json
new file mode 100644
index 0000000..41959e9
--- /dev/null
+++ b/example/.fvm/fvm_config.json
@@ -0,0 +1,4 @@
+{
+ "flutterSdkVersion": "stable",
+ "flavors": {}
+}
diff --git a/example/.gitignore b/example/.gitignore
new file mode 100644
index 0000000..9e45942
--- /dev/null
+++ b/example/.gitignore
@@ -0,0 +1,79 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.packages
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
+
+# Databases
+.sqlite
+.db
+.lock
+
+# Logs
+log.txt
+
+# Emulator
+emulator/
+
+# Temporary files
+temp/
+.temp/
+
+# Env
+.env*
+
+# Test
+coverage/
+
+# Flutter Version Manager
+.fvm/flutter_sdk
+
+# Generated files
+
+# Screenshots
+integration_test/screenshots/
+
+# Firebase
+.firebase/
+
+# Config
+config/local.json
\ No newline at end of file
diff --git a/example/.metadata b/example/.metadata
new file mode 100644
index 0000000..bd61a63
--- /dev/null
+++ b/example/.metadata
@@ -0,0 +1,45 @@
+# This file tracks properties of this Flutter project.
+# Used by Flutter tool to assess capabilities and perform upgrades etc.
+#
+# This file should be version controlled.
+
+version:
+ revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ channel: beta
+
+project_type: app
+
+# Tracks metadata for the flutter migrate command
+migration:
+ platforms:
+ - platform: root
+ create_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ base_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ - platform: android
+ create_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ base_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ - platform: ios
+ create_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ base_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ - platform: linux
+ create_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ base_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ - platform: macos
+ create_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ base_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ - platform: web
+ create_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ base_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ - platform: windows
+ create_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+ base_revision: 74e4b092e5212ebf8292dde2a48d3da960c0920b
+
+ # User provided section
+
+ # List of Local paths (relative to this file) that should be
+ # ignored by the migrate tool.
+ #
+ # Files that are not part of the templates will be ignored by default.
+ unmanaged_files:
+ - 'lib/main.dart'
+ - 'ios/Runner.xcodeproj/project.pbxproj'
diff --git a/example/README.md b/example/README.md
new file mode 100644
index 0000000..436f3fd
--- /dev/null
+++ b/example/README.md
@@ -0,0 +1,24 @@
+# spinifyapp
+
+Spinify App Example
+
+## Code generation
+
+```bash
+$ make codegen
+```
+
+## Localization
+
+```bash
+$ code lib/src/common/localization/intl_en.arb
+$ make intl
+```
+
+## Recreating the project
+
+**! Warning: This will overwrite all files in the current directory.**
+
+```bash
+fvm spawn beta create --overwrite -t app --project-name "spinifyapp" --org "dev.plugfox.spinify" --description "Spinify App Example" --platforms ios,android,windows,linux,macos,web .
+```
diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml
new file mode 100644
index 0000000..9c84a6e
--- /dev/null
+++ b/example/analysis_options.yaml
@@ -0,0 +1,100 @@
+include: package:flutter_lints/flutter.yaml
+
+# Analyzer options
+analyzer:
+ # Exclude files from analysis. Must be relative to the root of the package.
+ exclude:
+ # Build
+ - "build/**"
+ # Tests
+ - "test/**.mocks.dart"
+ - ".test_coverage.dart"
+ - "coverage/**"
+ # Assets
+ - "assets/**"
+ # Generated
+ - "lib/src/common/localization/generated/**"
+ - "lib/src/common/constants/pubspec.yaml.g.dart"
+ - "lib/src/common/model/generated/**"
+ - "**.g.dart"
+ - "**.gql.dart"
+ - "**.freezed.dart"
+ - "**.config.dart"
+ - "**.mocks.dart"
+ - "**.gen.dart"
+ - "**.pb.dart"
+ - "**.pbenum.dart"
+ - "**.pbjson.dart"
+ # Flutter Version Manager
+ - ".fvm/**"
+ # Tools
+ #- "tool/**"
+ - "scripts/**"
+ - ".dart_tool/**"
+ # Platform
+ - "ios/**"
+ - "android/**"
+ - "web/**"
+ - "macos/**"
+ - "windows/**"
+ - "linux/**"
+
+
+ # Enable the following options to enable strong mode.
+ language:
+ strict-casts: true
+ strict-raw-types: true
+ strict-inference: true
+
+ # Enable the following options to enable new language features.
+ #enable-experiment:
+ # - patterns
+ # - sealed-class
+ # - records
+ # - class-modifiers
+ # - macros
+ # - const-functions
+ # - extension-types
+ # - inference-update-2
+ # - inline-class
+ # - value-class
+ # - variance
+
+ # Set the following options to true to enable additional analysis.
+ errors:
+ # Info
+ directives_ordering: info
+ always_declare_return_types: info
+
+ # Warning
+ unsafe_html: warning
+ no_logic_in_create_state: warning
+ empty_catches: warning
+ close_sinks: warning
+
+ # Error
+ always_use_package_imports: error
+ avoid_relative_lib_imports: error
+ avoid_slow_async_io: error
+ avoid_types_as_parameter_names: error
+ cancel_subscriptions: error
+ valid_regexps: error
+ always_require_non_null_named_parameters: error
+
+ # Disable rules
+
+# Lint rules
+linter:
+ rules:
+ # Public packages
+ public_member_api_docs: false
+ lines_longer_than_80_chars: false
+
+ # Enabling rules
+ always_use_package_imports: true
+ avoid_relative_lib_imports: true
+
+ # Disable rules
+ sort_pub_dependencies: false
+ prefer_relative_imports: false
+ curly_braces_in_flow_control_structures: false
\ No newline at end of file
diff --git a/example/android/.gitignore b/example/android/.gitignore
new file mode 100644
index 0000000..6f56801
--- /dev/null
+++ b/example/android/.gitignore
@@ -0,0 +1,13 @@
+gradle-wrapper.jar
+/.gradle
+/captures/
+/gradlew
+/gradlew.bat
+/local.properties
+GeneratedPluginRegistrant.java
+
+# Remember to never publicly share your keystore.
+# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
+key.properties
+**/*.keystore
+**/*.jks
diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle
new file mode 100644
index 0000000..609c4f8
--- /dev/null
+++ b/example/android/app/build.gradle
@@ -0,0 +1,69 @@
+plugins {
+ id "com.android.application"
+ id "kotlin-android"
+ id "dev.flutter.flutter-gradle-plugin"
+}
+
+def localProperties = new Properties()
+def localPropertiesFile = rootProject.file('local.properties')
+if (localPropertiesFile.exists()) {
+ localPropertiesFile.withReader('UTF-8') { reader ->
+ localProperties.load(reader)
+ }
+}
+
+def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
+if (flutterVersionCode == null) {
+ flutterVersionCode = '1'
+}
+
+def flutterVersionName = localProperties.getProperty('flutter.versionName')
+if (flutterVersionName == null) {
+ flutterVersionName = '1.0'
+}
+
+android {
+ namespace "dev.plugfox.spinify.spinifyapp"
+ compileSdkVersion flutter.compileSdkVersion
+ ndkVersion flutter.ndkVersion
+
+ compileOptions {
+ sourceCompatibility JavaVersion.VERSION_1_8
+ targetCompatibility JavaVersion.VERSION_1_8
+ }
+
+ kotlinOptions {
+ jvmTarget = '1.8'
+ }
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ }
+
+ defaultConfig {
+ // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
+ applicationId "dev.plugfox.spinify.spinifyapp"
+ // 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
+ targetSdkVersion flutter.targetSdkVersion
+ versionCode flutterVersionCode.toInteger()
+ versionName flutterVersionName
+ }
+
+ buildTypes {
+ release {
+ // TODO: Add your own signing config for the release build.
+ // Signing with the debug keys for now, so `flutter run --release` works.
+ signingConfig signingConfigs.debug
+ }
+ }
+}
+
+flutter {
+ source '../..'
+}
+
+dependencies {
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
+}
diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/example/android/app/src/debug/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..712541d
--- /dev/null
+++ b/example/android/app/src/main/AndroidManifest.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/android/app/src/main/kotlin/dev/plugfox/spinify/spinifyapp/MainActivity.kt b/example/android/app/src/main/kotlin/dev/plugfox/spinify/spinifyapp/MainActivity.kt
new file mode 100644
index 0000000..3bae9b8
--- /dev/null
+++ b/example/android/app/src/main/kotlin/dev/plugfox/spinify/spinifyapp/MainActivity.kt
@@ -0,0 +1,6 @@
+package dev.plugfox.spinify.spinifyapp
+
+import io.flutter.embedding.android.FlutterActivity
+
+class MainActivity: FlutterActivity() {
+}
diff --git a/example/android/app/src/main/res/drawable-v21/launch_background.xml b/example/android/app/src/main/res/drawable-v21/launch_background.xml
new file mode 100644
index 0000000..f74085f
--- /dev/null
+++ b/example/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/example/android/app/src/main/res/drawable/launch_background.xml b/example/android/app/src/main/res/drawable/launch_background.xml
new file mode 100644
index 0000000..304732f
--- /dev/null
+++ b/example/android/app/src/main/res/drawable/launch_background.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..db77bb4
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..17987b7
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..09d4391
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..d5f1c8d
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..4d6372e
Binary files /dev/null and b/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/example/android/app/src/main/res/values-night/styles.xml b/example/android/app/src/main/res/values-night/styles.xml
new file mode 100644
index 0000000..06952be
--- /dev/null
+++ b/example/android/app/src/main/res/values-night/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/example/android/app/src/main/res/values/styles.xml b/example/android/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..cb1ef88
--- /dev/null
+++ b/example/android/app/src/main/res/values/styles.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
diff --git a/example/android/app/src/profile/AndroidManifest.xml b/example/android/app/src/profile/AndroidManifest.xml
new file mode 100644
index 0000000..399f698
--- /dev/null
+++ b/example/android/app/src/profile/AndroidManifest.xml
@@ -0,0 +1,7 @@
+
+
+
+
diff --git a/example/android/build.gradle b/example/android/build.gradle
new file mode 100644
index 0000000..f7eb7f6
--- /dev/null
+++ b/example/android/build.gradle
@@ -0,0 +1,31 @@
+buildscript {
+ ext.kotlin_version = '1.7.10'
+ repositories {
+ google()
+ mavenCentral()
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.3.0'
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ mavenCentral()
+ }
+}
+
+rootProject.buildDir = '../build'
+subprojects {
+ project.buildDir = "${rootProject.buildDir}/${project.name}"
+}
+subprojects {
+ project.evaluationDependsOn(':app')
+}
+
+tasks.register("clean", Delete) {
+ delete rootProject.buildDir
+}
diff --git a/example/android/gradle.properties b/example/android/gradle.properties
new file mode 100644
index 0000000..94adc3a
--- /dev/null
+++ b/example/android/gradle.properties
@@ -0,0 +1,3 @@
+org.gradle.jvmargs=-Xmx1536M
+android.useAndroidX=true
+android.enableJetifier=true
diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..3c472b9
--- /dev/null
+++ b/example/android/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
diff --git a/example/android/settings.gradle b/example/android/settings.gradle
new file mode 100644
index 0000000..55c4ca8
--- /dev/null
+++ b/example/android/settings.gradle
@@ -0,0 +1,20 @@
+pluginManagement {
+ def flutterSdkPath = {
+ def properties = new Properties()
+ file("local.properties").withInputStream { properties.load(it) }
+ def flutterSdkPath = properties.getProperty("flutter.sdk")
+ assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
+ return flutterSdkPath
+ }
+ settings.ext.flutterSdkPath = flutterSdkPath()
+
+ includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
+
+ plugins {
+ id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
+ }
+}
+
+include ":app"
+
+apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
diff --git a/example/build.yaml b/example/build.yaml
new file mode 100644
index 0000000..785f9a0
--- /dev/null
+++ b/example/build.yaml
@@ -0,0 +1,11 @@
+targets:
+ $default:
+ sources:
+ - $package$
+ - lib/**
+ - pubspec.yaml
+ - test/**
+ builders:
+ pubspec_generator:
+ options:
+ output: lib/src/common/constant/pubspec.yaml.g.dart
diff --git a/example/config/development.json b/example/config/development.json
new file mode 100644
index 0000000..9cbc255
--- /dev/null
+++ b/example/config/development.json
@@ -0,0 +1,6 @@
+{
+ "ENVIRONMENT": "development",
+ "CENTRIFUGE_BASE_URL": "http://localhost:8000",
+ "CENTRIFUGE_CHANNEL": "chat",
+ "CENTRIFUGE_TIMEOUT": 8000
+}
diff --git a/example/console/README.md b/example/console/README.md
deleted file mode 100644
index f90a9df..0000000
--- a/example/console/README.md
+++ /dev/null
@@ -1,131 +0,0 @@
-# Example console chat app
-
-## Getting started with Centrifugo
-
-Before running this example make sure you created `chat` namespace in Centrifugo configuration and allowed publishing into channel.
-
-1. Call `centrifugo genconfig` to create a basic `config.json` at the first time.
-
-2. Update the `config.json` file with tokens and namespaces, e.g.:
-
-```json
-{
- "token_hmac_secret_key": "",
- "admin_password": "",
- "admin_secret": "",
- "api_key": "",
- "allowed_origins": ["http://localhost:8000"],
- "namespaces": [
- {
- "name": "chat",
- "join_leave": true,
- "presence": true,
- "allow_publish_for_subscriber": true,
- "allow_subscribe_for_client": true
- }
- ]
-}
-```
-
-3. When you use your own configuration, please re-generate the tokens registered in `example.dart`:
-
-- Use `centrifugo gentoken --user dart` to generate the user's JWT token.
-- Use `centrifugo gensubtoken --user dart --channel chat:index` to generate the user's subscription JWT token.
-
-4. Run Centrifugo with the admin option, to later send messages to all subscribers:
-
-```bash
-centrifugo --admin
-```
-
-For testing purposes only, you can also run Centrifugo in insecure client mode, so that the validity of JWT tokens
-are not checked:
-
-```bash
-centrifugo --client_insecure --admin
-```
-
-5. Now check the IP address if your system with `ipconfig` on Windows and `ip adds` on Unix-like systems and change the `serverAddr` variable in `example.dart` accordingly.
-
-6. When the configuration is correct, you can launch the console app with `dart example.dart`.
-
-7. When you have started centrifugo with the `--admin` option, you can also open `http://localhost:8000/#/actions` to send a message to your console app with the
- following settings:
-
-- Method: Publish
-- Channel: `chat:index`
-- Data: `{"message": "hello world", "username": "admin"}`
-
-Congratulations, you have a running centrifugo system and a Flutter console app that connects to it!
-
-## Centrifugo with Docker
-
-### Configurate Centrifugo
-
-First, you need to create a config file for Centrifugo. You can do this with Docker:
-
-1. Generate config file:
-
-Bash:
-
-```bash
-docker run -it --rm --volume ${PWD}:/centrifugo \
- --name centrifugo centrifugo/centrifugo:latest centrifugo genconfig
-```
-
-PowerShell:
-
-```powershell
-docker run -it --rm --volume ${PWD}:/centrifugo `
- --name centrifugo centrifugo/centrifugo:latest centrifugo genconfig
-```
-
-2. Generate user token
- with `centrifugo gentoken --user dart` to generate the user's JWT token.
- `centrifugo gensubtoken --user dart --channel chat:index` to generate the user's subscription JWT token.
-
-Bash:
-
-```bash
-docker run -it --rm --volume ${PWD}/config.json:/centrifugo/config.json:ro \
- --name centrifugo-cli centrifugo/centrifugo:latest \
- centrifugo gentoken --user dart
-```
-
-PowerShell:
-
-```powershell
-docker run -it --rm --volume ${PWD}/config.json:/centrifugo/config.json:ro `
- --name centrifugo-cli centrifugo/centrifugo:latest `
- centrifugo gentoken --user dart
-```
-
-### Run Centrifugo
-
-You can also run the example with Docker. First, build the image:
-
-Bash:
-
-```bash
-docker run -d -it --rm --ulimit nofile=65536:65536 -p 8000:8000/tcp \
- --volume ${PWD}/config.json:/centrifugo/config.json:ro \
- --name centrifugo centrifugo/centrifugo:latest centrifugo \
- --client_insecure --admin --admin_insecure --log_level=debug
-```
-
-PowerShell:
-
-```powershell
-docker run -d -it --rm --ulimit nofile=65536:65536 -p 8000:8000/tcp `
- --volume ${PWD}/config.json:/centrifugo/config.json:ro `
- --name centrifugo centrifugo/centrifugo:latest centrifugo `
- --client_insecure --admin --admin_insecure --log_level=debug
-```
-
-### Stop Centrifugo
-
-Bash & PowerShell:
-
-```bash
-docker stop centrifugo
-```
diff --git a/example/console/bin/main.dart b/example/console/bin/main.dart
deleted file mode 100644
index e0d2e23..0000000
--- a/example/console/bin/main.dart
+++ /dev/null
@@ -1,88 +0,0 @@
-// ignore_for_file: avoid_print
-
-import 'dart:async';
-import 'dart:io' as io show exit, Platform;
-
-import 'package:args/args.dart' show ArgParser;
-import 'package:spinify/spinify.dart';
-
-const url = 'ws://localhost:8000/connection/websocket?format=protobuf';
-
-void main([List? args]) {
- final options = _extractOptions(args ?? const []);
- runZonedGuarded(
- () async {
- // Create Spinify client.
- final client = Spinify(
- SpinifyConfig(
- client: (
- name: 'Spinify Console Example',
- version: '0.0.1',
- ),
- getToken: () =>
- 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkYXJ0IiwiZXhwIj'
- 'oyMjk0OTE1MTMyLCJpYXQiOjE2OTAxMTUxMzJ9.hIGDXKn-eMdsdj57wn6-4y5p'
- 'k0tZcKoJCu0qxuuWSoQ',
- ),
- );
-
- // Connect to centrifuge server using provided URL.
- await client.connect(url);
-
- // Output current client state.
- print('Current state after connect: ${client.state}');
-
- // State changes.
- // Or you can observe specific state changes.
- // e.g. `client.states.connected`
- client.states.listen((state) => print('State changed to: $state'));
-
- // TODO(plugfox): Read from stdin and send to channel.
-
- /* // Close client
- Timer(
- const Duration(seconds: 240),
- () async {
- await client.close();
- await Future.delayed(const Duration(seconds: 1));
- io.exit(0);
- },
- ); */
- },
- (error, stackTrace) {
- print('Critical error: $error');
- io.exit(1);
- },
- zoneValues: {
- #dev.plugfox.spinify.log: options.verbose,
- },
- );
-}
-
-({String token, bool verbose}) _extractOptions(List args) {
- final result = (ArgParser()
- ..addOption(
- 'token',
- abbr: 't',
- help: 'Token to use.',
- )
- ..addFlag(
- 'verbose',
- abbr: 'v',
- help: 'Verbose mode.',
- defaultsTo: false,
- ))
- .parse(args);
- final token = result['token']?.toString() ??
- io.Platform.environment['SPINIFY_JWT_TOKEN'];
- if (token == null || token.isEmpty || token.split('.').length != 3) {
- print('Please provide a valid JWT token as argument with --token option '
- 'or '
- 'SPINIFY_JWT_TOKEN environment variable.');
- io.exit(1);
- }
- return (
- token: token,
- verbose: result['verbose'] == true,
- );
-}
diff --git a/example/console/pubspec.yaml b/example/console/pubspec.yaml
deleted file mode 100644
index 154314f..0000000
--- a/example/console/pubspec.yaml
+++ /dev/null
@@ -1,48 +0,0 @@
-name: spinify_example_console
-
-description: >
- Dart client to communicate with Centrifuge and Centrifugo from Flutter and VM
- over WebSockets
-
-version: 0.0.1-pre.1
-
-publish_to: 'none'
-
-homepage: https://centrifugal.dev
-
-repository: https://github.com/PlugFox/spinify
-
-issue_tracker: https://github.com/PlugFox/spinify/issues
-
-funding:
- - https://www.buymeacoffee.com/plugfox
- - https://www.patreon.com/plugfox
- - https://boosty.to/plugfox
-
-topics:
- - spinify
- - centrifugo
- - centrifuge
- - websocket
- - cross-platform
-
-platforms:
- android:
- ios:
- linux:
- macos:
- web:
- windows:
-
-#screenshots:
-# - description: 'Example of using the ws library to connect to a Centrifugo server.'
-# path: example.png
-
-environment:
- sdk: '>=3.0.0 <4.0.0'
-
-dependencies:
- spinify:
- path: ../../
-
- args: ^2.4.2
\ No newline at end of file
diff --git a/example/ios/.gitignore b/example/ios/.gitignore
new file mode 100644
index 0000000..7a7f987
--- /dev/null
+++ b/example/ios/.gitignore
@@ -0,0 +1,34 @@
+**/dgph
+*.mode1v3
+*.mode2v3
+*.moved-aside
+*.pbxuser
+*.perspectivev3
+**/*sync/
+.sconsign.dblite
+.tags*
+**/.vagrant/
+**/DerivedData/
+Icon?
+**/Pods/
+**/.symlinks/
+profile
+xcuserdata
+**/.generated/
+Flutter/App.framework
+Flutter/Flutter.framework
+Flutter/Flutter.podspec
+Flutter/Generated.xcconfig
+Flutter/ephemeral/
+Flutter/app.flx
+Flutter/app.zip
+Flutter/flutter_assets/
+Flutter/flutter_export_environment.sh
+ServiceDefinitions.json
+Runner/GeneratedPluginRegistrant.*
+
+# Exceptions to above rules.
+!default.mode1v3
+!default.mode2v3
+!default.pbxuser
+!default.perspectivev3
diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/example/ios/Flutter/AppFrameworkInfo.plist
new file mode 100644
index 0000000..9625e10
--- /dev/null
+++ b/example/ios/Flutter/AppFrameworkInfo.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ App
+ CFBundleIdentifier
+ io.flutter.flutter.app
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ App
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1.0
+ MinimumOSVersion
+ 11.0
+
+
diff --git a/example/ios/Flutter/Debug.xcconfig b/example/ios/Flutter/Debug.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/example/ios/Flutter/Debug.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/example/ios/Flutter/Release.xcconfig b/example/ios/Flutter/Release.xcconfig
new file mode 100644
index 0000000..592ceee
--- /dev/null
+++ b/example/ios/Flutter/Release.xcconfig
@@ -0,0 +1 @@
+#include "Generated.xcconfig"
diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..be18bd5
--- /dev/null
+++ b/example/ios/Runner.xcodeproj/project.pbxproj
@@ -0,0 +1,614 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXContainerItemProxy section */
+ 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 97C146E61CF9000F007C117D /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 97C146ED1CF9000F007C117D;
+ remoteInfo = Runner;
+ };
+/* End PBXContainerItemProxy section */
+
+/* Begin PBXCopyFilesBuildPhase section */
+ 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
+/* Begin PBXFileReference section */
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; };
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
+ 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; };
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 97C146EB1CF9000F007C117D /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 9740EEB11CF90186004384FC /* Flutter */ = {
+ isa = PBXGroup;
+ children = (
+ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
+ 9740EEB21CF90195004384FC /* Debug.xcconfig */,
+ 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
+ 9740EEB31CF90195004384FC /* Generated.xcconfig */,
+ );
+ name = Flutter;
+ sourceTree = "";
+ };
+ 331C8082294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXGroup;
+ children = (
+ 331C807B294A618700263BE5 /* RunnerTests.swift */,
+ );
+ path = RunnerTests;
+ sourceTree = "";
+ };
+ 97C146E51CF9000F007C117D = {
+ isa = PBXGroup;
+ children = (
+ 9740EEB11CF90186004384FC /* Flutter */,
+ 97C146F01CF9000F007C117D /* Runner */,
+ 97C146EF1CF9000F007C117D /* Products */,
+ 331C8082294A63A400263BE5 /* RunnerTests */,
+ );
+ sourceTree = "";
+ };
+ 97C146EF1CF9000F007C117D /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146EE1CF9000F007C117D /* Runner.app */,
+ 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ 97C146F01CF9000F007C117D /* Runner */ = {
+ isa = PBXGroup;
+ children = (
+ 97C146FA1CF9000F007C117D /* Main.storyboard */,
+ 97C146FD1CF9000F007C117D /* Assets.xcassets */,
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
+ 97C147021CF9000F007C117D /* Info.plist */,
+ 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
+ 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
+ 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
+ 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
+ );
+ path = Runner;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 331C8080294A63A400263BE5 /* RunnerTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
+ buildPhases = (
+ 331C807D294A63A400263BE5 /* Sources */,
+ 331C807E294A63A400263BE5 /* Frameworks */,
+ 331C807F294A63A400263BE5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */,
+ );
+ name = RunnerTests;
+ productName = RunnerTests;
+ productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
+ 97C146ED1CF9000F007C117D /* Runner */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
+ buildPhases = (
+ 9740EEB61CF901F6004384FC /* Run Script */,
+ 97C146EA1CF9000F007C117D /* Sources */,
+ 97C146EB1CF9000F007C117D /* Frameworks */,
+ 97C146EC1CF9000F007C117D /* Resources */,
+ 9705A1C41CF9048500538489 /* Embed Frameworks */,
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Runner;
+ productName = Runner;
+ productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 97C146E61CF9000F007C117D /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ BuildIndependentTargetsInParallel = YES;
+ LastUpgradeCheck = 1430;
+ ORGANIZATIONNAME = "";
+ TargetAttributes = {
+ 331C8080294A63A400263BE5 = {
+ CreatedOnToolsVersion = 14.0;
+ TestTargetID = 97C146ED1CF9000F007C117D;
+ };
+ 97C146ED1CF9000F007C117D = {
+ CreatedOnToolsVersion = 7.3.1;
+ LastSwiftMigration = 1100;
+ };
+ };
+ };
+ buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
+ compatibilityVersion = "Xcode 9.3";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 97C146E51CF9000F007C117D;
+ productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 97C146ED1CF9000F007C117D /* Runner */,
+ 331C8080294A63A400263BE5 /* RunnerTests */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 331C807F294A63A400263BE5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EC1CF9000F007C117D /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
+ 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
+ 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
+ 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
+ );
+ name = "Thin Binary";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
+ };
+ 9740EEB61CF901F6004384FC /* Run Script */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Run Script";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 331C807D294A63A400263BE5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ 97C146EA1CF9000F007C117D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
+ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin PBXTargetDependency section */
+ 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 97C146ED1CF9000F007C117D /* Runner */;
+ targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
+ };
+/* End PBXTargetDependency section */
+
+/* Begin PBXVariantGroup section */
+ 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C146FB1CF9000F007C117D /* Base */,
+ );
+ name = Main.storyboard;
+ sourceTree = "";
+ };
+ 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 97C147001CF9000F007C117D /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
+/* Begin XCBuildConfiguration section */
+ 249021D3217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Profile;
+ };
+ 249021D4217E4FDB00AE95B9 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.plugfox.spinify.spinifyapp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Profile;
+ };
+ 331C8088294A63A400263BE5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = AE0B7B92F70575B8D7E0D07E /* Pods-RunnerTests.debug.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = dev.plugfox.spinify.spinifyapp.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Debug;
+ };
+ 331C8089294A63A400263BE5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 89B67EB44CE7B6631473024E /* Pods-RunnerTests.release.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = dev.plugfox.spinify.spinifyapp.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Release;
+ };
+ 331C808A294A63A400263BE5 /* Profile */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 640959BDD8F10B91D80A66BE /* Pods-RunnerTests.profile.xcconfig */;
+ buildSettings = {
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CODE_SIGN_STYLE = Automatic;
+ CURRENT_PROJECT_VERSION = 1;
+ GENERATE_INFOPLIST_FILE = YES;
+ MARKETING_VERSION = 1.0;
+ PRODUCT_BUNDLE_IDENTIFIER = dev.plugfox.spinify.spinifyapp.RunnerTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_VERSION = 5.0;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
+ };
+ name = Profile;
+ };
+ 97C147031CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ };
+ name = Debug;
+ };
+ 97C147041CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ IPHONEOS_DEPLOYMENT_TARGET = 11.0;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ SDKROOT = iphoneos;
+ SUPPORTED_PLATFORMS = iphoneos;
+ SWIFT_COMPILATION_MODE = wholemodule;
+ SWIFT_OPTIMIZATION_LEVEL = "-O";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+ 97C147061CF9000F007C117D /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.plugfox.spinify.spinifyapp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 97C147071CF9000F007C117D /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ ENABLE_BITCODE = NO;
+ INFOPLIST_FILE = Runner/Info.plist;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = dev.plugfox.spinify.spinifyapp;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 331C8088294A63A400263BE5 /* Debug */,
+ 331C8089294A63A400263BE5 /* Release */,
+ 331C808A294A63A400263BE5 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147031CF9000F007C117D /* Debug */,
+ 97C147041CF9000F007C117D /* Release */,
+ 249021D3217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 97C147061CF9000F007C117D /* Debug */,
+ 97C147071CF9000F007C117D /* Release */,
+ 249021D4217E4FDB00AE95B9 /* Profile */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 97C146E61CF9000F007C117D /* Project object */;
+}
diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
new file mode 100644
index 0000000..87131a0
--- /dev/null
+++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/example/ios/Runner.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..1d526a1
--- /dev/null
+++ b/example/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
new file mode 100644
index 0000000..f9b0d7c
--- /dev/null
+++ b/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
@@ -0,0 +1,8 @@
+
+
+
+
+ PreviewsEnabled
+
+
+
diff --git a/example/ios/Runner/AppDelegate.swift b/example/ios/Runner/AppDelegate.swift
new file mode 100644
index 0000000..70693e4
--- /dev/null
+++ b/example/ios/Runner/AppDelegate.swift
@@ -0,0 +1,13 @@
+import UIKit
+import Flutter
+
+@UIApplicationMain
+@objc class AppDelegate: FlutterAppDelegate {
+ override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
+ ) -> Bool {
+ GeneratedPluginRegistrant.register(with: self)
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+}
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..d36b1fa
--- /dev/null
+++ b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,122 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-20x20@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-29x29@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-40x40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-App-60x60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-20x20@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-29x29@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-40x40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@1x.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "76x76",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-76x76@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "83.5x83.5",
+ "idiom" : "ipad",
+ "filename" : "Icon-App-83.5x83.5@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "Icon-App-1024x1024@1x.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
new file mode 100644
index 0000000..dc9ada4
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
new file mode 100644
index 0000000..7353c41
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
new file mode 100644
index 0000000..6ed2d93
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
new file mode 100644
index 0000000..4cd7b00
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
new file mode 100644
index 0000000..fe73094
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
new file mode 100644
index 0000000..321773c
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
new file mode 100644
index 0000000..797d452
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
new file mode 100644
index 0000000..502f463
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
new file mode 100644
index 0000000..0ec3034
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
new file mode 100644
index 0000000..e9f5fea
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
new file mode 100644
index 0000000..84ac32a
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
new file mode 100644
index 0000000..8953cba
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
new file mode 100644
index 0000000..0467bf1
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
new file mode 100644
index 0000000..0bedcf2
--- /dev/null
+++ b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
@@ -0,0 +1,23 @@
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage.png",
+ "scale" : "1x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "universal",
+ "filename" : "LaunchImage@3x.png",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
new file mode 100644
index 0000000..9da19ea
Binary files /dev/null and b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ
diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
new file mode 100644
index 0000000..89c2725
--- /dev/null
+++ b/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
@@ -0,0 +1,5 @@
+# Launch Screen Assets
+
+You can customize the launch screen with your own desired assets by replacing the image files in this directory.
+
+You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
\ No newline at end of file
diff --git a/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..f2e259c
--- /dev/null
+++ b/example/ios/Runner/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/ios/Runner/Base.lproj/Main.storyboard b/example/ios/Runner/Base.lproj/Main.storyboard
new file mode 100644
index 0000000..f3c2851
--- /dev/null
+++ b/example/ios/Runner/Base.lproj/Main.storyboard
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist
new file mode 100644
index 0000000..c1c8f38
--- /dev/null
+++ b/example/ios/Runner/Info.plist
@@ -0,0 +1,51 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ Spinify App
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ spinifyapp
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIViewControllerBasedStatusBarAppearance
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+
+
diff --git a/example/ios/Runner/Runner-Bridging-Header.h b/example/ios/Runner/Runner-Bridging-Header.h
new file mode 100644
index 0000000..308a2a5
--- /dev/null
+++ b/example/ios/Runner/Runner-Bridging-Header.h
@@ -0,0 +1 @@
+#import "GeneratedPluginRegistrant.h"
diff --git a/example/ios/RunnerTests/RunnerTests.swift b/example/ios/RunnerTests/RunnerTests.swift
new file mode 100644
index 0000000..86a7c3b
--- /dev/null
+++ b/example/ios/RunnerTests/RunnerTests.swift
@@ -0,0 +1,12 @@
+import Flutter
+import UIKit
+import XCTest
+
+class RunnerTests: XCTestCase {
+
+ func testExample() {
+ // If you add code to the Runner application, consider adding tests here.
+ // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
+ }
+
+}
diff --git a/example/lib/main.dart b/example/lib/main.dart
new file mode 100644
index 0000000..f532f7c
--- /dev/null
+++ b/example/lib/main.dart
@@ -0,0 +1,33 @@
+import 'dart:async';
+
+import 'package:flutter/material.dart';
+import 'package:l/l.dart';
+import 'package:spinifyapp/src/common/util/logger_util.dart';
+import 'package:spinifyapp/src/common/widget/app.dart';
+import 'package:spinifyapp/src/feature/dependencies/initialization/initialization.dart';
+import 'package:spinifyapp/src/feature/dependencies/widget/dependencies_scope.dart';
+import 'package:spinifyapp/src/feature/dependencies/widget/initialization_splash_screen.dart';
+
+void main() => l.capture(
+ () => runZonedGuarded(
+ () {
+ final initialization = InitializationExecutor();
+ runApp(
+ DependenciesScope(
+ initialization: initialization(),
+ splashScreen: InitializationSplashScreen(
+ progress: initialization,
+ ),
+ child: const App(),
+ ),
+ );
+ },
+ l.e,
+ ),
+ const LogOptions(
+ handlePrint: true,
+ messageFormatting: LoggerUtil.messageFormatting,
+ outputInRelease: false,
+ printColors: true,
+ ),
+ );
diff --git a/example/lib/src/common/constant/config.dart b/example/lib/src/common/constant/config.dart
new file mode 100644
index 0000000..772fef8
--- /dev/null
+++ b/example/lib/src/common/constant/config.dart
@@ -0,0 +1,81 @@
+/// Config for app.
+abstract final class Config {
+ /// Environment flavor.
+ /// e.g. development, staging, production
+ static final EnvironmentFlavor environment = EnvironmentFlavor.from(
+ const String.fromEnvironment('ENVIRONMENT', defaultValue: 'development'));
+
+ // --- Centrifuge --- //
+
+ /// Centrifuge url.
+ /// e.g. https://domain.tld
+ static const String centrifugeBaseUrl = String.fromEnvironment(
+ 'CENTRIFUGE_BASE_URL',
+ defaultValue: 'http://127.0.0.1:8000');
+
+ /// Centrifuge timeout in milliseconds.
+ /// e.g. 15000 ms
+ static const Duration centrifugeTimeout = Duration(
+ milliseconds:
+ int.fromEnvironment('CENTRIFUGE_TIMEOUT', defaultValue: 15000));
+
+ /// Secret for HMAC token.
+ static const String centrifugeToken =
+ String.fromEnvironment('CENTRIFUGE_TOKEN_HMAC_SECRET');
+
+ /// Channel by default.
+ static const String centrifugeChannel =
+ String.fromEnvironment('CENTRIFUGE_CHANNEL');
+
+ /// Username by default.
+ static const String centrifugeUsername =
+ String.fromEnvironment('CENTRIFUGE_USERNAME');
+ // --- Layout --- //
+
+ /// Maximum screen layout width for screen with list view.
+ static const int maxScreenLayoutWidth =
+ int.fromEnvironment('MAX_LAYOUT_WIDTH', defaultValue: 768);
+}
+
+/// Environment flavor.
+/// e.g. development, staging, production
+enum EnvironmentFlavor {
+ /// Local
+ local('local'),
+
+ /// Development
+ development('development'),
+
+ /// Staging
+ staging('staging'),
+
+ /// Production
+ production('production');
+
+ /// {@nodoc}
+ const EnvironmentFlavor(this.value);
+
+ /// {@nodoc}
+ factory EnvironmentFlavor.from(String? value) =>
+ switch (value?.trim().toLowerCase()) {
+ 'local' || 'loc' || 'lcl' || 'l' => development,
+ 'development' || 'debug' || 'develop' || 'dev' || 'd' => development,
+ 'staging' || 'profile' || 'stage' || 'stg' || 's' => staging,
+ 'production' || 'release' || 'prod' || 'prd' || 'p' => production,
+ _ => const bool.fromEnvironment('dart.vm.product')
+ ? production
+ : development,
+ };
+
+ /// development, staging, production
+ final String value;
+
+ /// Whether the environment is development.
+ bool get isDevelopment => this == development;
+
+ /// Whether the environment is staging.
+ bool get isStaging => this == staging;
+
+ /// Whether the environment is production.
+ bool get isProduction => this == production;
+}
diff --git a/example/lib/src/common/constant/pubspec.yaml.g.dart b/example/lib/src/common/constant/pubspec.yaml.g.dart
new file mode 100644
index 0000000..8b1243b
--- /dev/null
+++ b/example/lib/src/common/constant/pubspec.yaml.g.dart
@@ -0,0 +1,527 @@
+// ignore_for_file: lines_longer_than_80_chars, unnecessary_raw_strings
+// ignore_for_file: use_raw_strings, avoid_classes_with_only_static_members
+// ignore_for_file: avoid_escaping_inner_quotes, prefer_single_quotes
+
+/// GENERATED CODE - DO NOT MODIFY BY HAND
+
+library pubspec;
+
+// *****************************************************************************
+// * pubspec_generator *
+// *****************************************************************************
+
+/*
+
+ MIT License
+
+ Copyright (c) 2023 Plague Fox
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
+ */
+
+/// Given a version number MAJOR.MINOR.PATCH, increment the:
+///
+/// 1. MAJOR version when you make incompatible API changes
+/// 2. MINOR version when you add functionality in a backward compatible manner
+/// 3. PATCH version when you make backward compatible bug fixes
+///
+/// Additional labels for pre-release and build metadata are available
+/// as extensions to the MAJOR.MINOR.PATCH format.
+typedef PubspecVersion = ({
+ String representation,
+ String canonical,
+ int major,
+ int minor,
+ int patch,
+ List preRelease,
+ List build
+});
+
+/// # The pubspec file
+///
+/// Code generated pubspec.yaml.g.dart from pubspec.yaml
+/// This class is generated from pubspec.yaml, do not edit directly.
+///
+/// Every pub package needs some metadata so it can specify its dependencies.
+/// Pub packages that are shared with others also need to provide some other
+/// information so users can discover them. All of this metadata goes
+/// in the package’s pubspec:
+/// a file named pubspec.yaml that’s written in the YAML language.
+///
+/// Read more:
+/// - https://pub.dev/packages/pubspec_generator
+/// - https://dart.dev/tools/pub/pubspec
+sealed class Pubspec {
+ /// Version
+ ///
+ /// Current app [version]
+ ///
+ /// Every package has a version.
+ /// A version number is required to host your package on the pub.dev site,
+ /// but can be omitted for local-only packages.
+ /// If you omit it, your package is implicitly versioned 0.0.0.
+ ///
+ /// Versioning is necessary for reusing code while letting it evolve quickly.
+ /// A version number is three numbers separated by dots, like 0.2.43.
+ /// It can also optionally have a build ( +1, +2, +hotfix.oopsie)
+ /// or prerelease (-dev.4, -alpha.12, -beta.7, -rc.5) suffix.
+ ///
+ /// Each time you publish your package, you publish it at a specific version.
+ /// Once that’s been done, consider it hermetically sealed:
+ /// you can’t touch it anymore. To make more changes,
+ /// you’ll need a new version.
+ ///
+ /// When you select a version,
+ /// follow [semantic versioning](https://semver.org/).
+ static const PubspecVersion version = (
+ /// Non-canonical string representation of the version as provided
+ /// in the pubspec.yaml file.
+ representation: r'1.0.0+1',
+
+ /// Returns a 'canonicalized' representation
+ /// of the application version.
+ /// This represents the version string in accordance with
+ /// Semantic Versioning (SemVer) standards.
+ canonical: r'1.0.0+1',
+
+ /// MAJOR version when you make incompatible API changes.
+ /// The major version number: 1 in "1.2.3".
+ major: 1,
+
+ /// MINOR version when you add functionality
+ /// in a backward compatible manner.
+ /// The minor version number: 2 in "1.2.3".
+ minor: 0,
+
+ /// PATCH version when you make backward compatible bug fixes.
+ /// The patch version number: 3 in "1.2.3".
+ patch: 0,
+
+ /// The pre-release identifier: "foo" in "1.2.3-foo".
+ preRelease: [],
+
+ /// The build identifier: "foo" in "1.2.3+foo".
+ build: [r'1'],
+ );
+
+ /// Build date and time (UTC)
+ static final DateTime timestamp = DateTime.utc(
+ 2023,
+ 8,
+ 4,
+ 9,
+ 6,
+ 50,
+ 841,
+ 552,
+ );
+
+ /// Name
+ ///
+ /// Current app [name]
+ ///
+ /// Every package needs a name.
+ /// It’s how other packages refer to yours, and how it appears to the world,
+ /// should you publish it.
+ ///
+ /// The name should be all lowercase, with underscores to separate words,
+ /// just_like_this. Use only basic Latin letters and Arabic digits:
+ /// [a-z0-9_]. Also, make sure the name is a valid Dart identifier—that
+ /// it doesn’t start with digits
+ /// and isn’t a [reserved word](https://dart.dev/language/keywords).
+ ///
+ /// Try to pick a name that is clear, terse, and not already in use.
+ /// A quick search of packages on the [pub.dev site](https://pub.dev/packages)
+ /// to make sure that nothing else is using your name is recommended.
+ static const String name = r'spinifyapp';
+
+ /// Description
+ ///
+ /// Current app [description]
+ ///
+ /// This is optional for your own personal packages,
+ /// but if you intend to publish your package you must provide a description,
+ /// which should be in English.
+ /// The description should be relatively short, from 60 to 180 characters
+ /// and tell a casual reader what they might want to know about your package.
+ ///
+ /// Think of the description as the sales pitch for your package.
+ /// Users see it when they [browse for packages](https://pub.dev/packages).
+ /// The description is plain text: no markdown or HTML.
+ static const String description = r'Spinify App Example';
+
+ /// Homepage
+ ///
+ /// Current app [homepage]
+ ///
+ /// This should be a URL pointing to the website for your package.
+ /// For [hosted packages](https://dart.dev/tools/pub/dependencies#hosted-packages),
+ /// this URL is linked from the package’s page.
+ /// While providing a homepage is optional,
+ /// please provide it or repository (or both).
+ /// It helps users understand where your package is coming from.
+ static const String homepage = r'https://centrifugal.dev';
+
+ /// Repository
+ ///
+ /// Current app [repository]
+ ///
+ /// Repository
+ /// The optional repository field should contain the URL for your package’s
+ /// source code repository—for example,
+ /// https://github.com//.
+ /// If you publish your package to the pub.dev site,
+ /// then your package’s page displays the repository URL.
+ /// While providing a repository is optional,
+ /// please provide it or homepage (or both).
+ /// It helps users understand where your package is coming from.
+ static const String repository = r'https://github.com/PlugFox/spinify';
+
+ /// Issue tracker
+ ///
+ /// Current app [issueTracker]
+ ///
+ /// The optional issue_tracker field should contain a URL for the package’s
+ /// issue tracker, where existing bugs can be viewed and new bugs can be filed.
+ /// The pub.dev site attempts to display a link
+ /// to each package’s issue tracker, using the value of this field.
+ /// If issue_tracker is missing but repository is present and points to GitHub,
+ /// then the pub.dev site uses the default issue tracker
+ /// (https://github.com///issues).
+ static const String issueTracker =
+ r'https://github.com/PlugFox/spinify/issues';
+
+ /// Documentation
+ ///
+ /// Current app [documentation]
+ ///
+ /// Some packages have a site that hosts documentation,
+ /// separate from the main homepage and from the Pub-generated API reference.
+ /// If your package has additional documentation, add a documentation:
+ /// field with that URL; pub shows a link to this documentation
+ /// on your package’s page.
+ static const String documentation = r'';
+
+ /// Publish_to
+ ///
+ /// Current app [publishTo]
+ ///
+ /// The default uses the [pub.dev](https://pub.dev/) site.
+ /// Specify none to prevent a package from being published.
+ /// This setting can be used to specify a custom pub package server to publish.
+ ///
+ /// ```yaml
+ /// publish_to: none
+ /// ```
+ static const String publishTo = r'none';
+
+ /// Funding
+ ///
+ /// Current app [funding]
+ ///
+ /// Package authors can use the funding property to specify
+ /// a list of URLs that provide information on how users
+ /// can help fund the development of the package. For example:
+ ///
+ /// ```yaml
+ /// funding:
+ /// - https://www.buymeacoffee.com/example_user
+ /// - https://www.patreon.com/some-account
+ /// ```
+ ///
+ /// If published to [pub.dev](https://pub.dev/) the links are displayed on the package page.
+ /// This aims to help users fund the development of their dependencies.
+ static const List