Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rvms #193

Open
wants to merge 78 commits into
base: master
Choose a base branch
from
Open

Rvms #193

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
0afddb8
first try :-)
escamoteur Oct 4, 2020
42ddb93
fixed updating
escamoteur Oct 5, 2020
14123fa
added a service and updated tests and reatme
escamoteur Oct 8, 2020
17bcacb
Run dartfmt on the codebase
brianegan Jan 7, 2020
937fbe2
Apply pedantic analysis options to all examples and run it on CI
brianegan Jan 7, 2020
27525c7
Add more info to runTest output, fix reactive repository
brianegan Jan 8, 2020
e5e7da1
Update line count after formatting
brianegan Jan 8, 2020
6c4d94f
Fix cirrusci osx tests
brianegan Jan 8, 2020
7bc9a60
Fix README.md
brianegan Jan 8, 2020
c8f0e40
Initial implementation of provider_sample application
shakib609 Jun 6, 2019
31567fd
Update README to include the provider app
shakib609 Jun 6, 2019
d914176
Add provider example app to .cirrus.yml for Cirrus CI
shakib609 Jun 6, 2019
a368de1
Update .travis.yml according to other samples
shakib609 Aug 26, 2019
9df595e
Update provider example to latest version
brianegan Jan 8, 2020
4068e5b
Update provider/lib/details_screen.dart
brianegan Jan 10, 2020
0bc9d1b
Update provider/lib/details_screen.dart
brianegan Jan 10, 2020
b7945f0
Update based on feedback
brianegan Jan 10, 2020
a9e53ca
Fix formatting, remove callbacks where possible.
brianegan Jan 10, 2020
901ab52
Rename provider_sample to change_notifier_provider_sample to clarify …
brianegan Jan 10, 2020
9e93b60
Add latest line count
brianegan Jan 10, 2020
f0c2bd6
Fix built_redux tests that were accidentally refactored
brianegan Jan 10, 2020
6086109
Add example to website
brianegan Jan 10, 2020
f4aa3f0
Fix ios build of change notifier provider sample
brianegan Jan 10, 2020
ede8196
Try updated version of scoped model
brianegan Jan 10, 2020
e982692
Add local storage repository
brianegan Jan 9, 2020
5c81c6a
Add web support to mobx example
brianegan Jan 9, 2020
c4cd196
Web version of bloc_flutter
brianegan Jan 10, 2020
b2abff4
Add web version of change_notifier_provider sample
brianegan Jan 11, 2020
620a9c6
Add web version of inherited_widget sample
brianegan Jan 11, 2020
1d94b7e
Revert mobx accident
brianegan Jan 11, 2020
bc10669
Add web version of mvi sample
brianegan Jan 11, 2020
588da61
Remove generated file
brianegan Jan 11, 2020
578fc7d
ignore generated dart plugin registrants
brianegan Jan 11, 2020
89ac282
Add web version of Redux example
brianegan Jan 11, 2020
85a5fae
Add web version of Simple Bloc example
brianegan Jan 11, 2020
210fb0c
Add web version of Vanilla example
brianegan Jan 11, 2020
1d69bea
Add web version of Bloc Library example
brianegan Jan 11, 2020
fa60202
Restore custom launcher icons
brianegan Jan 11, 2020
6a3c30a
Fix formatting
brianegan Jan 11, 2020
c6191ac
Fix redux, rename/refactor repository and add tests
brianegan Jan 11, 2020
c69f4a1
Add codemagic static sites to readme and website
brianegan Jan 11, 2020
ab6d507
General fixes
brianegan Jan 11, 2020
a527b42
add states_rebuilder sample
Jan 12, 2020
12cf991
update states_rebuilder to 1.11.2
GIfatahTH Jan 12, 2020
b97236b
update readme
GIfatahTH Jan 12, 2020
0c13e7c
add states_rebuilder library and Contributor
GIfatahTH Jan 13, 2020
d22228f
add states_rebuilder sample
GIfatahTH Jan 13, 2020
a08c479
add states_rebuilder
GIfatahTH Jan 13, 2020
d4636ea
add states_rebuilder
GIfatahTH Jan 13, 2020
f189168
refactor to use StatesRebuilderTodosRepository
GIfatahTH Jan 13, 2020
42c15ac
refactor to use StatesRebuilderTodosRepository
GIfatahTH Jan 13, 2020
dbdbcab
refactor to use StatesRebuilderTodosRepository
GIfatahTH Jan 13, 2020
a513603
add comments
GIfatahTH Jan 13, 2020
abdd8bd
add comments
GIfatahTH Jan 13, 2020
9a5c7e5
Add codemagic config and links to states_rebuilder
brianegan Jan 14, 2020
c296132
Remove Codemagic yaml, didn't solve the problem
brianegan Jan 14, 2020
139af99
Dark mode for the website
brianegan Jan 29, 2020
2c1739e
fork change_notifier_provider sample
rrousselGit Feb 10, 2020
3ec8232
make it work
rrousselGit Feb 10, 2020
9e0f18e
fix typo (freeze vs freezed)
rrousselGit Feb 10, 2020
8cbc7b4
remove commented code
rrousselGit Feb 10, 2020
de03779
format
rrousselGit Feb 10, 2020
91e215e
Use freezed_annotation
mono0926 Feb 15, 2020
cf4576c
cache getters
rrousselGit Feb 16, 2020
b4b8dab
revert material fix
rrousselGit Feb 20, 2020
c6db56b
feedback
rrousselGit Feb 20, 2020
8023b05
split tests
rrousselGit Feb 20, 2020
37effd3
fix infinite loop
rrousselGit Feb 20, 2020
cd3804a
Add initial load test
rrousselGit Feb 20, 2020
4f62ccc
ChangeNotifierProviderSample fix:
brianegan Feb 20, 2020
1a4d675
Fix home_screen_test.dart
brianegan Feb 20, 2020
8cd58ae
Fix ValueNotifierProvider memory leak
mono0926 Mar 4, 2020
8df4d96
first try :-)
escamoteur Oct 4, 2020
9949925
Merge branch 'master' into rvms
escamoteur Nov 1, 2020
26d3645
deleted filed that don't belong in scc
escamoteur Nov 1, 2020
3c5b9cd
remove files that don't belong in scc
escamoteur Nov 1, 2020
a0fbebc
updated dependencies and clean up
escamoteur Nov 1, 2020
878dd9d
fixed warnings
escamoteur Nov 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,10 @@ lcov.info
!**/*/ios/**/default.pbxuser
!**/*/ios/**/default.perspectivev3
**/*/generated_plugin_registrant.dart
built_redux/.flutter-plugins-dependencies
firestore_redux/.flutter-plugins-dependencies
frideos_library/.flutter-plugins-dependencies
mvc/.flutter-plugins-dependencies
mvu/.flutter-plugins-dependencies
rvms/.flutter-plugins-dependencies
scoped_model/.flutter-plugins-dependencies
152 changes: 152 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "blocs",
"cwd": "blocs",
"request": "launch",
"type": "dart"
},
{
"name": "bloc_flutter",
"cwd": "bloc_flutter",
"request": "launch",
"type": "dart"
},
{
"name": "bloc_library",
"cwd": "bloc_library",
"request": "launch",
"type": "dart"
},
{
"name": "built_redux",
"cwd": "built_redux",
"request": "launch",
"type": "dart"
},
{
"name": "firebase_flutter_repository",
"cwd": "firebase_flutter_repository",
"request": "launch",
"type": "dart"
},
{
"name": "firebase_rtdb_flutter_repository",
"cwd": "firebase_rtdb_flutter_repository",
"request": "launch",
"type": "dart"
},
{
"name": "firestore_redux",
"cwd": "firestore_redux",
"request": "launch",
"type": "dart"
},
{
"name": "frideos_library",
"cwd": "frideos_library",
"request": "launch",
"type": "dart"
},
{
"name": "inherited_widget",
"cwd": "inherited_widget",
"request": "launch",
"type": "dart"
},
{
"name": "integration_tests",
"cwd": "integration_tests",
"request": "launch",
"type": "dart"
},
{
"name": "mobx",
"cwd": "mobx",
"request": "launch",
"type": "dart"
},
{
"name": "mvc",
"cwd": "mvc",
"request": "launch",
"type": "dart"
},
{
"name": "mvi_base",
"cwd": "mvi_base",
"request": "launch",
"type": "dart"
},
{
"name": "mvi_flutter",
"cwd": "mvi_flutter",
"request": "launch",
"type": "dart"
},
{
"name": "mvu",
"cwd": "mvu",
"request": "launch",
"type": "dart"
},
{
"name": "redux",
"cwd": "redux",
"request": "launch",
"type": "dart"
},
{
"name": "rvms",
"cwd": "rvms",
"request": "launch",
"type": "dart"
},
{
"name": "scoped_model",
"cwd": "scoped_model",
"request": "launch",
"type": "dart"
},
{
"name": "simple_blocs",
"cwd": "simple_blocs",
"request": "launch",
"type": "dart"
},
{
"name": "simple_bloc_flutter",
"cwd": "simple_bloc_flutter",
"request": "launch",
"type": "dart"
},
{
"name": "todos_app_core",
"cwd": "todos_app_core",
"request": "launch",
"type": "dart"
},
{
"name": "todos_repository_core",
"cwd": "todos_repository_core",
"request": "launch",
"type": "dart"
},
{
"name": "todos_repository_simple",
"cwd": "todos_repository_simple",
"request": "launch",
"type": "dart"
},
{
"name": "vanilla",
"cwd": "vanilla",
"request": "launch",
"type": "dart"
}
]
}
1 change: 0 additions & 1 deletion built_redux/.flutter-plugins-dependencies

This file was deleted.

1 change: 0 additions & 1 deletion firestore_redux/.flutter-plugins-dependencies

This file was deleted.

1 change: 0 additions & 1 deletion frideos_library/.flutter-plugins-dependencies

This file was deleted.

1 change: 0 additions & 1 deletion mvc/.flutter-plugins-dependencies

This file was deleted.

1 change: 0 additions & 1 deletion mvu/.flutter-plugins-dependencies

This file was deleted.

8 changes: 4 additions & 4 deletions mvu/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ environment:
dependencies:
flutter:
sdk: flutter
built_value: ^6.3.1
built_collection: ^4.1.0
built_value: ^7.1.0
built_collection: ^4.3.2
dartea: "^0.5.5"
todos_app_core:
path: ../todos_app_core
Expand All @@ -33,8 +33,8 @@ dev_dependencies:
flutter_driver:
sdk: flutter
test:
build_runner: ^1.2.8
built_value_generator: ^6.1.0
build_runner: any
built_value_generator: ^7.1.0
integration_tests:
path: ../integration_tests

Expand Down
73 changes: 73 additions & 0 deletions rvms/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/

# 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/
.dart_tool/
.flutter-plugins
.packages
.pub-cache/
.pub/
/build/

# Android related
**/android/**/gradle-wrapper.jar
**/android/.gradle
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
10 changes: 10 additions & 0 deletions rvms/.metadata
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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 and should not be manually edited.

version:
revision: 27321ebbad34b0a3fafe99fac037102196d655ff
channel: stable

project_type: app
16 changes: 16 additions & 0 deletions rvms/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"spellright.language": [
"en"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext",
"dart"
],
"spellright.parserByClass": {
"dart": {
"parser": "code"
}
}
}
11 changes: 11 additions & 0 deletions rvms/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# rvms

This is an implementation of the architecture sample following the RVMS approach where you have Views over Managers that contain the business logic which uses Services to connect to the outside world.

It uses the following packages:

* `get_it`: as ServiceLocator to access Managers from the UI and Services from Managers
* `get_it_mixin`: to bind the data inside GetIt to the the Widgets
+ `flutter_command`: as connector between Manager UI
* `functional_listener`: rx like extension methods for `ValueListenables`
* `listenable_collections`: We use `ListNotifier` of this package which is a List that behaves like a `ValueNofitier`
7 changes: 7 additions & 0 deletions rvms/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
gradle-wrapper.jar
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
67 changes: 67 additions & 0 deletions rvms/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 28

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.example.rvms"
minSdkVersion 16
targetSdkVersion 28
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

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"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}
Loading