├── CHANGELOG.md ├── example ├── todo_list_angular │ ├── lib │ │ ├── todo_component.html │ │ ├── todo_component.css │ │ ├── footer_component.html │ │ ├── add_todo_component.html │ │ ├── todolist_component.html │ │ ├── app_component.html │ │ ├── todo_component.dart │ │ ├── todolist_component.dart │ │ ├── add_todo_component.dart │ │ ├── footer_component.dart │ │ └── app_component.dart │ ├── web │ │ ├── index.html │ │ └── main.dart │ ├── .gitignore │ └── pubspec.yaml ├── todo_list_flutter │ ├── flutter.yaml │ ├── .gitignore │ ├── ios │ │ ├── Flutter │ │ │ ├── Debug.xcconfig │ │ │ └── Release.xcconfig │ │ ├── Runner │ │ │ ├── AppDelegate.h │ │ │ ├── Assets.xcassets │ │ │ │ └── AppIcon.appiconset │ │ │ │ │ ├── Icon-76.png │ │ │ │ │ ├── Icon-60@2x.png │ │ │ │ │ ├── Icon-60@3x.png │ │ │ │ │ ├── Icon-76@2x.png │ │ │ │ │ ├── Icon-Small.png │ │ │ │ │ ├── Icon-83.5@2x.png │ │ │ │ │ ├── Icon-Small-40.png │ │ │ │ │ ├── Icon-Small@2x.png │ │ │ │ │ ├── Icon-Small@3x.png │ │ │ │ │ ├── Icon-Small-40@2x.png │ │ │ │ │ ├── Icon-Small-40@3x.png │ │ │ │ │ └── Contents.json │ │ │ ├── main.m │ │ │ ├── Base.lproj │ │ │ │ ├── Main.storyboard │ │ │ │ └── LaunchScreen.storyboard │ │ │ ├── Info.plist │ │ │ └── AppDelegate.m │ │ ├── Pods │ │ │ ├── Target Support Files │ │ │ │ └── Pods-Runner │ │ │ │ │ ├── Pods-Runner-dummy.m │ │ │ │ │ ├── Pods-Runner-acknowledgements.markdown │ │ │ │ │ ├── Pods-Runner.debug.xcconfig │ │ │ │ │ ├── Pods-Runner.release.xcconfig │ │ │ │ │ ├── Pods-Runner-acknowledgements.plist │ │ │ │ │ ├── Pods-Runner-frameworks.sh │ │ │ │ │ └── Pods-Runner-resources.sh │ │ │ └── Pods.xcodeproj │ │ │ │ └── project.pbxproj │ │ ├── Podfile │ │ ├── Runner.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ ├── Runner.xcodeproj │ │ │ ├── project.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ │ └── project.pbxproj │ │ └── .gitignore │ ├── android │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ └── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ └── AndroidManifest.xml │ ├── README.md │ ├── pubspec.yaml │ └── lib │ │ └── main.dart └── todo_list_butterfly │ ├── README.md │ ├── CHANGELOG.md │ ├── web │ ├── styles.css │ ├── index.html │ └── main.dart │ ├── .gitignore │ ├── pubspec.yaml │ ├── .analysis_options │ └── LICENSE ├── testing └── todo_list │ ├── CHANGELOG.md │ ├── .gitignore │ ├── pubspec.yaml │ ├── README.md │ └── lib │ ├── todo_list.dart │ └── src │ ├── action_type.dart │ ├── todo.dart │ ├── todo_state.dart │ ├── todo_action.dart │ └── todo_app.dart ├── .gitignore ├── pubspec.yaml ├── lib ├── greencat.dart └── src │ ├── thunk_middleware.dart │ ├── logging_middleware.dart │ ├── reducer_base.dart │ ├── middleware_api.dart │ ├── typedefs.dart │ ├── action.dart │ └── store.dart ├── README.md ├── analysis_options.yaml ├── test └── greencat_test.dart ├── APACHE_LICENSE └── LICENSE /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1 4 | 5 | - Initial version, created by Stagehand 6 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/todo_component.html: -------------------------------------------------------------------------------- 1 |
  • {{text}}
  • -------------------------------------------------------------------------------- /example/todo_list_flutter/flutter.yaml: -------------------------------------------------------------------------------- 1 | name: Redux Todo List 2 | uses-material-design: true 3 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/todo_component.css: -------------------------------------------------------------------------------- 1 | .completed { 2 | text-decoration: line-through; 3 | } -------------------------------------------------------------------------------- /testing/todo_list/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1 4 | 5 | - Initial version, created by Stagehand 6 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/README.md: -------------------------------------------------------------------------------- 1 | # Uber-simple web app 2 | 3 | An absolute bare-bones web app. 4 | 5 | Generated by Stagehand. See LICENSE. 6 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1 4 | 5 | - First example with feature parity with examples in other frameworks. 6 | -------------------------------------------------------------------------------- /example/todo_list_flutter/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .atom/ 3 | .idea 4 | .packages 5 | .pub/ 6 | build/ 7 | ios/.generated/ 8 | packages 9 | pubspec.lock 10 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 3 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 3 | -------------------------------------------------------------------------------- /example/todo_list_flutter/android/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/android/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/todo_list_flutter/android/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/android/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/todo_list_flutter/android/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/android/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/todo_list_flutter/android/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/android/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/todo_list_flutter/android/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/android/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/todo_list_angular/lib/footer_component.html: -------------------------------------------------------------------------------- 1 |
    2 | 4 | {{labels[filter]}} 5 | 6 |
    -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface AppDelegate : UIResponder 4 | 5 | @property (strong, nonatomic) UIWindow *window; 6 | 7 | @end 8 | -------------------------------------------------------------------------------- /example/todo_list_flutter/README.md: -------------------------------------------------------------------------------- 1 | # todo_list_flutter 2 | 3 | A new flutter project. 4 | 5 | ## Getting Started 6 | 7 | For help getting started with Flutter, view our online 8 | [documentation](http://flutter.io/). 9 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Runner : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Runner 5 | @end 6 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexeieleusis/greencat/HEAD/example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /example/todo_list_angular/lib/add_todo_component.html: -------------------------------------------------------------------------------- 1 | Todo description: 2 | 5 | 6 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/todolist_component.html: -------------------------------------------------------------------------------- 1 |
      2 | 6 | 7 |
    -------------------------------------------------------------------------------- /example/todo_list_butterfly/web/styles.css: -------------------------------------------------------------------------------- 1 | @import url(https://fonts.googleapis.com/css?family=Roboto); 2 | 3 | html, body { 4 | width: 100%; 5 | height: 100%; 6 | margin: 0; 7 | padding: 0; 8 | font-family: 'Roboto', sans-serif; 9 | } 10 | -------------------------------------------------------------------------------- /example/todo_list_flutter/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: todo_list_flutter 2 | description: A new flutter project. 3 | dependencies: 4 | flutter: 5 | sdk: flutter 6 | todo_list: 7 | path: ../../testing/todo_list 8 | greencat: 9 | path: ../.. 10 | 11 | flutter: 12 | uses-material-design: true -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | target 'Runner' do 5 | # Uncomment this line if you're using Swift or would like to use dynamic frameworks 6 | # use_frameworks! 7 | 8 | # Pods for Runner 9 | 10 | end 11 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub 2 | .packages 3 | .pub/ 4 | build/ 5 | packages 6 | pubspec.lock 7 | 8 | # Files created by dart2js 9 | *.dart.js 10 | *.part.js 11 | *.js.deps 12 | *.js.map 13 | *.info.json 14 | 15 | # Directory created by dartdoc 16 | doc/api/ 17 | 18 | # JetBrains IDEs 19 | .idea/ 20 | *.iml 21 | *.ipr 22 | *.iws 23 | -------------------------------------------------------------------------------- /example/todo_list_angular/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | todo_list_angular 5 | 6 | 7 | 8 | 9 | 10 | Loading... 11 | 12 | 13 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/app_component.html: -------------------------------------------------------------------------------- 1 |

    My First Greencat Angular 2 App

    2 | 3 |
    4 | 6 | 7 |
    8 |
    10 |
    11 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | FlutterInit(argc, (const char**)argv); 7 | @autoreleasepool { 8 | return UIApplicationMain(argc, argv, nil, 9 | NSStringFromClass([AppDelegate class])); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /example/todo_list_angular/web/main.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, Alexei Diaz. All rights reserved. Use of this source code 2 | // is governed by a BSD-style license that can be found in the LICENSE file. 3 | 4 | import 'package:angular2/platform/browser.dart'; 5 | import 'package:todo_list_angular/app_component.dart'; 6 | 7 | /// Entrypoint for the web app. 8 | void main() { 9 | bootstrap(AppComponent); 10 | } 11 | -------------------------------------------------------------------------------- /testing/todo_list/.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub 2 | .packages 3 | .pub/ 4 | build/ 5 | packages 6 | pubspec.lock 7 | 8 | # Files created by dart2js 9 | *.dart.js 10 | *.part.js 11 | *.js.deps 12 | *.js.map 13 | *.info.json 14 | 15 | # Directory created by dartdoc 16 | doc/api/ 17 | 18 | # JetBrains IDEs 19 | .idea/ 20 | *.iml 21 | *.ipr 22 | *.iws 23 | 24 | # Created by dart_dev 25 | coverage/ 26 | -------------------------------------------------------------------------------- /testing/todo_list/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: todo_list 2 | description: A starting point for Dart libraries or applications. 3 | version: 0.0.1 4 | #author: Alexei Eleusis Díaz Vera 5 | #homepage: https://www.example.com 6 | 7 | environment: 8 | sdk: '>=2.0.0 <3.0.0' 9 | 10 | dependencies: 11 | greencat: 12 | path: ../.. 13 | tuple: ^1.0.1 14 | 15 | dev_dependencies: 16 | test: '>=0.12.0 <0.13.0' 17 | -------------------------------------------------------------------------------- /example/todo_list_angular/.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub 2 | .packages 3 | .pub/ 4 | build/ 5 | packages 6 | pubspec.lock # (Remove this pattern if you wish to check in your lock file) 7 | 8 | # Files created by dart2js 9 | *.dart.js 10 | *.part.js 11 | *.js.deps 12 | *.js.map 13 | *.info.json 14 | 15 | # Directory created by dartdoc 16 | doc/api/ 17 | 18 | # JetBrains IDEs 19 | .idea/ 20 | *.iml 21 | *.ipr 22 | *.iws 23 | -------------------------------------------------------------------------------- /testing/todo_list/README.md: -------------------------------------------------------------------------------- 1 | # todo_list 2 | 3 | A library for Dart developers. It is awesome. 4 | 5 | ## Usage 6 | 7 | A simple usage example: 8 | 9 | import 'package:todo_list/todo_list.dart'; 10 | 11 | main() { 12 | var awesome = new Awesome(); 13 | } 14 | 15 | ## Features and bugs 16 | 17 | Please file feature requests and bugs at the [issue tracker][tracker]. 18 | 19 | [tracker]: http://example.com/issues/replaceme 20 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/.gitignore: -------------------------------------------------------------------------------- 1 | # Files and directories created by pub 2 | .packages 3 | .pub/ 4 | build/ 5 | packages 6 | # Remove the following pattern if you wish to check in your lock file 7 | pubspec.lock 8 | 9 | # Files created by dart2js 10 | *.dart.js 11 | *.part.js 12 | *.js.deps 13 | *.js.map 14 | *.info.json 15 | 16 | # Directory created by dartdoc 17 | doc/api/ 18 | 19 | # JetBrains IDEs 20 | .idea/ 21 | *.iml 22 | *.ipr 23 | *.iws 24 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = $(inherited) -ObjC 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = $(inherited) -ObjC 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: greencat 2 | description: A port of Redux to Dart, including Redux Thunk and a simple Logger. 3 | version: 0.2.0 4 | author: Alexei Diaz 5 | homepage: https://github.com/alexeieleusis/greencat 6 | 7 | environment: 8 | sdk: ">=2.0.0 <3.0.0" 9 | 10 | dependencies: 11 | logging: ">=0.11.3 <0.12.0" 12 | tuple: ">=1.0.1 <2.0.0" 13 | 14 | dev_dependencies: 15 | test: '>=1.5.1 <2.0.0' 16 | todo_list: 17 | path: testing/todo_list 18 | -------------------------------------------------------------------------------- /testing/todo_list/lib/todo_list.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, Alexei Eleusis Díaz Vera. All rights reserved. Use of this source code 2 | // is governed by a BSD-style license that can be found in the LICENSE file. 3 | 4 | /// Support for doing something awesome. 5 | /// 6 | /// More dartdocs go here. 7 | library todo_list; 8 | 9 | export 'src/action_type.dart'; 10 | export 'src/todo.dart'; 11 | export 'src/todo_action.dart'; 12 | export 'src/todo_app.dart'; 13 | export 'src/todo_state.dart'; 14 | -------------------------------------------------------------------------------- /lib/greencat.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, Alexei Eleusis Díaz Vera. All rights reserved. Use of this source code 2 | // is governed by the Apache 2.0 license that can be found in the LICENSE file. 3 | 4 | /// Support for doing something awesome. 5 | /// 6 | /// More dartdocs go here. 7 | library greencat; 8 | 9 | export 'src/action.dart'; 10 | export 'src/logging_middleware.dart'; 11 | export 'src/middleware_api.dart'; 12 | export 'src/reducer_base.dart'; 13 | export 'src/store.dart'; 14 | export 'src/thunk_middleware.dart'; 15 | export 'src/typedefs.dart'; 16 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | *.lock 9 | profile 10 | 11 | DerivedData/ 12 | build/ 13 | 14 | *.pbxuser 15 | *.mode1v3 16 | *.mode2v3 17 | *.perspectivev3 18 | 19 | !default.pbxuser 20 | !default.mode1v3 21 | !default.mode2v3 22 | !default.perspectivev3 23 | 24 | xcuserdata 25 | 26 | *.moved-aside 27 | 28 | *.pyc 29 | *sync/ 30 | Icon? 31 | .tags* 32 | 33 | /Flutter/app.flx 34 | /Flutter/app.dylib 35 | /Flutter/app.zip 36 | /Flutter/Flutter.framework 37 | /Flutter/Generated.xcconfig 38 | /ServiceDefinitions.json 39 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/todo_component.dart: -------------------------------------------------------------------------------- 1 | library todo_component; 2 | 3 | import 'package:angular2/core.dart'; 4 | 5 | /// Displays a to-do and invokes the callback when clicked. 6 | @Component( 7 | selector: 'todo', 8 | templateUrl: 'package:todo_list_angular/todo_component.html', 9 | styleUrls: const ['package:todo_list_angular/todo_component.css'], 10 | changeDetection: ChangeDetectionStrategy.OnPush) 11 | class TodoComponent { 12 | /// The text to display in the component. 13 | @Input() 14 | String text; 15 | 16 | /// A flag used for styling. 17 | @Input() 18 | bool completed; 19 | } 20 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: 'todo_list_butterlfy' 2 | version: 0.0.1 3 | description: The todo list app implemented with Butterfly and greencat. 4 | #author: Alexei Eleusis Díaz Vera 5 | #homepage: https://www.example.com 6 | 7 | environment: 8 | sdk: '>=1.0.0 <2.0.0' 9 | 10 | dependencies: 11 | butterfly: '0.0.2' 12 | browser: '>=0.10.0 <0.11.0' 13 | dart_to_js_script_rewriter: '^1.0.1' 14 | tuple: ">=1.0.0 <2.0.0" 15 | todo_list: 16 | path: ../../testing/todo_list 17 | greencat: 18 | path: ../.. 19 | 20 | transformers: 21 | - dart_to_js_script_rewriter 22 | -------------------------------------------------------------------------------- /testing/todo_list/lib/src/action_type.dart: -------------------------------------------------------------------------------- 1 | library action_type; 2 | 3 | /// The type of actions on the TodoApp. 4 | enum ActionType { 5 | /// Indicates to add a to-do to the list. 6 | addTodo, 7 | 8 | /// Indicates to add a to-do to the list. 9 | asyncAddTodo, 10 | 11 | /// Indicates to toggle. 12 | toggleTodo, 13 | 14 | /// Indicates changing displayed items. 15 | setVisibilityFilter 16 | } 17 | 18 | /// Indicates which elements should be visible. 19 | enum VisibilityFilter { 20 | /// All items. 21 | all, 22 | 23 | /// Non completed ones. 24 | showPending, 25 | 26 | /// Completed 27 | showCompleted 28 | } 29 | -------------------------------------------------------------------------------- /example/todo_list_angular/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: todo_list_angular 2 | description: A Dart app that uses Angular 2 3 | version: 0.0.1 4 | environment: 5 | sdk: '>=2.0.0 <3.0.0' 6 | dependencies: 7 | angular2: 3.0.0 8 | browser: ^0.10.0 9 | dart_to_js_script_rewriter: ^1.0.1 10 | logging: '^0.11.3' 11 | tuple: '^1.0.1' 12 | todo_list: 13 | path: ../../testing/todo_list 14 | greencat: 15 | path: ../.. 16 | transformers: 17 | - angular2: 18 | platform_directives: 19 | - 'package:angular2/common.dart#COMMON_DIRECTIVES' 20 | platform_pipes: 21 | - 'package:angular2/common.dart#COMMON_PIPES' 22 | entry_points: web/main.dart 23 | - dart_to_js_script_rewriter 24 | -------------------------------------------------------------------------------- /lib/src/thunk_middleware.dart: -------------------------------------------------------------------------------- 1 | library thunk_middleware; 2 | 3 | import 'package:greencat/greencat.dart'; 4 | 5 | /// Middleware to handle async actions. 6 | class ThunkMiddleware implements Function { 7 | /// Default const constructor. 8 | const ThunkMiddleware(); 9 | 10 | /// Invokes the next transformer on the action it receives, but if the action 11 | /// is async, it invokes it first. 12 | DispatchTransformer call(MiddlewareApi api) => (next) => (action) { 13 | if (action is AsyncAction) { 14 | final AsyncAction asyncAction = action; 15 | asyncAction(api); 16 | } 17 | 18 | return next(action); 19 | }; 20 | } 21 | -------------------------------------------------------------------------------- /testing/todo_list/lib/src/todo.dart: -------------------------------------------------------------------------------- 1 | library todo; 2 | 3 | /// Represents a to-do in the application. 4 | class Todo { 5 | /// A label describing what is needed to do. 6 | final String description; 7 | 8 | /// A flag indicating if the task is completed. 9 | final bool completed; 10 | 11 | /// Creates a new instance. 12 | Todo(this.description, {this.completed: false}); 13 | 14 | /// Copies this instance into a new one changing the specifies values. 15 | Todo copy({String description, bool completed}) => 16 | new Todo(description ?? this.description, 17 | completed: completed ?? this.completed); 18 | 19 | @override 20 | String toString() => 'Todo{description: $description, completed: $completed}'; 21 | } 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # greencat 2 | 3 | A port of [Redux](https://github.com/reactjs/redux) to Dart, including [Redux Thunk](https://github.com/gaearon/redux-thunk). API and conventions are 4 | preserved as much as possible and only changed to idiomatic Dart. This is work in 5 | progress and might introduce backward incompatible changes, though it is avoided. 6 | 7 | ## Usage 8 | 9 | Examples of usage are provided with [AngularDart 2](https://github.com/dart-lang/angular2), [Flutter](https://github.com/flutter/flutter) and [Butterfly](https://github.com/yjbanov/butterfly). 10 | 11 | ## Features and bugs 12 | 13 | Please file feature requests and bugs at the [issue tracker][tracker]. 14 | 15 | [tracker]: https://github.com/alexeieleusis/greencat/issues 16 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Todo list in Butterfly with greencat 15 | 16 | 17 | 18 | 19 | 20 | 21 |
    22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /lib/src/logging_middleware.dart: -------------------------------------------------------------------------------- 1 | library logging_middleware; 2 | 3 | import 'package:greencat/greencat.dart'; 4 | import 'package:logging/logging.dart'; 5 | 6 | /// Middleware to handle async actions. 7 | class LoggingMiddleware implements Function { 8 | final Logger _logger; 9 | 10 | /// Default constructor. 11 | LoggingMiddleware(Logger logger) : _logger = logger; 12 | 13 | /// Logs the action, current state and state after applying the reducer. 14 | DispatchTransformer
    call(MiddlewareApi api) => (next) => (action) { 15 | final next2 = next(action); 16 | _logger 17 | ..fine('action: $action') 18 | ..fine('prev state: ${api.state}') 19 | ..fine('next state: ${api.state}') 20 | ..fine('=== === === === === === === === === === === === === === '); 21 | return next2; 22 | }; 23 | } 24 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/todolist_component.dart: -------------------------------------------------------------------------------- 1 | library todolist_component; 2 | 3 | import 'dart:async'; 4 | 5 | import 'package:angular2/angular2.dart'; 6 | import 'package:angular2/core.dart'; 7 | import 'package:todo_list/todo_list.dart'; 8 | import 'package:todo_list_angular/todo_component.dart'; 9 | 10 | /// Displays a to-do and invokes the callback when clicked. 11 | @Component( 12 | selector: 'todolist', 13 | templateUrl: 'package:todo_list_angular/todolist_component.html', 14 | directives: const [TodoComponent, NgFor], 15 | changeDetection: ChangeDetectionStrategy.OnPush) 16 | class TodoListComponent implements OnDestroy { 17 | final StreamController _controller = 18 | new StreamController.broadcast(); 19 | 20 | /// The todos to display. 21 | @Input() 22 | Iterable todos; 23 | 24 | /// Propagates the toggle to-do event. 25 | @Output() 26 | Stream get toggleTodo => _controller.stream; 27 | 28 | @override 29 | void ngOnDestroy() { 30 | _controller.close(); 31 | } 32 | 33 | /// Propagates the click event. 34 | void toggleTodoHandler(int index) { 35 | _controller.add(index); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /example/todo_list_flutter/android/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/add_todo_component.dart: -------------------------------------------------------------------------------- 1 | library add_todo_component; 2 | 3 | import 'dart:async'; 4 | 5 | import 'package:angular2/core.dart'; 6 | 7 | /// Provides a way to add a to-do. 8 | @Component( 9 | selector: 'add-todo', 10 | templateUrl: 'package:todo_list_angular/add_todo_component.html', 11 | changeDetection: ChangeDetectionStrategy.OnPush) 12 | class AddTodoComponent implements OnDestroy { 13 | final StreamController _controller = 14 | new StreamController.broadcast(); 15 | 16 | final ChangeDetectorRef _changeDetectorRef; 17 | 18 | /// The text to display in the component. 19 | String description; 20 | 21 | /// Creates a new instance of the component. 22 | AddTodoComponent(ChangeDetectorRef changeDetectorRef) 23 | : _changeDetectorRef = changeDetectorRef; 24 | 25 | /// Propagates the click event to the container component. 26 | @Output() 27 | Stream get addTodo => _controller.stream; 28 | 29 | @override 30 | void ngOnDestroy() { 31 | _controller.close(); 32 | } 33 | 34 | /// Triggered when the li element is clicked. 35 | void onClick() { 36 | _controller.add(description); 37 | description = ''; 38 | _changeDetectorRef.detectChanges(); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /lib/src/reducer_base.dart: -------------------------------------------------------------------------------- 1 | library reducer_base; 2 | 3 | import 'package:greencat/src/action.dart'; 4 | import 'package:tuple/tuple.dart'; 5 | 6 | /// Base class for all reducers, should contain a set of function to correctly map... 7 | abstract class ReducerBase implements Function { 8 | /// This method provides the class with the reducer logic. 9 | S call(A action, {S currentState}); 10 | 11 | /// Combines this reducer with the provided one, resulting in a reducer which 12 | /// state is a Tuple2 preserving the same action type. 13 | ReducerBase, A> combineWith(ReducerBase reducer) => 14 | new _TupleReducer(this, reducer); 15 | } 16 | 17 | class _TupleReducer 18 | extends ReducerBase, A> { 19 | final ReducerBase first; 20 | final ReducerBase second; 21 | 22 | _TupleReducer(this.first, this.second); 23 | 24 | @override 25 | Tuple2 call(A action, {Tuple2 currentState}) { 26 | final firstState = currentState != null ? currentState.item1 : null; 27 | final secondState = currentState != null ? currentState.item2 : null; 28 | return new Tuple2(first(action, currentState: firstState), 29 | second(action, currentState: secondState)); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/footer_component.dart: -------------------------------------------------------------------------------- 1 | library footer_component; 2 | 3 | import 'dart:async'; 4 | 5 | import 'package:angular2/angular2.dart'; 6 | import 'package:angular2/core.dart'; 7 | import 'package:todo_list/todo_list.dart'; 8 | 9 | /// Provides a way to add a to-do. 10 | @Component( 11 | selector: 'footer', 12 | templateUrl: 'package:todo_list_angular/footer_component.html', 13 | directives: const [NgFor], 14 | changeDetection: ChangeDetectionStrategy.OnPush) 15 | class FooterComponent implements OnDestroy { 16 | final _controller = new StreamController.broadcast(); 17 | 18 | /// Provides labels suitable to display in the ui. 19 | final Map labels = const { 20 | VisibilityFilter.all: 'All', 21 | VisibilityFilter.showCompleted: 'Completed', 22 | VisibilityFilter.showPending: 'Pending', 23 | }; 24 | 25 | /// Text to be displayed. 26 | @Input() 27 | Iterable filters; 28 | 29 | /// Gets the stream of visibility changes that should be propagated to the 30 | /// store when the user clicks a visibility filter. 31 | @Output() 32 | Stream get setVisibilityFilter => _controller.stream; 33 | 34 | @override 35 | void ngOnDestroy() { 36 | _controller.close(); 37 | } 38 | 39 | /// Handles the click event to a particular link. 40 | void setVisibilityHandler(int i) { 41 | _controller.add(filters.elementAt(i)); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/src/middleware_api.dart: -------------------------------------------------------------------------------- 1 | library middleware_api; 2 | 3 | import 'package:greencat/src/action.dart'; 4 | import 'package:greencat/src/store.dart'; 5 | import 'package:greencat/src/typedefs.dart'; 6 | 7 | /// Middleware is the suggested way to extend Redux with custom functionality. 8 | /// Middleware lets you wrap the store’s dispatch method for fun and profit. 9 | /// The key feature of middleware is that it is composable. Multiple middleware 10 | /// can be combined together, where each middleware requires no knowledge of 11 | /// what comes before or after it in the chain. 12 | /// 13 | /// The most common use case for middleware is to support asynchronous actions 14 | /// without much boilerplate code or a dependency on a library like Rx. It does 15 | /// so by letting you dispatch async actions in addition to normal actions. 16 | class MiddlewareApi { 17 | final Store _store; 18 | 19 | /// Dummy constructor. 20 | MiddlewareApi(Store store) : _store = store; 21 | 22 | /// Middleware wraps the base dispatch function. It allows the dispatch 23 | /// function to handle async actions in addition to actions. Middleware may 24 | /// transform, delay, ignore, or otherwise interpret actions or async actions 25 | /// before passing them to the next middleware. See below for more information. 26 | Dispatch get dispatch => _store.dispatch; 27 | 28 | /// Returns the result of invoking `Store.state`. 29 | S get state => _store.state; 30 | } 31 | -------------------------------------------------------------------------------- /testing/todo_list/lib/src/todo_state.dart: -------------------------------------------------------------------------------- 1 | library todo_state; 2 | 3 | import 'package:tuple/tuple.dart'; 4 | 5 | import 'action_type.dart'; 6 | import 'todo.dart'; 7 | 8 | /// State for the todoApp. 9 | class TodoState { 10 | /// Controls which todos are visible. 11 | final VisibilityFilter filter; 12 | 13 | /// Todos available in the app. 14 | final Iterable todos; 15 | 16 | /// Todos visible in the ui. 17 | final Iterable visibleTodos; 18 | 19 | /// Creates a new instance. 20 | TodoState(this.filter, this.todos) 21 | : visibleTodos = todos.where((t) { 22 | switch (filter) { 23 | case VisibilityFilter.all: 24 | return true; 25 | case VisibilityFilter.showPending: 26 | return !t.completed; 27 | case VisibilityFilter.showCompleted: 28 | return t.completed; 29 | } 30 | }).toList(growable: false); 31 | 32 | /// Default state for the app, used when is not explicitly initialized. 33 | const TodoState.initial() 34 | : this.filter = VisibilityFilter.all, 35 | this.todos = const [], 36 | this.visibleTodos = const []; 37 | 38 | /// Clones this instance changing the specified filters. 39 | TodoState copy({VisibilityFilter filter, Iterable todos}) => 40 | new TodoState(filter ?? this.filter, todos ?? this.todos); 41 | 42 | @override 43 | String toString() => 44 | 'TodoState{filter: $filter, todos: $todos, visibleTodos: $visibleTodos}'; 45 | 46 | /// Converts the state to a tuple. 47 | Tuple2, VisibilityFilter> toTuple() => 48 | new Tuple2(todos, filter); 49 | } 50 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | com.yourcompany.todoListFlutter 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | todo_list_flutter 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | arm64 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | UIViewControllerBasedStatusBarAppearance 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import 2 | #include "AppDelegate.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 7 | // Override point for customization after application launch. 8 | return YES; 9 | } 10 | 11 | - (void)applicationWillResignActive:(UIApplication *)application { 12 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 13 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 14 | } 15 | 16 | - (void)applicationDidEnterBackground:(UIApplication *)application { 17 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 18 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 19 | } 20 | 21 | - (void)applicationWillEnterForeground:(UIApplication *)application { 22 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 23 | } 24 | 25 | - (void)applicationDidBecomeActive:(UIApplication *)application { 26 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 27 | } 28 | 29 | - (void)applicationWillTerminate:(UIApplication *)application { 30 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 31 | } 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-Small@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-Small@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "40x40", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-Small-40@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-Small-40@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "60x60", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-60@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-60@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "29x29", 41 | "idiom" : "ipad", 42 | "filename" : "Icon-Small.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "Icon-Small@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "40x40", 53 | "idiom" : "ipad", 54 | "filename" : "Icon-Small-40.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-Small-40@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "76x76", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-76.png", 67 | "scale" : "1x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-76@2x.png", 73 | "scale" : "2x" 74 | }, 75 | { 76 | "size" : "83.5x83.5", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-83.5@2x.png", 79 | "scale" : "2x" 80 | } 81 | ] 82 | } -------------------------------------------------------------------------------- /lib/src/typedefs.dart: -------------------------------------------------------------------------------- 1 | /// Function definitions used along the package, for a deeper description see 2 | /// http://redux.js.org/docs/Glossary.html 3 | library typedefs; 4 | 5 | import 'package:greencat/src/action.dart'; 6 | import 'package:greencat/src/middleware_api.dart'; 7 | import 'package:tuple/tuple.dart'; 8 | 9 | /// Dispatches an action. This is the only way to trigger a state change. 10 | typedef A BaseDispatch(A action); 11 | 12 | /// A dispatching function (or simply dispatch function) is a function that 13 | /// accepts an action or an async action; it then may or may not dispatch one 14 | /// or more actions to the store. 15 | typedef dynamic Dispatch(A action); 16 | 17 | /// Used in the Middleware to transform a dispatch. 18 | typedef Dispatch DispatchTransformer(Dispatch dispatch); 19 | 20 | /// A middleware is a higher-order function that composes a dispatch function 21 | /// to return a new dispatch function. It often turns async actions into actions. 22 | typedef DispatchTransformer Middleware( 23 | MiddlewareApi api); 24 | 25 | /// A reducer (also called a reducing function) is a function that accepts an 26 | /// accumulation and a value and returns a new accumulation. They are used to 27 | /// reduce a collection of values down to a single value. 28 | /// 29 | /// Reducers are not unique to Redux they are a fundamental concept in functional 30 | /// programming. Even most non-functional languages, like JavaScript, have a 31 | /// built-in API for reducing. In JavaScript, it's Array.prototype.reduce(). 32 | /// 33 | /// N.B. Given the same arguments, it should calculate the next state and 34 | /// return it. No surprises. No side effects. No API calls. No mutations. Just 35 | /// a calculation. 36 | typedef S Reducer(A action, {S currentState}); 37 | 38 | /// Combines two reducers to operate on the cartesian product. 39 | typedef Reducer, A> ReducersCombinator( 40 | Reducer first, Reducer second); 41 | -------------------------------------------------------------------------------- /testing/todo_list/lib/src/todo_action.dart: -------------------------------------------------------------------------------- 1 | library todo_action; 2 | 3 | import 'dart:async'; 4 | import 'package:greencat/greencat.dart'; 5 | import 'package:todo_list/todo_list.dart'; 6 | 7 | /// Utility function to trigger the addTodo action. 8 | TodoAction addTodo(String description) => 9 | new AddTodoAction(description); 10 | 11 | /// Utility function to asynchronously trigger the addTodo action. 12 | TodoAction asyncAddTodo(String description) => 13 | new AsyncAddTodoAction(description); 14 | 15 | /// Utility function to trigger the setVisibilityFilter action. 16 | TodoAction setVisibilityFilter(VisibilityFilter filter) => 17 | new VisibilityFilterTodoAction(filter); 18 | 19 | /// Utility function to trigger the toggleTodo action. 20 | TodoAction toggleTodo(int index) => new ToggleTodoAction(index); 21 | 22 | /// Action to add a to do. 23 | class AddTodoAction extends TodoAction { 24 | /// 25 | AddTodoAction(String payload) : super(payload); 26 | 27 | @override 28 | ActionType get type => ActionType.addTodo; 29 | } 30 | 31 | /// Asynchronously adds a todo to the store. 32 | class AsyncAddTodoAction extends TodoAction 33 | implements AsyncAction { 34 | /// 35 | AsyncAddTodoAction(String payload) : super(payload); 36 | 37 | @override 38 | ActionType get type => ActionType.asyncAddTodo; 39 | 40 | /// Adds a task asynchronously. 41 | @override 42 | Future call(MiddlewareApi api) => 43 | new Future.value('').then((_) { 44 | api.dispatch(addTodo(payload)); 45 | }); 46 | } 47 | 48 | /// Actions to be triggered to the app store. 49 | abstract class TodoAction extends Action { 50 | /// The payload to include. 51 | @override 52 | final T payload; 53 | 54 | /// Creates a new instance. 55 | TodoAction(this.payload); 56 | } 57 | 58 | /// Action to toggle a to do. 59 | class ToggleTodoAction extends TodoAction { 60 | /// 61 | ToggleTodoAction(int payload) : super(payload); 62 | 63 | @override 64 | ActionType get type => ActionType.toggleTodo; 65 | } 66 | 67 | /// Action to set the visibility filter. 68 | class VisibilityFilterTodoAction extends TodoAction { 69 | /// 70 | VisibilityFilterTodoAction(VisibilityFilter payload) : super(payload); 71 | 72 | @override 73 | ActionType get type => ActionType.setVisibilityFilter; 74 | } 75 | -------------------------------------------------------------------------------- /example/todo_list_flutter/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:greencat/greencat.dart'; 3 | import 'package:todo_list/todo_list.dart'; 4 | 5 | void main() { 6 | runApp(new MaterialApp( 7 | title: 'Flutter Redux Demo', 8 | theme: new ThemeData(primarySwatch: Colors.blue), 9 | home: new TodoListHome())); 10 | } 11 | 12 | /// Entry point for the app. 13 | class TodoListHome extends StatefulWidget { 14 | /// Constructor required by base class api. 15 | TodoListHome({Key key}) : super(key: key); 16 | 17 | @override 18 | _TodoListState createState() => new _TodoListState(); 19 | } 20 | 21 | class _TodoListState extends State { 22 | /// Store providing the stream of state changes for the app. 23 | final Store> store = 24 | new Store.createStore(todoApp, initialState: const TodoState.initial()); 25 | 26 | final TextStyle linethrough = 27 | new TextStyle(decoration: TextDecoration.lineThrough); 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | final List todosTexts = store.state.todos 32 | .map((Todo t) => new GestureDetector( 33 | child: new Text(t.description, 34 | style: t.completed ? linethrough : null), 35 | onTap: () { 36 | store.dispatch(toggleTodo(store.state.todos.toList().indexOf(t))); 37 | })) 38 | .toList(); 39 | return new Scaffold( 40 | appBar: new AppBar(title: new Text('Redux Todo List')), 41 | body: new Flex( 42 | children: todosTexts, 43 | direction: Axis.vertical, 44 | crossAxisAlignment: CrossAxisAlignment.start), 45 | floatingActionButton: new FloatingActionButton( 46 | onPressed: _addTodo, 47 | tooltip: 'Add a todo', 48 | child: new Icon(Icons.add))); 49 | } 50 | 51 | @override 52 | void dispose() { 53 | super.dispose(); 54 | store.close(); 55 | } 56 | 57 | @override 58 | void initState() { 59 | super.initState(); 60 | store.stream.listen((TodoState state) { 61 | setState(() {}); 62 | }); 63 | store.dispatch(addTodo('test this adds a todo')); 64 | store.dispatch(addTodo('test this adds another todo')); 65 | store.dispatch(toggleTodo(0)); 66 | } 67 | 68 | void _addTodo() { 69 | store.dispatch(addTodo('description')); 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /lib/src/action.dart: -------------------------------------------------------------------------------- 1 | library action; 2 | 3 | import 'dart:async'; 4 | 5 | import 'package:greencat/src/middleware_api.dart'; 6 | 7 | /// Actions are payloads of information that send data from your application to 8 | /// your store. They are the only source of information for the store. You send 9 | /// them to the store using `store.dispatch()`. 10 | /// 11 | /// Uses ideas from https://github.com/acdlite/flux-standard-action 12 | abstract class Action { 13 | /// The optional error property _may_ be set to true if the action represents an 14 | /// error. 15 | /// 16 | /// An action whose error is true is analogous to a rejected Future. By 17 | /// convention, the payload _should_ be an error object. 18 | /// 19 | /// If error has any other value besides true, including undefined and null, 20 | /// the action _must not_ be interpreted as an error. 21 | /// 22 | /// This property is migrated to preserve the same API than Redux, but handling 23 | /// errors without using it is preferred. 24 | @deprecated 25 | bool get isError => false; 26 | 27 | /// The optional payload property _may_ be any type of value. It represents the 28 | /// payload of the action. Any information about the action that is not the 29 | /// type or status of the action should be part of the payload field. 30 | /// 31 | /// By convention, if error is true, the payload _should_ be an error object. 32 | /// This is akin to rejecting a promise with an error object. 33 | // TODO: Consider using the Option or Either type to convey an error. 34 | dynamic get payload; 35 | 36 | /// The type of an action identifies to the consumer the nature of the action 37 | /// that has occurred. Two actions with the same type and equivalent payloads 38 | /// _must_ equivalent iff their payloads (using `operator==` or `identical`) 39 | /// should produce the same result when a reducer is applied on them. By 40 | /// convention, type is usually string constant or a Symbol, it is 41 | /// recommended, to use an enumeration for this property. 42 | T get type; 43 | 44 | @override 45 | String toString() => 'Action { type: $type, payload: $payload }'; 46 | } 47 | 48 | /// Base type for actions that trigger side effects. 49 | abstract class AsyncAction extends Action implements Function { 50 | /// Async actions are functions that return a future, it is OK to have side 51 | /// effects within the body of an async action, also a [Future] should be 52 | /// returned that resolves when all async effects from this action are resolved. 53 | Future call(MiddlewareApi api); 54 | } 55 | -------------------------------------------------------------------------------- /example/todo_list_angular/lib/app_component.dart: -------------------------------------------------------------------------------- 1 | import 'package:angular2/core.dart'; 2 | import 'package:greencat/greencat.dart'; 3 | import 'package:logging/logging.dart'; 4 | import 'package:todo_list/todo_list.dart'; 5 | import 'package:todo_list_angular/add_todo_component.dart'; 6 | import 'package:todo_list_angular/footer_component.dart'; 7 | import 'package:todo_list_angular/todolist_component.dart'; 8 | import 'package:tuple/tuple.dart'; 9 | 10 | /// Root component for the web app. 11 | @Component( 12 | selector: 'my-app', 13 | templateUrl: 'app_component.html', 14 | directives: const [AddTodoComponent, FooterComponent, TodoListComponent], 15 | changeDetection: ChangeDetectionStrategy.OnPush) 16 | class AppComponent implements OnInit, OnDestroy { 17 | /// Store built with the combine ... 18 | final Store, VisibilityFilter>, TodoAction> 19 | combinedStore = new Store.createStore(todoCombinedApp); 20 | 21 | /// Visibility filters to show to the user. 22 | Iterable get filters => VisibilityFilter.values; 23 | 24 | /// Elements displayed in the list. 25 | Iterable get visibleTodos => combinedStore.state.item1.where((t) => 26 | combinedStore.state.item2 == VisibilityFilter.all || 27 | t.completed && 28 | combinedStore.state.item2 == VisibilityFilter.showCompleted || 29 | !t.completed && 30 | combinedStore.state.item2 == VisibilityFilter.showPending); 31 | 32 | /// Dispatch the add to-do to the store. 33 | void addTodoHandler(String description) { 34 | combinedStore.dispatch(asyncAddTodo(description)); 35 | } 36 | 37 | @override 38 | void ngOnDestroy() { 39 | combinedStore.close(); 40 | } 41 | 42 | @override 43 | void ngOnInit() { 44 | combinedStore 45 | ..dispatch(addTodo('test this adds a todo')) 46 | ..dispatch(addTodo('test this adds another todo')) 47 | ..dispatch(toggleTodo(0)) 48 | ..addMiddleware(const ThunkMiddleware< 49 | Tuple2, VisibilityFilter>, TodoAction>()); 50 | Logger.root 51 | ..level = Level.FINE 52 | ..onRecord.listen((rec) { 53 | print('${rec.loggerName} ${rec.time}'); 54 | print('${rec.message}'); 55 | }); 56 | 57 | combinedStore.addMiddleware(new LoggingMiddleware(Logger.root)); 58 | } 59 | 60 | /// Handles changes to the visibility. 61 | void setVisibilityFilterHandler(VisibilityFilter filter) { 62 | combinedStore.dispatch(setVisibilityFilter(filter)); 63 | } 64 | 65 | /// Dispatch the toggle to-do to the store. 66 | void toggleTodoHandler(int index) { 67 | combinedStore.dispatch(toggleTodo(index)); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /testing/todo_list/lib/src/todo_app.dart: -------------------------------------------------------------------------------- 1 | library todo_app; 2 | 3 | import 'package:greencat/greencat.dart'; 4 | import 'package:tuple/tuple.dart'; 5 | 6 | import 'action_type.dart'; 7 | import 'todo.dart'; 8 | import 'todo_action.dart'; 9 | import 'todo_state.dart'; 10 | 11 | /// The reducer for the TodoApp. 12 | TodoState todoApp(TodoAction action, {TodoState currentState}) { 13 | if (currentState == null) { 14 | return const TodoState.initial(); 15 | } 16 | 17 | switch (action.type) { 18 | case ActionType.setVisibilityFilter: 19 | return currentState.copy(filter: action.payload); 20 | case ActionType.addTodo: 21 | case ActionType.toggleTodo: 22 | return currentState.copy( 23 | todos: _todos(action, currentState: currentState.todos)); 24 | default: 25 | return currentState; 26 | } 27 | } 28 | 29 | /// Reducer built with the combine method in ReducerBase class. 30 | ReducerBase, VisibilityFilter>, TodoAction> 31 | todoCombinedApp = 32 | new TodosReducer().combineWith(new VisibilityFilterReducer()); 33 | 34 | Iterable _todos(TodoAction action, 35 | {Iterable currentState}) { 36 | switch (action.type) { 37 | case ActionType.addTodo: 38 | return (new List.from(currentState) 39 | ..add(new Todo(action.payload))) 40 | .toList(growable: false); 41 | case ActionType.toggleTodo: 42 | final originalTodo = currentState.elementAt(action.payload); 43 | final todo = originalTodo.copy(completed: !originalTodo.completed); 44 | Todo replaceTodo(Todo t) => t == originalTodo ? todo : t; 45 | return currentState.map(replaceTodo).toList(growable: false); 46 | default: 47 | return currentState; 48 | } 49 | } 50 | 51 | /// Reducer for Iterable state. 52 | class TodosReducer extends ReducerBase, TodoAction> { 53 | @override 54 | Iterable call(TodoAction action, {Iterable currentState}) { 55 | if (currentState == null) { 56 | return const []; 57 | } 58 | 59 | switch (action.type) { 60 | case ActionType.addTodo: 61 | return (new List.from(currentState) 62 | ..add(new Todo(action.payload))) 63 | .toList(growable: false); 64 | case ActionType.toggleTodo: 65 | final originalTodo = currentState.elementAt(action.payload); 66 | final todo = originalTodo.copy(completed: !originalTodo.completed); 67 | Todo _replaceTodo(t) => t == originalTodo ? todo : t; 68 | return currentState.map(_replaceTodo).toList(growable: false); 69 | default: 70 | return currentState; 71 | } 72 | } 73 | } 74 | 75 | /// Reducer for VisibilityFilter state. 76 | class VisibilityFilterReducer 77 | extends ReducerBase { 78 | @override 79 | VisibilityFilter call(TodoAction action, {VisibilityFilter currentState}) { 80 | if (currentState == null) { 81 | return VisibilityFilter.all; 82 | } 83 | switch (action.type) { 84 | case ActionType.setVisibilityFilter: 85 | return action.payload; 86 | default: 87 | return currentState; 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/.analysis_options: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | 4 | linter: 5 | rules: 6 | - always_declare_return_types 7 | - always_put_control_body_on_new_line 8 | - always_require_non_null_named_parameters 9 | # - always_specify_types 10 | - annotate_overrides 11 | - avoid_annotating_with_dynamic 12 | # - avoid_as 13 | - avoid_catches_without_on_clauses 14 | - avoid_catching_errors 15 | - avoid_classes_with_only_static_members 16 | - avoid_empty_else 17 | - avoid_function_literals_in_foreach_calls 18 | - avoid_init_to_null 19 | - avoid_null_checks_in_equality_operators 20 | - avoid_positional_boolean_parameters 21 | - avoid_return_types_on_setters 22 | - avoid_returning_null 23 | - avoid_returning_this 24 | - avoid_setters_without_getters 25 | - avoid_slow_async_io 26 | - avoid_types_on_closure_parameters 27 | - await_only_futures 28 | - camel_case_types 29 | - cancel_subscriptions 30 | - cascade_invocations 31 | - close_sinks 32 | - comment_references 33 | - constant_identifier_names 34 | - control_flow_in_finally 35 | - directives_ordering 36 | - empty_catches 37 | - empty_constructor_bodies 38 | - empty_statements 39 | - hash_and_equals 40 | - implementation_imports 41 | - invariant_booleans 42 | - iterable_contains_unrelated_type 43 | - join_return_with_assignment 44 | - library_names 45 | - library_prefixes 46 | - list_remove_unrelated_type 47 | - literal_only_boolean_expressions 48 | - no_adjacent_strings_in_list 49 | - no_duplicate_case_values 50 | - non_constant_identifier_names 51 | - omit_local_variable_types 52 | - one_member_abstracts 53 | - only_throw_errors 54 | - overridden_fields 55 | - package_api_docs 56 | - package_names 57 | - package_prefixed_library_names 58 | - parameter_assignments 59 | - prefer_adjacent_string_concatenation 60 | - prefer_collection_literals 61 | - prefer_conditional_assignment 62 | - prefer_const_constructors 63 | - prefer_constructors_over_static_methods 64 | - prefer_contains 65 | - prefer_expression_function_bodies 66 | - prefer_final_fields 67 | - prefer_final_locals 68 | - prefer_foreach 69 | - prefer_function_declarations_over_variables 70 | - prefer_initializing_formals 71 | - prefer_interpolation_to_compose_strings 72 | - prefer_is_empty 73 | - prefer_is_not_empty 74 | - public_member_api_docs 75 | - recursive_getters 76 | - slash_for_doc_comments 77 | - sort_constructors_first 78 | - sort_unnamed_constructors_first 79 | - super_goes_last 80 | - test_types_in_equals 81 | - throw_in_finally 82 | - type_annotate_public_apis 83 | - type_init_formals 84 | - unawaited_futures 85 | - unnecessary_brace_in_string_interps 86 | - unnecessary_getters_setters 87 | - unnecessary_lambdas 88 | - unnecessary_null_aware_assignments 89 | - unnecessary_null_in_if_null_operators 90 | - unnecessary_overrides 91 | - unnecessary_this 92 | - unrelated_type_equality_checks 93 | - use_rethrow_when_possible 94 | - use_setters_to_change_properties 95 | - use_string_buffers 96 | - use_to_and_as_if_applicable 97 | - valid_regexps 98 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | analyzer: 2 | strong-mode: true 3 | 4 | linter: 5 | rules: 6 | - always_declare_return_types 7 | - always_put_control_body_on_new_line 8 | - always_put_required_named_parameters_first 9 | - always_require_non_null_named_parameters 10 | # - always_specify_types 11 | - annotate_overrides 12 | - avoid_annotating_with_dynamic 13 | # - avoid_as 14 | - avoid_catches_without_on_clauses 15 | - avoid_catching_errors 16 | - avoid_classes_with_only_static_members 17 | - avoid_empty_else 18 | - avoid_function_literals_in_foreach_calls 19 | - avoid_init_to_null 20 | - avoid_null_checks_in_equality_operators 21 | - avoid_positional_boolean_parameters 22 | - avoid_return_types_on_setters 23 | - avoid_returning_null 24 | - avoid_returning_this 25 | - avoid_setters_without_getters 26 | - avoid_slow_async_io 27 | - avoid_types_on_closure_parameters 28 | - await_only_futures 29 | - camel_case_types 30 | - cancel_subscriptions 31 | - cascade_invocations 32 | - close_sinks 33 | - comment_references 34 | - constant_identifier_names 35 | - control_flow_in_finally 36 | - directives_ordering 37 | - empty_catches 38 | - empty_constructor_bodies 39 | - empty_statements 40 | - hash_and_equals 41 | - implementation_imports 42 | - invariant_booleans 43 | - invariant_booleans 44 | - iterable_contains_unrelated_type 45 | - join_return_with_assignment 46 | - library_names 47 | - library_prefixes 48 | - list_remove_unrelated_type 49 | - literal_only_boolean_expressions 50 | - no_adjacent_strings_in_list 51 | - no_duplicate_case_values 52 | - non_constant_identifier_names 53 | - omit_local_variable_types 54 | - one_member_abstracts 55 | - only_throw_errors 56 | - overridden_fields 57 | - package_api_docs 58 | - package_names 59 | - package_prefixed_library_names 60 | - parameter_assignments 61 | - prefer_adjacent_string_concatenation 62 | - prefer_asserts_in_initializer_lists 63 | # - prefer_bool_in_asserts 64 | - prefer_collection_literals 65 | - prefer_conditional_assignment 66 | - prefer_const_constructors 67 | - prefer_const_constructors_in_immutables 68 | - prefer_constructors_over_static_methods 69 | - prefer_contains 70 | - prefer_expression_function_bodies 71 | - prefer_final_fields 72 | - prefer_final_locals 73 | - prefer_foreach 74 | - prefer_function_declarations_over_variables 75 | - prefer_initializing_formals 76 | - prefer_interpolation_to_compose_strings 77 | - prefer_is_empty 78 | - prefer_is_not_empty 79 | - prefer_single_quotes 80 | - public_member_api_docs 81 | - recursive_getters 82 | - slash_for_doc_comments 83 | - sort_constructors_first 84 | - sort_unnamed_constructors_first 85 | - super_goes_last 86 | - test_types_in_equals 87 | - throw_in_finally 88 | - type_annotate_public_apis 89 | - type_init_formals 90 | - unawaited_futures 91 | - unnecessary_brace_in_string_interps 92 | - unnecessary_getters_setters 93 | - unnecessary_lambdas 94 | - unnecessary_null_aware_assignments 95 | - unnecessary_null_in_if_null_operators 96 | - unnecessary_overrides 97 | - unnecessary_this 98 | - unrelated_type_equality_checks 99 | - use_rethrow_when_possible 100 | - use_setters_to_change_properties 101 | - use_string_buffers 102 | - use_to_and_as_if_applicable 103 | - valid_regexps 104 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /test/greencat_test.dart: -------------------------------------------------------------------------------- 1 | import 'package:greencat/greencat.dart'; 2 | import 'package:logging/logging.dart'; 3 | import 'package:test/test.dart'; 4 | import 'package:todo_list/todo_list.dart'; 5 | import 'package:tuple/tuple.dart'; 6 | 7 | void main() { 8 | group('Simple store', () { 9 | Store> store; 10 | 11 | setUp(() { 12 | store = new Store.createStore(todoApp, 13 | initialState: const TodoState.initial()); 14 | }); 15 | 16 | tearDown(() { 17 | store.close(); 18 | }); 19 | 20 | test('adds a todo', () { 21 | expect(store.state.todos.length, 0); 22 | 23 | store.dispatch(addTodo('test this adds a todo')); 24 | 25 | expect(store.state.todos.length, 1); 26 | }); 27 | 28 | test('toggles a todo', () { 29 | store 30 | ..dispatch(addTodo('test this adds a todo')) 31 | ..dispatch(addTodo('test this adds another todo')); 32 | 33 | expect(store.state.todos.elementAt(0).completed, isFalse); 34 | 35 | store.dispatch(toggleTodo(0)); 36 | 37 | expect(store.state.todos.elementAt(0).completed, isTrue); 38 | expect(store.state.todos.elementAt(1).completed, isFalse); 39 | }); 40 | 41 | test('sets visibility filter', () { 42 | expect(store.state.filter, VisibilityFilter.all); 43 | 44 | store.dispatch(setVisibilityFilter(VisibilityFilter.showCompleted)); 45 | 46 | expect(store.state.filter, VisibilityFilter.showCompleted); 47 | }); 48 | 49 | test('adds middleware', () async { 50 | store 51 | ..addMiddleware(const ThunkMiddleware()) 52 | ..dispatch(asyncAddTodo('thunk!')); 53 | await store.stream.first; 54 | 55 | expect(store.state.todos.length, 1); 56 | expect(store.state.todos.last.description, 'thunk!'); 57 | }); 58 | 59 | test('logging middleware sends messages', () async { 60 | store.addMiddleware( 61 | new LoggingMiddleware(Logger.root)); 62 | final logRecords = []; 63 | Logger.root 64 | ..level = Level.FINE 65 | ..onRecord.listen(logRecords.add); 66 | 67 | store.add(addTodo('log')); 68 | 69 | expect(logRecords, hasLength(4)); 70 | expect(logRecords.first.message, contains('action')); 71 | }); 72 | }); 73 | 74 | group('Combined store', () { 75 | Store, VisibilityFilter>, TodoAction> store; 76 | 77 | setUp(() { 78 | store = new Store.createStore(todoCombinedApp); 79 | }); 80 | 81 | tearDown(() { 82 | store.close(); 83 | }); 84 | 85 | test('adds a todo', () { 86 | expect(store.state.item1.length, 0); 87 | 88 | store.dispatch(addTodo('test this adds a todo')); 89 | 90 | expect(store.state.item1.length, 1); 91 | }); 92 | 93 | test('toggles a todo', () { 94 | store 95 | ..dispatch(addTodo('test this adds a todo')) 96 | ..dispatch(addTodo('test this adds another todo')); 97 | 98 | expect(store.state.item1.elementAt(0).completed, isFalse); 99 | 100 | store.dispatch(toggleTodo(0)); 101 | 102 | expect(store.state.item1.elementAt(0).completed, isTrue); 103 | expect(store.state.item1.elementAt(1).completed, isFalse); 104 | }); 105 | 106 | test('sets visibility filter', () { 107 | expect(store.state.item2, VisibilityFilter.all); 108 | 109 | store.dispatch(setVisibilityFilter(VisibilityFilter.showCompleted)); 110 | 111 | expect(store.state.item2, VisibilityFilter.showCompleted); 112 | }); 113 | 114 | test('adds middleware', () async { 115 | store 116 | ..addMiddleware(const ThunkMiddleware< 117 | Tuple2, VisibilityFilter>, TodoAction>()) 118 | ..dispatch(asyncAddTodo('thunk!')); 119 | await store.stream.first; 120 | 121 | expect(store.state.item1.length, 1); 122 | expect(store.state.item1.last.description, 'thunk!'); 123 | }); 124 | }); 125 | } 126 | -------------------------------------------------------------------------------- /lib/src/store.dart: -------------------------------------------------------------------------------- 1 | library store; 2 | 3 | import 'dart:async'; 4 | 5 | import 'package:greencat/src/action.dart'; 6 | import 'package:greencat/src/middleware_api.dart'; 7 | import 'package:greencat/src/typedefs.dart'; 8 | 9 | /// A store holds the whole state tree of your application. 10 | /// The only way to change the state inside it is to dispatch an action on it. 11 | /// 12 | /// Unlike Redux a store is a class. The api is similar to the api in Redux. 13 | class Store implements Sink { 14 | Reducer _reducer; 15 | S _state; 16 | final StreamController _controller; 17 | final List> _middlewares = >[]; 18 | 19 | /// Creates a Redux store that holds the complete state tree of your app. 20 | /// There should only be a single store in your app. 21 | /// 22 | /// [reducer] A reducing function that returns the next state tree, given 23 | /// the current state tree and an action to handle. 24 | /// 25 | /// [initialState] The initial state. You may optionally specify it to hydrate the 26 | /// state from the server in universal apps, or to restore a previously 27 | /// serialized user session. If you produced reducer with combineReducers, 28 | /// this must be a plain object with the same shape as the keys passed to it. 29 | /// Otherwise, you are free to pass anything that your reducer can understand. 30 | /// 31 | /// [enhancer] The store enhancer. You may optionally specify it to enhance 32 | /// the store with third-party capabilities such as middleware, time travel, 33 | /// persistence, etc. The only store enhancer that ships with Redux is 34 | /// applyMiddleware(). 35 | Store.createStore(Reducer reducer, 36 | {S initialState, Function enhancer, bool sync: false}) 37 | : _reducer = reducer, 38 | _state = initialState ?? reducer(null, currentState: null), 39 | _controller = new StreamController.broadcast(sync: sync); 40 | 41 | /// Returns the current state tree of your application. 42 | /// It is equal to the last value returned by the store’s reducer. 43 | S get state => _state; 44 | 45 | /// Provides access to the stream of changes, whenever `dispacth` is invoked, 46 | /// the result of invoking the reducer will be emmitted through this stream. 47 | /// This also lets this class delegate subscriptions and cancelations to the 48 | /// underlying Stream. 49 | Stream get stream => _controller.stream; 50 | 51 | /// Same as dispatch, added since this is the method native to the Dart SDK. 52 | @override 53 | void add(A action) { 54 | dispatch(action); 55 | } 56 | 57 | /// Middleware is the suggested way to extend Redux with custom functionality. 58 | /// Middleware lets you wrap the store’s dispatch method for fun and profit. 59 | /// The key feature of middleware is that it is composable. Multiple 60 | /// middleware can be combined together, where each middleware requires no 61 | /// knowledge of what comes before or after it in the chain. 62 | void addMiddleware(Middleware middleware) { 63 | _middlewares.add(middleware); 64 | } 65 | 66 | @override 67 | void close() { 68 | _controller.close(); 69 | } 70 | 71 | /// Dispatches an action. This is the only way to trigger a state change. 72 | /// 73 | /// The store’s reducing function will be called with the current getState() 74 | /// result and the given action synchronously. Its return value will be 75 | /// considered the next state. It will be returned from getState() from now 76 | /// on, and the change listeners will immediately be notified. 77 | void dispatch(A action) { 78 | final args = new MiddlewareApi(this); 79 | S zero(A a) { 80 | _state = _reducer(a, currentState: _state); 81 | _controller.add(_state); 82 | return _state; 83 | } 84 | 85 | final transformers = _middlewares.map((m) => m(args)); 86 | final dispatch = 87 | transformers.fold(zero, (acc, transformer) => transformer(acc)); 88 | dispatch(action); 89 | } 90 | 91 | // ignore: use_setters_to_change_properties 92 | /// Adds a change listener. It will be called any time an action is 93 | /// dispatched, and some part of the state tree may potentially have changed. 94 | /// You may then call getState() to read the current state tree inside the 95 | /// callback. SubscriptionCancellation subscribe(Function listener); 96 | 97 | /// Replaces the reducer currently used by the store to calculate the state. 98 | /// 99 | /// It is an advanced API. You might need this if your app implements code 100 | /// splitting, and you want to load some of the reducers dynamically. You 101 | /// might also need this if you implement a hot reloading mechanism for 102 | /// Redux. 103 | // TODO: If reducer is replaceable, other than null verification, there is no 104 | // reason preventing _reducer from being public. Should we verify is not null 105 | // and invoke it since it should be pure? Probably invoke it is too much since 106 | // it might be expensive. 107 | void replaceReducer(Reducer reducer) { 108 | _reducer = reducer; 109 | } 110 | } 111 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | realpath() { 27 | DIRECTORY="$(cd "${1%/*}" && pwd)" 28 | FILENAME="${1##*/}" 29 | echo "$DIRECTORY/$FILENAME" 30 | } 31 | 32 | install_resource() 33 | { 34 | if [[ "$1" = /* ]] ; then 35 | RESOURCE_PATH="$1" 36 | else 37 | RESOURCE_PATH="${PODS_ROOT}/$1" 38 | fi 39 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 40 | cat << EOM 41 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 42 | EOM 43 | exit 1 44 | fi 45 | case $RESOURCE_PATH in 46 | *.storyboard) 47 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 48 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 49 | ;; 50 | *.xib) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.framework) 55 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 57 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 58 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 59 | ;; 60 | *.xcdatamodel) 61 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 62 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 63 | ;; 64 | *.xcdatamodeld) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 67 | ;; 68 | *.xcmappingmodel) 69 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 70 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 71 | ;; 72 | *.xcassets) 73 | ABSOLUTE_XCASSET_FILE=$(realpath "$RESOURCE_PATH") 74 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 75 | ;; 76 | *) 77 | echo "$RESOURCE_PATH" 78 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 79 | ;; 80 | esac 81 | } 82 | 83 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 86 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 87 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | fi 89 | rm -f "$RESOURCES_TO_COPY" 90 | 91 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 92 | then 93 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 94 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 95 | while read line; do 96 | if [[ $line != "`realpath $PODS_ROOT`*" ]]; then 97 | XCASSET_FILES+=("$line") 98 | fi 99 | done <<<"$OTHER_XCASSETS" 100 | 101 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 102 | fi 103 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/web/main.dart: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2016, Alexei Eleusis Díaz Vera. All rights reserved. Use of this source code 2 | 3 | // is governed by a BSD-style license that can be found in the LICENSE file. 4 | 5 | import 'dart:html' as html; 6 | 7 | import 'package:butterfly/butterfly.dart'; 8 | import 'package:greencat/greencat.dart'; 9 | import 'package:logging/logging.dart'; 10 | import 'package:todo_list/todo_list.dart'; 11 | import 'package:tuple/tuple.dart'; 12 | 13 | void main() { 14 | runApp(new TodoApp(), html.document.querySelector('#output')); 15 | } 16 | 17 | /// App to manage todos. 18 | class TodoApp extends StatefulWidget { 19 | @override 20 | State createState() => new _TodoAppState(); 21 | } 22 | 23 | class _TodoAppState extends State { 24 | /// Store built with the combine ... 25 | final Store, VisibilityFilter>, TodoAction> 26 | combinedStore = new Store.createStore(todoCombinedApp); 27 | 28 | _TodoAppState() { 29 | combinedStore 30 | ..dispatch(addTodo('take care of the green caterpillar'))..dispatch( 31 | addTodo('wait until it becomes a butterfly :)'))..dispatch( 32 | addTodo('teach the butterfly to flutter'))..dispatch(toggleTodo(0)) 33 | ..addMiddleware(const ThunkMiddleware< 34 | Tuple2, VisibilityFilter>, 35 | TodoAction>()); 36 | Logger.root 37 | ..level = Level.FINE 38 | ..onRecord.listen((rec) { 39 | print('${rec.loggerName} ${rec.time}'); 40 | print('${rec.message}'); 41 | }); 42 | 43 | combinedStore.addMiddleware(new LoggingMiddleware(Logger.root)); 44 | } 45 | 46 | List get _buildListItems => 47 | _visibleTodos 48 | .map((todo) => 49 | li()([ 50 | div()([ 51 | input('checkbox', attrs: const {'class': 'toggle'}, 52 | props: (props) { 53 | props.checked = todo.completed; 54 | }, eventListeners: { 55 | EventType.click: (_) { 56 | _completeMe(todo); 57 | } 58 | })(), 59 | label()([text(todo.description)]) 60 | ]) 61 | ])) 62 | .toList(); 63 | 64 | /// Todos to be displayed in the ui. 65 | Iterable get _visibleTodos => 66 | combinedStore.state.item1.where((t) => 67 | combinedStore.state.item2 == VisibilityFilter.all || 68 | t.completed && 69 | combinedStore.state.item2 == VisibilityFilter.showCompleted || 70 | !t.completed && 71 | combinedStore.state.item2 == VisibilityFilter.showPending); 72 | 73 | @override 74 | Node build() { 75 | final listItems = _buildListItems; 76 | 77 | return div()([ 78 | section(attrs: const {'id': 'todoapp'})([ 79 | header(attrs: const {'id': 'header'})([ 80 | h1()([text('todos')]), 81 | input('text', attrs: const { 82 | 'id': 'new-todo', 83 | 'placeholder': 'What needs to be done?', 84 | 'autofocus': '', 85 | }, eventListeners: { 86 | EventType.keyup: onKeyEnter((event) { 87 | _enterTodo(event.nativeEvent.target as html.InputElement); 88 | }) 89 | })(), 90 | ]), 91 | section(attrs: const {'id': 'main'})([ 92 | input('checkbox', 93 | attrs: const {'id': 'toggle-all'}, 94 | eventListeners: {EventType.click: _toggleAll})(), 95 | label(attrs: const {'for': 'toggle-all'})( 96 | [text('Mark all as complete')]), 97 | ul(attrs: const {'id': 'todo-list'})(listItems), 98 | ]), 99 | footer(attrs: const {'id': 'footer'})([ 100 | span(attrs: const {'id': 'todo-count'})(), 101 | // Dunno what this does, but it's in the angular2 version 102 | div(attrs: const {'class': 'hidden'})(), 103 | ul(attrs: const {'id': 'filters'})([ 104 | li()([ 105 | a(attrs: const { 106 | 'href': '#/', 107 | 'class': 'selected' 108 | }, eventListeners: { 109 | EventType.click: _changeFilterToAll 110 | })([text('All')]), 111 | ]), 112 | li()([ 113 | a(attrs: const { 114 | 'href': '#/active' 115 | }, eventListeners: { 116 | EventType.click: _changeFilterToPending 117 | })([text('Active')]), 118 | ]), 119 | li()([ 120 | a(attrs: const { 121 | 'href': '#/completed' 122 | }, eventListeners: { 123 | EventType.click: _changeFilterToCompleted 124 | })([text('Completed')]), 125 | ]), 126 | ]), 127 | ]), 128 | ]), 129 | footer(attrs: const {'id': 'info'})([ 130 | p()([ 131 | text('Created using '), 132 | a(attrs: const {'href': 'https://github.com/yjbanov/butterfly'})( 133 | [text('Butterfly')]), 134 | ]), 135 | ]), 136 | ]); 137 | } 138 | 139 | void _changeFilterToAll(Event event) { 140 | combinedStore.dispatch(setVisibilityFilter(VisibilityFilter.all)); 141 | scheduleUpdate(); 142 | } 143 | 144 | void _changeFilterToCompleted(Event event) { 145 | combinedStore.dispatch(setVisibilityFilter(VisibilityFilter.showCompleted)); 146 | scheduleUpdate(); 147 | } 148 | 149 | void _changeFilterToPending(Event event) { 150 | combinedStore.dispatch(setVisibilityFilter(VisibilityFilter.showPending)); 151 | scheduleUpdate(); 152 | } 153 | 154 | void _completeMe(Todo todo) { 155 | final index = _findIndex(todo); 156 | combinedStore.dispatch(toggleTodo(index)); 157 | scheduleUpdate(); 158 | } 159 | 160 | void _enterTodo(html.InputElement inputElement) { 161 | combinedStore.dispatch(asyncAddTodo(inputElement.value)); 162 | inputElement.value = ''; 163 | scheduleUpdate(); 164 | } 165 | 166 | int _findIndex(Todo todo) => combinedStore.state.item1.toList().indexOf(todo); 167 | 168 | void _toggleAll(Event event) { 169 | for (final todo in combinedStore.state.item1) { 170 | combinedStore.dispatch(toggleTodo(_findIndex(todo))); 171 | } 172 | scheduleUpdate(); 173 | } 174 | } 175 | -------------------------------------------------------------------------------- /APACHE_LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | -------------------------------------------------------------------------------- /example/todo_list_butterfly/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016, Alexei Eleusis Díaz Vera. 2 | 3 | Apache License 4 | Version 2.0, January 2004 5 | http://www.apache.org/licenses/ 6 | 7 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 8 | 9 | 1. Definitions. 10 | 11 | "License" shall mean the terms and conditions for use, reproduction, 12 | and distribution as defined by Sections 1 through 9 of this document. 13 | 14 | "Licensor" shall mean the copyright owner or entity authorized by 15 | the copyright owner that is granting the License. 16 | 17 | "Legal Entity" shall mean the union of the acting entity and all 18 | other entities that control, are controlled by, or are under common 19 | control with that entity. For the purposes of this definition, 20 | "control" means (i) the power, direct or indirect, to cause the 21 | direction or management of such entity, whether by contract or 22 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 23 | outstanding shares, or (iii) beneficial ownership of such entity. 24 | 25 | "You" (or "Your") shall mean an individual or Legal Entity 26 | exercising permissions granted by this License. 27 | 28 | "Source" form shall mean the preferred form for making modifications, 29 | including but not limited to software source code, documentation 30 | source, and configuration files. 31 | 32 | "Object" form shall mean any form resulting from mechanical 33 | transformation or translation of a Source form, including but 34 | not limited to compiled object code, generated documentation, 35 | and conversions to other media types. 36 | 37 | "Work" shall mean the work of authorship, whether in Source or 38 | Object form, made available under the License, as indicated by a 39 | copyright notice that is included in or attached to the work 40 | (an example is provided in the Appendix below). 41 | 42 | "Derivative Works" shall mean any work, whether in Source or Object 43 | form, that is based on (or derived from) the Work and for which the 44 | editorial revisions, annotations, elaborations, or other modifications 45 | represent, as a whole, an original work of authorship. For the purposes 46 | of this License, Derivative Works shall not include works that remain 47 | separable from, or merely link (or bind by name) to the interfaces of, 48 | the Work and Derivative Works thereof. 49 | 50 | "Contribution" shall mean any work of authorship, including 51 | the original version of the Work and any modifications or additions 52 | to that Work or Derivative Works thereof, that is intentionally 53 | submitted to Licensor for inclusion in the Work by the copyright owner 54 | or by an individual or Legal Entity authorized to submit on behalf of 55 | the copyright owner. For the purposes of this definition, "submitted" 56 | means any form of electronic, verbal, or written communication sent 57 | to the Licensor or its representatives, including but not limited to 58 | communication on electronic mailing lists, source code control systems, 59 | and issue tracking systems that are managed by, or on behalf of, the 60 | Licensor for the purpose of discussing and improving the Work, but 61 | excluding communication that is conspicuously marked or otherwise 62 | designated in writing by the copyright owner as "Not a Contribution." 63 | 64 | "Contributor" shall mean Licensor and any individual or Legal Entity 65 | on behalf of whom a Contribution has been received by Licensor and 66 | subsequently incorporated within the Work. 67 | 68 | 2. Grant of Copyright License. Subject to the terms and conditions of 69 | this License, each Contributor hereby grants to You a perpetual, 70 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 71 | copyright license to reproduce, prepare Derivative Works of, 72 | publicly display, publicly perform, sublicense, and distribute the 73 | Work and such Derivative Works in Source or Object form. 74 | 75 | 3. Grant of Patent License. Subject to the terms and conditions of 76 | this License, each Contributor hereby grants to You a perpetual, 77 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 78 | (except as stated in this section) patent license to make, have made, 79 | use, offer to sell, sell, import, and otherwise transfer the Work, 80 | where such license applies only to those patent claims licensable 81 | by such Contributor that are necessarily infringed by their 82 | Contribution(s) alone or by combination of their Contribution(s) 83 | with the Work to which such Contribution(s) was submitted. If You 84 | institute patent litigation against any entity (including a 85 | cross-claim or counterclaim in a lawsuit) alleging that the Work 86 | or a Contribution incorporated within the Work constitutes direct 87 | or contributory patent infringement, then any patent licenses 88 | granted to You under this License for that Work shall terminate 89 | as of the date such litigation is filed. 90 | 91 | 4. Redistribution. You may reproduce and distribute copies of the 92 | Work or Derivative Works thereof in any medium, with or without 93 | modifications, and in Source or Object form, provided that You 94 | meet the following conditions: 95 | 96 | (a) You must give any other recipients of the Work or 97 | Derivative Works a copy of this License; and 98 | 99 | (b) You must cause any modified files to carry prominent notices 100 | stating that You changed the files; and 101 | 102 | (c) You must retain, in the Source form of any Derivative Works 103 | that You distribute, all copyright, patent, trademark, and 104 | attribution notices from the Source form of the Work, 105 | excluding those notices that do not pertain to any part of 106 | the Derivative Works; and 107 | 108 | (d) If the Work includes a "NOTICE" text file as part of its 109 | distribution, then any Derivative Works that You distribute must 110 | include a readable copy of the attribution notices contained 111 | within such NOTICE file, excluding those notices that do not 112 | pertain to any part of the Derivative Works, in at least one 113 | of the following places: within a NOTICE text file distributed 114 | as part of the Derivative Works; within the Source form or 115 | documentation, if provided along with the Derivative Works; or, 116 | within a display generated by the Derivative Works, if and 117 | wherever such third-party notices normally appear. The contents 118 | of the NOTICE file are for informational purposes only and 119 | do not modify the License. You may add Your own attribution 120 | notices within Derivative Works that You distribute, alongside 121 | or as an addendum to the NOTICE text from the Work, provided 122 | that such additional attribution notices cannot be construed 123 | as modifying the License. 124 | 125 | You may add Your own copyright statement to Your modifications and 126 | may provide additional or different license terms and conditions 127 | for use, reproduction, or distribution of Your modifications, or 128 | for any such Derivative Works as a whole, provided Your use, 129 | reproduction, and distribution of the Work otherwise complies with 130 | the conditions stated in this License. 131 | 132 | 5. Submission of Contributions. Unless You explicitly state otherwise, 133 | any Contribution intentionally submitted for inclusion in the Work 134 | by You to the Licensor shall be under the terms and conditions of 135 | this License, without any additional terms or conditions. 136 | Notwithstanding the above, nothing herein shall supersede or modify 137 | the terms of any separate license agreement you may have executed 138 | with Licensor regarding such Contributions. 139 | 140 | 6. Trademarks. This License does not grant permission to use the trade 141 | names, trademarks, service marks, or product names of the Licensor, 142 | except as required for reasonable and customary use in describing the 143 | origin of the Work and reproducing the content of the NOTICE file. 144 | 145 | 7. Disclaimer of Warranty. Unless required by applicable law or 146 | agreed to in writing, Licensor provides the Work (and each 147 | Contributor provides its Contributions) on an "AS IS" BASIS, 148 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 149 | implied, including, without limitation, any warranties or conditions 150 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 151 | PARTICULAR PURPOSE. You are solely responsible for determining the 152 | appropriateness of using or redistributing the Work and assume any 153 | risks associated with Your exercise of permissions under this License. 154 | 155 | 8. Limitation of Liability. In no event and under no legal theory, 156 | whether in tort (including negligence), contract, or otherwise, 157 | unless required by applicable law (such as deliberate and grossly 158 | negligent acts) or agreed to in writing, shall any Contributor be 159 | liable to You for damages, including any direct, indirect, special, 160 | incidental, or consequential damages of any character arising as a 161 | result of this License or out of the use or inability to use the 162 | Work (including but not limited to damages for loss of goodwill, 163 | work stoppage, computer failure or malfunction, or any and all 164 | other commercial damages or losses), even if such Contributor 165 | has been advised of the possibility of such damages. 166 | 167 | 9. Accepting Warranty or Additional Liability. While redistributing 168 | the Work or Derivative Works thereof, You may choose to offer, 169 | and charge a fee for, acceptance of support, warranty, indemnity, 170 | or other liability obligations and/or rights consistent with this 171 | License. However, in accepting such obligations, You may act only 172 | on Your own behalf and on Your sole responsibility, not on behalf 173 | of any other Contributor, and only if You agree to indemnify, 174 | defend, and hold each Contributor harmless for any liability 175 | incurred by, or claims asserted against, such Contributor by reason 176 | of your accepting any such warranty or additional liability. 177 | 178 | END OF TERMS AND CONDITIONS 179 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 08F011DBD88D0920DE96F3C5A69A26E8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */; }; 11 | D3926DFAF385F0A3878A1536D134FB40 /* Pods-Runner-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 468664057D17C890473F3825BE8B6822 /* Pods-Runner-dummy.m */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXFileReference section */ 15 | 027D05C3C28CE1BD46A8707666A9C5F8 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 16 | 14E58FE88BDE74696DA18D71709505C9 /* Pods-Runner-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Runner-acknowledgements.plist"; sourceTree = ""; }; 17 | 1B4CEFB7A7C39037B5DFAFCE375062E1 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 18 | 468664057D17C890473F3825BE8B6822 /* Pods-Runner-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Runner-dummy.m"; sourceTree = ""; }; 19 | 5C42D986846F74B4DB78535F7182D117 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Runner.release.xcconfig"; sourceTree = ""; }; 20 | 7AD2F72BE79A2D928E85F9EB9FB613FA /* Pods-Runner-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Runner-acknowledgements.markdown"; sourceTree = ""; }; 21 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 22 | A1153EC5FE504BE5C724E20E9B411E90 /* Pods-Runner-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Runner-frameworks.sh"; sourceTree = ""; }; 23 | A84633CB40E489EF4DD77D43434D3024 /* Pods-Runner-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Runner-resources.sh"; sourceTree = ""; }; 24 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 25 | /* End PBXFileReference section */ 26 | 27 | /* Begin PBXFrameworksBuildPhase section */ 28 | 08266C2F1E6679346D9D748BD3A7915D /* Frameworks */ = { 29 | isa = PBXFrameworksBuildPhase; 30 | buildActionMask = 2147483647; 31 | files = ( 32 | 08F011DBD88D0920DE96F3C5A69A26E8 /* Foundation.framework in Frameworks */, 33 | ); 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXFrameworksBuildPhase section */ 37 | 38 | /* Begin PBXGroup section */ 39 | 1C79DB53CD07E661221493B5C6E0CF0B /* Pods-Runner */ = { 40 | isa = PBXGroup; 41 | children = ( 42 | 7AD2F72BE79A2D928E85F9EB9FB613FA /* Pods-Runner-acknowledgements.markdown */, 43 | 14E58FE88BDE74696DA18D71709505C9 /* Pods-Runner-acknowledgements.plist */, 44 | 468664057D17C890473F3825BE8B6822 /* Pods-Runner-dummy.m */, 45 | A1153EC5FE504BE5C724E20E9B411E90 /* Pods-Runner-frameworks.sh */, 46 | A84633CB40E489EF4DD77D43434D3024 /* Pods-Runner-resources.sh */, 47 | 1B4CEFB7A7C39037B5DFAFCE375062E1 /* Pods-Runner.debug.xcconfig */, 48 | 5C42D986846F74B4DB78535F7182D117 /* Pods-Runner.release.xcconfig */, 49 | ); 50 | name = "Pods-Runner"; 51 | path = "Target Support Files/Pods-Runner"; 52 | sourceTree = ""; 53 | }; 54 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */ = { 55 | isa = PBXGroup; 56 | children = ( 57 | CEC22C73C1608DFA5D5D78BDCB218219 /* Foundation.framework */, 58 | ); 59 | name = iOS; 60 | sourceTree = ""; 61 | }; 62 | 6276BDF4AEEBE7163429CDB73B6980D7 /* Targets Support Files */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | 1C79DB53CD07E661221493B5C6E0CF0B /* Pods-Runner */, 66 | ); 67 | name = "Targets Support Files"; 68 | sourceTree = ""; 69 | }; 70 | 7DB346D0F39D3F0E887471402A8071AB = { 71 | isa = PBXGroup; 72 | children = ( 73 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 74 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 75 | 9A3A7EACADA9417D2516CD83C5B1027A /* Products */, 76 | 6276BDF4AEEBE7163429CDB73B6980D7 /* Targets Support Files */, 77 | ); 78 | sourceTree = ""; 79 | }; 80 | 9A3A7EACADA9417D2516CD83C5B1027A /* Products */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 027D05C3C28CE1BD46A8707666A9C5F8 /* libPods-Runner.a */, 84 | ); 85 | name = Products; 86 | sourceTree = ""; 87 | }; 88 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | 3DCAB2B7CDE207B3958B6CB957FCC758 /* iOS */, 92 | ); 93 | name = Frameworks; 94 | sourceTree = ""; 95 | }; 96 | /* End PBXGroup section */ 97 | 98 | /* Begin PBXNativeTarget section */ 99 | B0B211B0FA111CE20F29C3A6B3CED356 /* Pods-Runner */ = { 100 | isa = PBXNativeTarget; 101 | buildConfigurationList = BBD992B4B5EA046F3BF6DB62624D0AF0 /* Build configuration list for PBXNativeTarget "Pods-Runner" */; 102 | buildPhases = ( 103 | 83AF969EC59378C6BB28D1C7AFE23E7D /* Sources */, 104 | 08266C2F1E6679346D9D748BD3A7915D /* Frameworks */, 105 | ); 106 | buildRules = ( 107 | ); 108 | dependencies = ( 109 | ); 110 | name = "Pods-Runner"; 111 | productName = "Pods-Runner"; 112 | productReference = 027D05C3C28CE1BD46A8707666A9C5F8 /* libPods-Runner.a */; 113 | productType = "com.apple.product-type.library.static"; 114 | }; 115 | /* End PBXNativeTarget section */ 116 | 117 | /* Begin PBXProject section */ 118 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 119 | isa = PBXProject; 120 | attributes = { 121 | LastSwiftUpdateCheck = 0730; 122 | LastUpgradeCheck = 0700; 123 | }; 124 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 125 | compatibilityVersion = "Xcode 3.2"; 126 | developmentRegion = English; 127 | hasScannedForEncodings = 0; 128 | knownRegions = ( 129 | en, 130 | ); 131 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 132 | productRefGroup = 9A3A7EACADA9417D2516CD83C5B1027A /* Products */; 133 | projectDirPath = ""; 134 | projectRoot = ""; 135 | targets = ( 136 | B0B211B0FA111CE20F29C3A6B3CED356 /* Pods-Runner */, 137 | ); 138 | }; 139 | /* End PBXProject section */ 140 | 141 | /* Begin PBXSourcesBuildPhase section */ 142 | 83AF969EC59378C6BB28D1C7AFE23E7D /* Sources */ = { 143 | isa = PBXSourcesBuildPhase; 144 | buildActionMask = 2147483647; 145 | files = ( 146 | D3926DFAF385F0A3878A1536D134FB40 /* Pods-Runner-dummy.m in Sources */, 147 | ); 148 | runOnlyForDeploymentPostprocessing = 0; 149 | }; 150 | /* End PBXSourcesBuildPhase section */ 151 | 152 | /* Begin XCBuildConfiguration section */ 153 | 309EF1F5E327BE758428CD2A22E8B8BD /* Debug */ = { 154 | isa = XCBuildConfiguration; 155 | baseConfigurationReference = 1B4CEFB7A7C39037B5DFAFCE375062E1 /* Pods-Runner.debug.xcconfig */; 156 | buildSettings = { 157 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 158 | DEBUG_INFORMATION_FORMAT = dwarf; 159 | ENABLE_STRICT_OBJC_MSGSEND = YES; 160 | GCC_NO_COMMON_BLOCKS = YES; 161 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 162 | MACH_O_TYPE = staticlib; 163 | MTL_ENABLE_DEBUG_INFO = YES; 164 | OTHER_LDFLAGS = ""; 165 | OTHER_LIBTOOLFLAGS = ""; 166 | PODS_ROOT = "$(SRCROOT)"; 167 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 168 | PRODUCT_NAME = "$(TARGET_NAME)"; 169 | SDKROOT = iphoneos; 170 | SKIP_INSTALL = YES; 171 | }; 172 | name = Debug; 173 | }; 174 | 3FA451D268613890FA8A5A03801E11D5 /* Release */ = { 175 | isa = XCBuildConfiguration; 176 | buildSettings = { 177 | ALWAYS_SEARCH_USER_PATHS = NO; 178 | CLANG_ANALYZER_NONNULL = YES; 179 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 180 | CLANG_CXX_LIBRARY = "libc++"; 181 | CLANG_ENABLE_MODULES = YES; 182 | CLANG_ENABLE_OBJC_ARC = YES; 183 | CLANG_WARN_BOOL_CONVERSION = YES; 184 | CLANG_WARN_CONSTANT_CONVERSION = YES; 185 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 186 | CLANG_WARN_EMPTY_BODY = YES; 187 | CLANG_WARN_ENUM_CONVERSION = YES; 188 | CLANG_WARN_INT_CONVERSION = YES; 189 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 190 | CLANG_WARN_UNREACHABLE_CODE = YES; 191 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 192 | COPY_PHASE_STRIP = YES; 193 | ENABLE_NS_ASSERTIONS = NO; 194 | GCC_C_LANGUAGE_STANDARD = gnu99; 195 | GCC_PREPROCESSOR_DEFINITIONS = ( 196 | "POD_CONFIGURATION_RELEASE=1", 197 | "$(inherited)", 198 | ); 199 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 200 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 201 | GCC_WARN_UNDECLARED_SELECTOR = YES; 202 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 203 | GCC_WARN_UNUSED_FUNCTION = YES; 204 | GCC_WARN_UNUSED_VARIABLE = YES; 205 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 206 | STRIP_INSTALLED_PRODUCT = NO; 207 | SYMROOT = "${SRCROOT}/../build"; 208 | VALIDATE_PRODUCT = YES; 209 | }; 210 | name = Release; 211 | }; 212 | 5E62115DE8C09934BF8D2FE5D15FED1E /* Debug */ = { 213 | isa = XCBuildConfiguration; 214 | buildSettings = { 215 | ALWAYS_SEARCH_USER_PATHS = NO; 216 | CLANG_ANALYZER_NONNULL = YES; 217 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 218 | CLANG_CXX_LIBRARY = "libc++"; 219 | CLANG_ENABLE_MODULES = YES; 220 | CLANG_ENABLE_OBJC_ARC = YES; 221 | CLANG_WARN_BOOL_CONVERSION = YES; 222 | CLANG_WARN_CONSTANT_CONVERSION = YES; 223 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 224 | CLANG_WARN_EMPTY_BODY = YES; 225 | CLANG_WARN_ENUM_CONVERSION = YES; 226 | CLANG_WARN_INT_CONVERSION = YES; 227 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 228 | CLANG_WARN_UNREACHABLE_CODE = YES; 229 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 230 | COPY_PHASE_STRIP = NO; 231 | ENABLE_TESTABILITY = YES; 232 | GCC_C_LANGUAGE_STANDARD = gnu99; 233 | GCC_DYNAMIC_NO_PIC = NO; 234 | GCC_OPTIMIZATION_LEVEL = 0; 235 | GCC_PREPROCESSOR_DEFINITIONS = ( 236 | "POD_CONFIGURATION_DEBUG=1", 237 | "DEBUG=1", 238 | "$(inherited)", 239 | ); 240 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 241 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 242 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 243 | GCC_WARN_UNDECLARED_SELECTOR = YES; 244 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 245 | GCC_WARN_UNUSED_FUNCTION = YES; 246 | GCC_WARN_UNUSED_VARIABLE = YES; 247 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 248 | ONLY_ACTIVE_ARCH = YES; 249 | STRIP_INSTALLED_PRODUCT = NO; 250 | SYMROOT = "${SRCROOT}/../build"; 251 | }; 252 | name = Debug; 253 | }; 254 | A73609B65BD0880FA9B2FE021CB0D23D /* Release */ = { 255 | isa = XCBuildConfiguration; 256 | baseConfigurationReference = 5C42D986846F74B4DB78535F7182D117 /* Pods-Runner.release.xcconfig */; 257 | buildSettings = { 258 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 259 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 260 | ENABLE_STRICT_OBJC_MSGSEND = YES; 261 | GCC_NO_COMMON_BLOCKS = YES; 262 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 263 | MACH_O_TYPE = staticlib; 264 | MTL_ENABLE_DEBUG_INFO = NO; 265 | OTHER_LDFLAGS = ""; 266 | OTHER_LIBTOOLFLAGS = ""; 267 | PODS_ROOT = "$(SRCROOT)"; 268 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 269 | PRODUCT_NAME = "$(TARGET_NAME)"; 270 | SDKROOT = iphoneos; 271 | SKIP_INSTALL = YES; 272 | }; 273 | name = Release; 274 | }; 275 | /* End XCBuildConfiguration section */ 276 | 277 | /* Begin XCConfigurationList section */ 278 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 279 | isa = XCConfigurationList; 280 | buildConfigurations = ( 281 | 5E62115DE8C09934BF8D2FE5D15FED1E /* Debug */, 282 | 3FA451D268613890FA8A5A03801E11D5 /* Release */, 283 | ); 284 | defaultConfigurationIsVisible = 0; 285 | defaultConfigurationName = Release; 286 | }; 287 | BBD992B4B5EA046F3BF6DB62624D0AF0 /* Build configuration list for PBXNativeTarget "Pods-Runner" */ = { 288 | isa = XCConfigurationList; 289 | buildConfigurations = ( 290 | 309EF1F5E327BE758428CD2A22E8B8BD /* Debug */, 291 | A73609B65BD0880FA9B2FE021CB0D23D /* Release */, 292 | ); 293 | defaultConfigurationIsVisible = 0; 294 | defaultConfigurationName = Release; 295 | }; 296 | /* End XCConfigurationList section */ 297 | }; 298 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 299 | } 300 | -------------------------------------------------------------------------------- /example/todo_list_flutter/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 9705A1C51CF9049000538489 /* app.dylib in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEB81CF902C7004384FC /* app.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; 11 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 12 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 13 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 14 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB31CF90195004384FC /* Generated.xcconfig */; }; 15 | 9740EEBB1CF902C7004384FC /* app.flx in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB71CF902C7004384FC /* app.flx */; }; 16 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 17 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 18 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 19 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 20 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 21 | B1F3D14E8117A6C9F65810E0 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 4D558BB7489B1C82B42A9097 /* libPods-Runner.a */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXCopyFilesBuildPhase section */ 25 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 26 | isa = PBXCopyFilesBuildPhase; 27 | buildActionMask = 2147483647; 28 | dstPath = ""; 29 | dstSubfolderSpec = 10; 30 | files = ( 31 | 9705A1C51CF9049000538489 /* app.dylib in Embed Frameworks */, 32 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 33 | ); 34 | name = "Embed Frameworks"; 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXCopyFilesBuildPhase section */ 38 | 39 | /* Begin PBXFileReference section */ 40 | 4D558BB7489B1C82B42A9097 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 42 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 43 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 44 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 45 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 46 | 9740EEB71CF902C7004384FC /* app.flx */ = {isa = PBXFileReference; lastKnownFileType = file; name = app.flx; path = Flutter/app.flx; sourceTree = ""; }; 47 | 9740EEB81CF902C7004384FC /* app.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = app.dylib; path = Flutter/app.dylib; sourceTree = ""; }; 48 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 49 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 51 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 52 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 53 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 54 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | /* End PBXFileReference section */ 56 | 57 | /* Begin PBXFrameworksBuildPhase section */ 58 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 63 | B1F3D14E8117A6C9F65810E0 /* libPods-Runner.a in Frameworks */, 64 | ); 65 | runOnlyForDeploymentPostprocessing = 0; 66 | }; 67 | /* End PBXFrameworksBuildPhase section */ 68 | 69 | /* Begin PBXGroup section */ 70 | 840012C8B5EDBCF56B0E4AC1 /* Pods */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | ); 74 | name = Pods; 75 | sourceTree = ""; 76 | }; 77 | 9740EEB11CF90186004384FC /* Flutter */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 9740EEB71CF902C7004384FC /* app.flx */, 81 | 9740EEB81CF902C7004384FC /* app.dylib */, 82 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 83 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 84 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 85 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 86 | ); 87 | name = Flutter; 88 | sourceTree = ""; 89 | }; 90 | 97C146E51CF9000F007C117D = { 91 | isa = PBXGroup; 92 | children = ( 93 | 9740EEB11CF90186004384FC /* Flutter */, 94 | 97C146F01CF9000F007C117D /* Runner */, 95 | 97C146EF1CF9000F007C117D /* Products */, 96 | 840012C8B5EDBCF56B0E4AC1 /* Pods */, 97 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 98 | ); 99 | sourceTree = ""; 100 | }; 101 | 97C146EF1CF9000F007C117D /* Products */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 97C146EE1CF9000F007C117D /* Runner.app */, 105 | ); 106 | name = Products; 107 | sourceTree = ""; 108 | }; 109 | 97C146F01CF9000F007C117D /* Runner */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 113 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 114 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 115 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 116 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 117 | 97C147021CF9000F007C117D /* Info.plist */, 118 | 97C146F11CF9000F007C117D /* Supporting Files */, 119 | ); 120 | path = Runner; 121 | sourceTree = ""; 122 | }; 123 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 97C146F21CF9000F007C117D /* main.m */, 127 | ); 128 | name = "Supporting Files"; 129 | sourceTree = ""; 130 | }; 131 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 4D558BB7489B1C82B42A9097 /* libPods-Runner.a */, 135 | ); 136 | name = Frameworks; 137 | sourceTree = ""; 138 | }; 139 | /* End PBXGroup section */ 140 | 141 | /* Begin PBXNativeTarget section */ 142 | 97C146ED1CF9000F007C117D /* Runner */ = { 143 | isa = PBXNativeTarget; 144 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 145 | buildPhases = ( 146 | AB1344B0443C71CD721E1BB7 /* [CP] Check Pods Manifest.lock */, 147 | 9740EEB61CF901F6004384FC /* ShellScript */, 148 | 97C146EA1CF9000F007C117D /* Sources */, 149 | 97C146EB1CF9000F007C117D /* Frameworks */, 150 | 97C146EC1CF9000F007C117D /* Resources */, 151 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 152 | 95BB15E9E1769C0D146AA592 /* [CP] Embed Pods Frameworks */, 153 | 532EA9D341340B1DCD08293D /* [CP] Copy Pods Resources */, 154 | ); 155 | buildRules = ( 156 | ); 157 | dependencies = ( 158 | ); 159 | name = Runner; 160 | productName = Runner; 161 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 162 | productType = "com.apple.product-type.application"; 163 | }; 164 | /* End PBXNativeTarget section */ 165 | 166 | /* Begin PBXProject section */ 167 | 97C146E61CF9000F007C117D /* Project object */ = { 168 | isa = PBXProject; 169 | attributes = { 170 | LastUpgradeCheck = 0730; 171 | ORGANIZATIONNAME = "The Chromium Authors"; 172 | TargetAttributes = { 173 | 97C146ED1CF9000F007C117D = { 174 | CreatedOnToolsVersion = 7.3.1; 175 | }; 176 | }; 177 | }; 178 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = English; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | Base, 185 | ); 186 | mainGroup = 97C146E51CF9000F007C117D; 187 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 188 | projectDirPath = ""; 189 | projectRoot = ""; 190 | targets = ( 191 | 97C146ED1CF9000F007C117D /* Runner */, 192 | ); 193 | }; 194 | /* End PBXProject section */ 195 | 196 | /* Begin PBXResourcesBuildPhase section */ 197 | 97C146EC1CF9000F007C117D /* Resources */ = { 198 | isa = PBXResourcesBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | 9740EEBB1CF902C7004384FC /* app.flx in Resources */, 202 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 203 | 9740EEB51CF90195004384FC /* Generated.xcconfig in Resources */, 204 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 205 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 206 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 207 | ); 208 | runOnlyForDeploymentPostprocessing = 0; 209 | }; 210 | /* End PBXResourcesBuildPhase section */ 211 | 212 | /* Begin PBXShellScriptBuildPhase section */ 213 | 532EA9D341340B1DCD08293D /* [CP] Copy Pods Resources */ = { 214 | isa = PBXShellScriptBuildPhase; 215 | buildActionMask = 2147483647; 216 | files = ( 217 | ); 218 | inputPaths = ( 219 | ); 220 | name = "[CP] Copy Pods Resources"; 221 | outputPaths = ( 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | shellPath = /bin/sh; 225 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n"; 226 | showEnvVarsInLog = 0; 227 | }; 228 | 95BB15E9E1769C0D146AA592 /* [CP] Embed Pods Frameworks */ = { 229 | isa = PBXShellScriptBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | ); 233 | inputPaths = ( 234 | ); 235 | name = "[CP] Embed Pods Frameworks"; 236 | outputPaths = ( 237 | ); 238 | runOnlyForDeploymentPostprocessing = 0; 239 | shellPath = /bin/sh; 240 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 241 | showEnvVarsInLog = 0; 242 | }; 243 | 9740EEB61CF901F6004384FC /* ShellScript */ = { 244 | isa = PBXShellScriptBuildPhase; 245 | buildActionMask = 2147483647; 246 | files = ( 247 | ); 248 | inputPaths = ( 249 | ); 250 | outputPaths = ( 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | shellPath = /bin/sh; 254 | shellScript = "/bin/sh $FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh"; 255 | }; 256 | AB1344B0443C71CD721E1BB7 /* [CP] Check Pods Manifest.lock */ = { 257 | isa = PBXShellScriptBuildPhase; 258 | buildActionMask = 2147483647; 259 | files = ( 260 | ); 261 | inputPaths = ( 262 | ); 263 | name = "[CP] Check Pods Manifest.lock"; 264 | outputPaths = ( 265 | ); 266 | runOnlyForDeploymentPostprocessing = 0; 267 | shellPath = /bin/sh; 268 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 269 | showEnvVarsInLog = 0; 270 | }; 271 | /* End PBXShellScriptBuildPhase section */ 272 | 273 | /* Begin PBXSourcesBuildPhase section */ 274 | 97C146EA1CF9000F007C117D /* Sources */ = { 275 | isa = PBXSourcesBuildPhase; 276 | buildActionMask = 2147483647; 277 | files = ( 278 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 279 | 97C146F31CF9000F007C117D /* main.m in Sources */, 280 | ); 281 | runOnlyForDeploymentPostprocessing = 0; 282 | }; 283 | /* End PBXSourcesBuildPhase section */ 284 | 285 | /* Begin PBXVariantGroup section */ 286 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 287 | isa = PBXVariantGroup; 288 | children = ( 289 | 97C146FB1CF9000F007C117D /* Base */, 290 | ); 291 | name = Main.storyboard; 292 | sourceTree = ""; 293 | }; 294 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 295 | isa = PBXVariantGroup; 296 | children = ( 297 | 97C147001CF9000F007C117D /* Base */, 298 | ); 299 | name = LaunchScreen.storyboard; 300 | sourceTree = ""; 301 | }; 302 | /* End PBXVariantGroup section */ 303 | 304 | /* Begin XCBuildConfiguration section */ 305 | 97C147031CF9000F007C117D /* Debug */ = { 306 | isa = XCBuildConfiguration; 307 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 308 | buildSettings = { 309 | ALWAYS_SEARCH_USER_PATHS = NO; 310 | CLANG_ANALYZER_NONNULL = YES; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_WARN_BOOL_CONVERSION = YES; 316 | CLANG_WARN_CONSTANT_CONVERSION = YES; 317 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 318 | CLANG_WARN_EMPTY_BODY = YES; 319 | CLANG_WARN_ENUM_CONVERSION = YES; 320 | CLANG_WARN_INT_CONVERSION = YES; 321 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 322 | CLANG_WARN_UNREACHABLE_CODE = YES; 323 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 324 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 325 | COPY_PHASE_STRIP = NO; 326 | DEBUG_INFORMATION_FORMAT = dwarf; 327 | ENABLE_STRICT_OBJC_MSGSEND = YES; 328 | ENABLE_TESTABILITY = YES; 329 | GCC_C_LANGUAGE_STANDARD = gnu99; 330 | GCC_DYNAMIC_NO_PIC = NO; 331 | GCC_NO_COMMON_BLOCKS = YES; 332 | GCC_OPTIMIZATION_LEVEL = 0; 333 | GCC_PREPROCESSOR_DEFINITIONS = ( 334 | "DEBUG=1", 335 | "$(inherited)", 336 | ); 337 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 338 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 339 | GCC_WARN_UNDECLARED_SELECTOR = YES; 340 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_VARIABLE = YES; 343 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 344 | MTL_ENABLE_DEBUG_INFO = YES; 345 | ONLY_ACTIVE_ARCH = YES; 346 | SDKROOT = iphoneos; 347 | TARGETED_DEVICE_FAMILY = "1,2"; 348 | }; 349 | name = Debug; 350 | }; 351 | 97C147041CF9000F007C117D /* Release */ = { 352 | isa = XCBuildConfiguration; 353 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 354 | buildSettings = { 355 | ALWAYS_SEARCH_USER_PATHS = NO; 356 | CLANG_ANALYZER_NONNULL = YES; 357 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 358 | CLANG_CXX_LIBRARY = "libc++"; 359 | CLANG_ENABLE_MODULES = YES; 360 | CLANG_ENABLE_OBJC_ARC = YES; 361 | CLANG_WARN_BOOL_CONVERSION = YES; 362 | CLANG_WARN_CONSTANT_CONVERSION = YES; 363 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 364 | CLANG_WARN_EMPTY_BODY = YES; 365 | CLANG_WARN_ENUM_CONVERSION = YES; 366 | CLANG_WARN_INT_CONVERSION = YES; 367 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 368 | CLANG_WARN_UNREACHABLE_CODE = YES; 369 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 370 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 371 | COPY_PHASE_STRIP = NO; 372 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 373 | ENABLE_NS_ASSERTIONS = NO; 374 | ENABLE_STRICT_OBJC_MSGSEND = YES; 375 | GCC_C_LANGUAGE_STANDARD = gnu99; 376 | GCC_NO_COMMON_BLOCKS = YES; 377 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 378 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 379 | GCC_WARN_UNDECLARED_SELECTOR = YES; 380 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 381 | GCC_WARN_UNUSED_FUNCTION = YES; 382 | GCC_WARN_UNUSED_VARIABLE = YES; 383 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 384 | MTL_ENABLE_DEBUG_INFO = NO; 385 | SDKROOT = iphoneos; 386 | TARGETED_DEVICE_FAMILY = "1,2"; 387 | VALIDATE_PRODUCT = YES; 388 | }; 389 | name = Release; 390 | }; 391 | 97C147061CF9000F007C117D /* Debug */ = { 392 | isa = XCBuildConfiguration; 393 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 394 | buildSettings = { 395 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 396 | ENABLE_BITCODE = NO; 397 | FRAMEWORK_SEARCH_PATHS = ( 398 | "$(inherited)", 399 | "$(PROJECT_DIR)/Flutter", 400 | ); 401 | INFOPLIST_FILE = Runner/Info.plist; 402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 403 | LIBRARY_SEARCH_PATHS = ( 404 | "$(inherited)", 405 | "$(PROJECT_DIR)/Flutter", 406 | ); 407 | PRODUCT_NAME = "$(TARGET_NAME)"; 408 | }; 409 | name = Debug; 410 | }; 411 | 97C147071CF9000F007C117D /* Release */ = { 412 | isa = XCBuildConfiguration; 413 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 414 | buildSettings = { 415 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 416 | ENABLE_BITCODE = NO; 417 | FRAMEWORK_SEARCH_PATHS = ( 418 | "$(inherited)", 419 | "$(PROJECT_DIR)/Flutter", 420 | ); 421 | INFOPLIST_FILE = Runner/Info.plist; 422 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 423 | LIBRARY_SEARCH_PATHS = ( 424 | "$(inherited)", 425 | "$(PROJECT_DIR)/Flutter", 426 | ); 427 | PRODUCT_NAME = "$(TARGET_NAME)"; 428 | }; 429 | name = Release; 430 | }; 431 | /* End XCBuildConfiguration section */ 432 | 433 | /* Begin XCConfigurationList section */ 434 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 435 | isa = XCConfigurationList; 436 | buildConfigurations = ( 437 | 97C147031CF9000F007C117D /* Debug */, 438 | 97C147041CF9000F007C117D /* Release */, 439 | ); 440 | defaultConfigurationIsVisible = 0; 441 | defaultConfigurationName = Release; 442 | }; 443 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 444 | isa = XCConfigurationList; 445 | buildConfigurations = ( 446 | 97C147061CF9000F007C117D /* Debug */, 447 | 97C147071CF9000F007C117D /* Release */, 448 | ); 449 | defaultConfigurationIsVisible = 0; 450 | defaultConfigurationName = Release; 451 | }; 452 | /* End XCConfigurationList section */ 453 | }; 454 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 455 | } 456 | --------------------------------------------------------------------------------