├── ios ├── Runner │ ├── Runner-Bridging-Header.h │ ├── Assets.xcassets │ │ ├── LaunchImage.imageset │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ ├── README.md │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── Main.storyboard │ │ └── LaunchScreen.storyboard │ └── Info.plist ├── Flutter │ ├── Debug.xcconfig │ ├── Release.xcconfig │ └── AppFrameworkInfo.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ ├── WorkspaceSettings.xcsettings │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── WorkspaceSettings.xcsettings │ │ └── IDEWorkspaceChecks.plist ├── .gitignore ├── Podfile.lock └── Podfile ├── web ├── favicon.png ├── icons │ ├── Icon-192.png │ └── Icon-512.png ├── manifest.json └── index.html ├── assets ├── images │ └── login.png └── secrets.g.json ├── android ├── .settings │ └── org.eclipse.buildship.core.prefs ├── gradle.properties ├── .gitignore ├── app │ ├── src │ │ ├── main │ │ │ ├── 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 │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ ├── kotlin │ │ │ │ └── com │ │ │ │ │ └── frest │ │ │ │ │ └── MainActivity.kt │ │ │ └── AndroidManifest.xml │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ └── profile │ │ │ └── AndroidManifest.xml │ └── build.gradle ├── gradle │ └── wrapper │ │ └── gradle-wrapper.properties ├── .project ├── settings.gradle └── build.gradle ├── macos ├── .gitignore ├── Runner │ ├── Configs │ │ ├── Debug.xcconfig │ │ ├── Release.xcconfig │ │ ├── Warnings.xcconfig │ │ └── AppInfo.xcconfig │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ ├── app_icon_16.png │ │ │ ├── app_icon_32.png │ │ │ ├── app_icon_64.png │ │ │ ├── app_icon_1024.png │ │ │ ├── app_icon_128.png │ │ │ ├── app_icon_256.png │ │ │ ├── app_icon_512.png │ │ │ └── Contents.json │ ├── AppDelegate.swift │ ├── Release.entitlements │ ├── DebugProfile.entitlements │ ├── MainFlutterWindow.swift │ ├── Info.plist │ └── Base.lproj │ │ └── MainMenu.xib ├── Flutter │ ├── Flutter-Debug.xcconfig │ ├── Flutter-Release.xcconfig │ └── GeneratedPluginRegistrant.swift ├── Runner.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Runner.xcodeproj │ ├── project.xcworkspace │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ └── project.pbxproj ├── Podfile └── Podfile.lock ├── .metadata ├── README.md ├── lib ├── utils │ ├── url.dart │ ├── margin.dart │ ├── theme.dart │ ├── navigator.dart │ └── validator.dart ├── widgets │ ├── loader.dart │ ├── dialog.dart │ └── text_views.dart ├── main.dart ├── models │ ├── token_model.dart │ ├── user_model.dart │ └── repos_model.dart ├── view_models │ ├── home_vm.dart │ └── login_vm.dart ├── const │ └── secrets.dart ├── core │ └── api │ │ └── auth.dart └── views │ ├── auth │ └── login.dart │ └── home.dart ├── test ├── auth_test.dart └── widget_test.dart ├── .gitignore ├── pubspec.yaml └── pubspec.lock /ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /web/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/web/favicon.png -------------------------------------------------------------------------------- /assets/images/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/assets/images/login.png -------------------------------------------------------------------------------- /web/icons/Icon-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/web/icons/Icon-192.png -------------------------------------------------------------------------------- /web/icons/Icon-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/web/icons/Icon-512.png -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /assets/secrets.g.json: -------------------------------------------------------------------------------- 1 | { 2 | "client_id": "YOUR CLIENT ID", 3 | "client_secret": "YOUR CLIENT SECRET KEY" 4 | } -------------------------------------------------------------------------------- /macos/.gitignore: -------------------------------------------------------------------------------- 1 | # Flutter-related 2 | **/Flutter/ephemeral/ 3 | **/Pods/ 4 | 5 | # Xcode-related 6 | **/xcuserdata/ 7 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Debug.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Runner/Configs/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "../../Flutter/Flutter-Release.xcconfig" 2 | #include "Warnings.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.enableR8=true 3 | android.useAndroidX=true 4 | android.enableJetifier=true 5 | -------------------------------------------------------------------------------- /ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /macos/Flutter/Flutter-Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "ephemeral/Flutter-Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/macos/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png -------------------------------------------------------------------------------- /android/app/src/main/kotlin/com/frest/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.frest 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity: FlutterActivity() { 6 | } 7 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Zfinix/frest_riverpod/HEAD/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /macos/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | @NSApplicationMain 5 | class AppDelegate: FlutterAppDelegate { 6 | override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { 7 | return true 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip 7 | -------------------------------------------------------------------------------- /macos/Runner/Release.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: c2b7342ca470b11cfaad4fbfb094f73aa4c85320 8 | channel: dev 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /macos/Flutter/GeneratedPluginRegistrant.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Generated file. Do not edit. 3 | // 4 | 5 | import FlutterMacOS 6 | import Foundation 7 | 8 | import path_provider_macos 9 | 10 | func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { 11 | PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) 12 | } 13 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # frest_riverpod 2 | 3 | A Mobile Application that demostrates Github's OAuth. 4 | 5 | ## Notes 6 | Kindly create a new file `assets/secrets.json` then copy the config from `assets/secrets.g.json` to it and fill it with your own custom configs. 7 | 8 |

9 | 10 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /macos/Runner/DebugProfile.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | com.apple.security.app-sandbox 6 | 7 | com.apple.security.cs.allow-jit 8 | 9 | com.apple.security.network.server 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import Flutter 3 | 4 | @UIApplicationMain 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /macos/Runner/MainFlutterWindow.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | import FlutterMacOS 3 | 4 | class MainFlutterWindow: NSWindow { 5 | override func awakeFromNib() { 6 | let flutterViewController = FlutterViewController.init() 7 | let windowFrame = self.frame 8 | self.contentViewController = flutterViewController 9 | self.setFrame(windowFrame, display: true) 10 | 11 | RegisterGeneratedPlugins(registry: flutterViewController) 12 | 13 | super.awakeFromNib() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /lib/utils/url.dart: -------------------------------------------------------------------------------- 1 | class APIUrl { 2 | static String host = "https://github.com"; 3 | static String host2 = "https://api.github.com"; 4 | 5 | //user 6 | static String user = "$host2/user"; 7 | static String getUserRepo = "$user/repos"; 8 | 9 | //login authorization 10 | static String login = "$host/login"; 11 | static String oauth = "$login/oauth"; 12 | static String accessToken = "$oauth/access_token"; 13 | 14 | static String authorize(clientId) => "$oauth/authorize?client_id=$clientId"; 15 | } 16 | -------------------------------------------------------------------------------- /lib/widgets/loader.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:frest/utils/theme.dart'; 3 | 4 | class Loader extends StatelessWidget { 5 | const Loader({ 6 | Key key, 7 | }) : super(key: key); 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return Center( 12 | child: Container( 13 | width: 70, 14 | height: 4, 15 | color: primary.withOpacity(0.9), 16 | child: LinearProgressIndicator(), 17 | ), 18 | ); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:frest/utils/theme.dart'; 3 | import 'package:frest/views/auth/login.dart'; 4 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 5 | 6 | void main() { 7 | runApp(ProviderScope(child: MyApp())); 8 | } 9 | 10 | class MyApp extends StatelessWidget { 11 | // This widget is the root of your application. 12 | @override 13 | Widget build(BuildContext context) { 14 | return MaterialApp( 15 | title: 'frest', 16 | debugShowCheckedModeBanner: false, 17 | theme: themeData(context), 18 | home: Login(), 19 | ); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /lib/models/token_model.dart: -------------------------------------------------------------------------------- 1 | class TokenModel { 2 | String accessToken; 3 | String tokenType; 4 | String scope; 5 | 6 | TokenModel({this.accessToken, this.tokenType, this.scope}); 7 | 8 | TokenModel.fromJson(Map json) { 9 | accessToken = json['access_token']; 10 | tokenType = json['token_type']; 11 | scope = json['scope']; 12 | } 13 | 14 | Map toJson() { 15 | final Map data = new Map(); 16 | data['access_token'] = this.accessToken; 17 | data['token_type'] = this.tokenType; 18 | data['scope'] = this.scope; 19 | return data; 20 | } 21 | } -------------------------------------------------------------------------------- /macos/Runner/Configs/Warnings.xcconfig: -------------------------------------------------------------------------------- 1 | WARNING_CFLAGS = -Wall -Wconditional-uninitialized -Wnullable-to-nonnull-conversion -Wmissing-method-return-type -Woverlength-strings 2 | GCC_WARN_UNDECLARED_SELECTOR = YES 3 | CLANG_UNDEFINED_BEHAVIOR_SANITIZER_NULLABILITY = YES 4 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE 5 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES 6 | CLANG_WARN_PRAGMA_PACK = YES 7 | CLANG_WARN_STRICT_PROTOTYPES = YES 8 | CLANG_WARN_COMMA = YES 9 | GCC_WARN_STRICT_SELECTOR_MATCH = YES 10 | CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES 11 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES 12 | GCC_WARN_SHADOW = YES 13 | CLANG_WARN_UNREACHABLE_CODE = YES 14 | -------------------------------------------------------------------------------- /macos/Runner/Configs/AppInfo.xcconfig: -------------------------------------------------------------------------------- 1 | // Application-level settings for the Runner target. 2 | // 3 | // This may be replaced with something auto-generated from metadata (e.g., pubspec.yaml) in the 4 | // future. If not, the values below would default to using the project name when this becomes a 5 | // 'flutter create' template. 6 | 7 | // The application's name. By default this is also the title of the Flutter window. 8 | PRODUCT_NAME = frest 9 | 10 | // The application's bundle identifier 11 | PRODUCT_BUNDLE_IDENTIFIER = com.frest 12 | 13 | // The copyright displayed in application information 14 | PRODUCT_COPYRIGHT = Copyright © 2020 com.example. All rights reserved. 15 | -------------------------------------------------------------------------------- /web/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "frest", 3 | "short_name": "frest", 4 | "start_url": ".", 5 | "display": "standalone", 6 | "background_color": "#0175C2", 7 | "theme_color": "#0175C2", 8 | "description": "A new Flutter project.", 9 | "orientation": "portrait-primary", 10 | "prefer_related_applications": false, 11 | "icons": [ 12 | { 13 | "src": "icons/Icon-192.png", 14 | "sizes": "192x192", 15 | "type": "image/png" 16 | }, 17 | { 18 | "src": "icons/Icon-512.png", 19 | "sizes": "512x512", 20 | "type": "image/png" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | *.mode1v3 2 | *.mode2v3 3 | *.moved-aside 4 | *.pbxuser 5 | *.perspectivev3 6 | **/*sync/ 7 | .sconsign.dblite 8 | .tags* 9 | **/.vagrant/ 10 | **/DerivedData/ 11 | Icon? 12 | **/Pods/ 13 | **/.symlinks/ 14 | profile 15 | xcuserdata 16 | **/.generated/ 17 | Flutter/App.framework 18 | Flutter/Flutter.framework 19 | Flutter/Flutter.podspec 20 | Flutter/Generated.xcconfig 21 | Flutter/app.flx 22 | Flutter/app.zip 23 | Flutter/flutter_assets/ 24 | Flutter/flutter_export_environment.sh 25 | ServiceDefinitions.json 26 | Runner/GeneratedPluginRegistrant.* 27 | 28 | # Exceptions to above rules. 29 | !default.mode1v3 30 | !default.mode2v3 31 | !default.pbxuser 32 | !default.perspectivev3 33 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Flutter Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style license that can be 3 | // found in the LICENSE file. 4 | 5 | include ':app' 6 | 7 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 8 | def properties = new Properties() 9 | 10 | assert localPropertiesFile.exists() 11 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 12 | 13 | def flutterSdkPath = properties.getProperty("flutter.sdk") 14 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 15 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 16 | -------------------------------------------------------------------------------- /lib/view_models/home_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:frest/core/api/auth.dart'; 3 | import 'package:frest/models/repos_model.dart'; 4 | 5 | class HomeViewModel extends ChangeNotifier { 6 | bool isLoading = false; 7 | ReposListModel reposModel; 8 | 9 | void getRepos(context, String token) async { 10 | try { 11 | isLoading = true; 12 | var temp = await Auth.getRepos(context, token: token); 13 | if (temp != null) { 14 | reposModel = temp; 15 | } 16 | isLoading = false; 17 | notifyListeners(); 18 | } catch (e) { 19 | isLoading = false; 20 | notifyListeners(); 21 | print(e.toString()); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.3.50' 3 | repositories { 4 | google() 5 | jcenter() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:3.5.0' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | jcenter() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /test/auth_test.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:flutter/material.dart'; 2 | import 'package:flutter_test/flutter_test.dart'; 3 | 4 | import 'package:frest/main.dart'; 5 | import 'package:frest/view_models/login_vm.dart'; 6 | import 'package:provider/provider.dart'; 7 | 8 | main() { 9 | testWidgets('Provider.of', (tester) async { 10 | await tester.pumpWidget( 11 | Provider( 12 | create: (_) => LoginViewModel(), 13 | child: MyApp(), 14 | ), 15 | ); 16 | 17 | final BuildContext childContext = tester.element(find.byType(MyApp)); 18 | var provider = childContext.read(); 19 | provider.loadKeys(); 20 | expect(provider.secretKeys.clientId, isNotNull); 21 | }); 22 | } 23 | */ -------------------------------------------------------------------------------- /lib/utils/margin.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class XMargin extends StatelessWidget { 4 | final double x; 5 | const XMargin(this.x); 6 | @override 7 | Widget build(BuildContext context) { 8 | return SizedBox(width: x); 9 | } 10 | } 11 | 12 | class YMargin extends StatelessWidget { 13 | final double y; 14 | const YMargin(this.y); 15 | @override 16 | Widget build(BuildContext context) { 17 | return SizedBox(height: y); 18 | } 19 | } 20 | 21 | extension CustomContext on BuildContext { 22 | double screenHeight([double percent = 1]) => 23 | MediaQuery.of(this).size.height * percent; 24 | 25 | double screenWidth([double percent = 1]) => 26 | MediaQuery.of(this).size.width * percent; 27 | } 28 | -------------------------------------------------------------------------------- /lib/utils/theme.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:google_fonts/google_fonts.dart'; 3 | 4 | const Color primary = Color(0XFF2C54D8); 5 | 6 | const Color accent = Color(0xFF51fa8f); 7 | 8 | const Color bgColor = Color(0xFF201F1F); 9 | 10 | const Color darkGrey = Color(0xff292525); 11 | 12 | const Color red = Color(0xFFD82C68); 13 | 14 | const Color white = Colors.white; 15 | 16 | const Color black = Colors.black; 17 | 18 | const Color grey = Colors.grey; 19 | 20 | themeData(context) => ThemeData( 21 | textTheme: GoogleFonts.latoTextTheme( 22 | Theme.of(context).textTheme, 23 | ), 24 | primarySwatch: Colors.blue, 25 | primaryColor: bgColor, 26 | brightness: Brightness.dark, 27 | backgroundColor: bgColor, 28 | visualDensity: VisualDensity.adaptivePlatformDensity, 29 | ); 30 | -------------------------------------------------------------------------------- /ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | /assets/secrets.json 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Web related 36 | lib/generated_plugin_registrant.dart 37 | 38 | # Symbolication related 39 | app.*.symbols 40 | 41 | # Obfuscation related 42 | app.*.map.json 43 | 44 | # Exceptions to above rules. 45 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 46 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /lib/const/secrets.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async' show Future; 2 | import 'dart:convert' show json; 3 | import 'package:flutter/services.dart' show rootBundle; 4 | 5 | class Secret { 6 | final String clientId, clientSecret; 7 | String code; 8 | 9 | Secret({ 10 | this.clientId = "", 11 | this.clientSecret = "", 12 | this.code = "", 13 | }); 14 | 15 | factory Secret.fromJson(Map jsonMap) { 16 | return new Secret( 17 | clientId: jsonMap["client_id"], 18 | clientSecret: jsonMap["client_secret"], 19 | code: jsonMap["code"], 20 | ); 21 | } 22 | 23 | toJson() { 24 | return { 25 | "client_id": this.clientId, 26 | "client_secret": this.clientSecret, 27 | "code": this.code, 28 | }; 29 | } 30 | } 31 | 32 | class SecretLoader { 33 | final String secretPath; 34 | 35 | SecretLoader({this.secretPath}); 36 | Future load() { 37 | return rootBundle.loadStructuredData(this.secretPath, 38 | (jsonStr) async { 39 | final secret = Secret.fromJson(json.decode(jsonStr)); 40 | return secret; 41 | }); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /lib/widgets/dialog.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; 3 | import 'package:frest/utils/margin.dart'; 4 | import 'package:frest/utils/url.dart'; 5 | import 'package:frest/widgets/loader.dart'; 6 | import 'package:modal_bottom_sheet/modal_bottom_sheet.dart'; 7 | 8 | Future customDialog(context, {@required String clientId}) { 9 | return showCupertinoModalBottomSheet( 10 | context: context, 11 | builder: (BuildContext context, scrollController) => Container( 12 | height: context.screenHeight(0.9), 13 | width: context.screenWidth(), 14 | child: Padding( 15 | padding: const EdgeInsets.only(top: 11), 16 | child: WebviewScaffold( 17 | url: APIUrl.authorize(clientId), 18 | withZoom: true, 19 | withLocalStorage: true, 20 | hidden: true, 21 | appCacheEnabled: true, 22 | initialChild: Container( 23 | child: const Center( 24 | child: Loader(), 25 | ), 26 | ), 27 | ), 28 | ), 29 | ), 30 | ); 31 | } 32 | -------------------------------------------------------------------------------- /test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:frest/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /macos/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | $(FLUTTER_BUILD_NAME) 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSMinimumSystemVersion 24 | $(MACOSX_DEPLOYMENT_TARGET) 25 | NSHumanReadableCopyright 26 | $(PRODUCT_COPYRIGHT) 27 | NSMainNibFile 28 | MainMenu 29 | NSPrincipalClass 30 | NSApplication 31 | 32 | 33 | -------------------------------------------------------------------------------- /web/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | frest 18 | 19 | 20 | 21 | 24 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Flutter (1.0.0) 3 | - flutter_webview_plugin (0.0.1): 4 | - Flutter 5 | - path_provider (0.0.1): 6 | - Flutter 7 | - path_provider_linux (0.0.1): 8 | - Flutter 9 | - path_provider_macos (0.0.1): 10 | - Flutter 11 | 12 | DEPENDENCIES: 13 | - Flutter (from `Flutter`) 14 | - flutter_webview_plugin (from `.symlinks/plugins/flutter_webview_plugin/ios`) 15 | - path_provider (from `.symlinks/plugins/path_provider/ios`) 16 | - path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`) 17 | - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`) 18 | 19 | EXTERNAL SOURCES: 20 | Flutter: 21 | :path: Flutter 22 | flutter_webview_plugin: 23 | :path: ".symlinks/plugins/flutter_webview_plugin/ios" 24 | path_provider: 25 | :path: ".symlinks/plugins/path_provider/ios" 26 | path_provider_linux: 27 | :path: ".symlinks/plugins/path_provider_linux/ios" 28 | path_provider_macos: 29 | :path: ".symlinks/plugins/path_provider_macos/ios" 30 | 31 | SPEC CHECKSUMS: 32 | Flutter: 0e3d915762c693b495b44d77113d4970485de6ec 33 | flutter_webview_plugin: ed9e8a6a96baf0c867e90e1bce2673913eeac694 34 | path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c 35 | path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4 36 | path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0 37 | 38 | PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a 39 | 40 | COCOAPODS: 1.8.4 41 | -------------------------------------------------------------------------------- /macos/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "app_icon_16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "app_icon_32.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "app_icon_32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "app_icon_64.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "app_icon_128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "app_icon_256.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "app_icon_256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "app_icon_512.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "app_icon_512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "app_icon_1024.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | frest 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | NSAppTransportSecurity 45 | 46 | NSAllowsArbitraryLoads 47 | 48 | NSAllowsArbitraryLoadsInWebContent 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /lib/utils/navigator.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | navigateReplace(context, Widget route, {isDialog = false}) => 4 | Navigator.pushReplacement( 5 | context, 6 | MaterialPageRoute( 7 | fullscreenDialog: isDialog, 8 | builder: (context) => route, 9 | ), 10 | ); 11 | 12 | navigate(context, Widget route, {isDialog = false}) => Navigator.push( 13 | context, 14 | MaterialPageRoute( 15 | fullscreenDialog: isDialog, 16 | builder: (context) => route, 17 | ), 18 | ); 19 | 20 | popToFirst(context) => Navigator.of(context).popUntil((route) => route.isFirst); 21 | 22 | popView(context) => Navigator.pop(context); 23 | 24 | navigateTransparentRoute(context, Widget route) { 25 | return Navigator.push( 26 | context, 27 | TransparentRoute( 28 | builder: (context) => route, 29 | ), 30 | ); 31 | } 32 | 33 | class TransparentRoute extends PageRoute { 34 | TransparentRoute({ 35 | @required this.builder, 36 | RouteSettings settings, 37 | }) : assert(builder != null), 38 | super(settings: settings, fullscreenDialog: false); 39 | 40 | final WidgetBuilder builder; 41 | 42 | @override 43 | bool get opaque => false; 44 | 45 | @override 46 | Color get barrierColor => null; 47 | 48 | @override 49 | String get barrierLabel => null; 50 | 51 | @override 52 | bool get maintainState => true; 53 | 54 | @override 55 | Duration get transitionDuration => Duration(milliseconds: 350); 56 | 57 | @override 58 | Widget buildPage(BuildContext context, Animation animation, 59 | Animation secondaryAnimation) { 60 | final result = builder(context); 61 | return FadeTransition( 62 | opacity: Tween(begin: 0, end: 1).animate(animation), 63 | child: Semantics( 64 | scopesRoute: true, 65 | explicitChildNodes: true, 66 | child: result, 67 | ), 68 | ); 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /lib/models/user_model.dart: -------------------------------------------------------------------------------- 1 | /* import 'package:cloud_firestore/cloud_firestore.dart'; 2 | 3 | class UserModel { 4 | String name; 5 | String email; 6 | String phone; 7 | String profilePicUrl; 8 | String userId; 9 | String deviceId; 10 | bool isOnline; 11 | List blocked; 12 | bool isAdmin; 13 | final DocumentReference reference; 14 | 15 | UserModel({ 16 | this.name, 17 | this.email, 18 | this.phone, 19 | this.profilePicUrl, 20 | this.userId, 21 | this.isOnline = false, 22 | this.isAdmin, 23 | this.deviceId, 24 | this.reference, 25 | }); 26 | 27 | UserModel.fromMap(Map map, {this.reference}) 28 | : userId = map['userId'], 29 | name = map['name'], 30 | phone = map['phone'], 31 | email = map['email'], 32 | isAdmin = map['isAdmin'], 33 | blocked = map['blocked'] ?? List(), 34 | isOnline = map['is_online'] ?? false, 35 | profilePicUrl = map['profilePicUrl']; 36 | 37 | UserModel.fromJson(Map json, {this.reference}) 38 | : userId = json['userId'], 39 | name = json['name'], 40 | phone = json['phone'], 41 | isOnline = json['is_online'] ?? false, 42 | isAdmin = json['isAdmin'], 43 | email = json['email'], 44 | profilePicUrl = json['profilePicUrl']; 45 | 46 | 47 | Map toJson() { 48 | final Map data = new Map(); 49 | 50 | data['userId'] = this.userId; 51 | data['name'] = this.name; 52 | data['isAdmin'] = this.isAdmin; 53 | data['phone'] = this.phone; 54 | data['email'] = this.email; 55 | data['profilePicUrl'] = this.profilePicUrl; 56 | return data; 57 | } 58 | 59 | UserModel.fromSnapshot(DocumentSnapshot snapshot) 60 | : this.fromMap(snapshot.data, reference: snapshot.reference); 61 | 62 | @override 63 | String toString() => '${this.runtimeType}(${this.toJson()})'; 64 | } 65 | */ -------------------------------------------------------------------------------- /lib/view_models/login_vm.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/cupertino.dart'; 2 | import 'package:flutter/material.dart'; 3 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; 4 | import 'package:frest/const/secrets.dart'; 5 | import 'package:frest/core/api/auth.dart'; 6 | import 'package:frest/models/token_model.dart'; 7 | import 'package:frest/views/home.dart'; 8 | 9 | class LoginViewModel extends ChangeNotifier { 10 | bool isLoading = false; 11 | 12 | Secret secretKeys; 13 | 14 | void intercept( 15 | BuildContext context, 16 | String url, { 17 | bool mounted = true, 18 | FlutterWebviewPlugin wv, 19 | bool isTest = false, 20 | }) async { 21 | try { 22 | if (mounted) { 23 | if (url.toLowerCase().contains('?cancelled=true')) { 24 | } else if (url.toLowerCase().contains('callback?code')) { 25 | isLoading = true; 26 | secretKeys.code = 27 | url.replaceAll('https://flutterapp.com/callback?code=', ''); 28 | if (!isTest) wv.close(); 29 | handleRequest(context); 30 | } 31 | isLoading = false; 32 | } 33 | } catch (e) { 34 | isLoading = false; 35 | print(e.toString()); 36 | } 37 | } 38 | 39 | void handleRequest(context) async { 40 | TokenModel authorizeREQ = await Auth.authorize( 41 | context, 42 | secret: secretKeys, 43 | ); 44 | 45 | if (authorizeREQ != null) { 46 | isLoading = false; 47 | print('authorized'); 48 | Navigator.pushReplacement( 49 | context, 50 | MaterialPageRoute( 51 | builder: (context) => HomePage(authorizeREQ), 52 | fullscreenDialog: true, 53 | ), 54 | ); 55 | } else { 56 | throw "Authorization Failed"; 57 | } 58 | } 59 | 60 | void loadKeys() async { 61 | secretKeys = await SecretLoader(secretPath: 'assets/secrets.json').load(); 62 | notifyListeners(); 63 | print(secretKeys.toJson()); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /lib/utils/validator.dart: -------------------------------------------------------------------------------- 1 | import 'package:intl/intl.dart'; 2 | 3 | abstract class Validator { 4 | static final currFormatter = new NumberFormat("#,##0.00", "en_US"); 5 | 6 | static bool isEmail(String em) { 7 | String p = 8 | r'^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'; 9 | RegExp regExp = new RegExp(p); 10 | return regExp.hasMatch(em); 11 | } 12 | 13 | static bool isPassword(String em) { 14 | return em.length > 4 ? true : false; 15 | } 16 | 17 | static Function(String) validateEmail(v) => (value) { 18 | if (value.isNotEmpty && isEmail(value)) { 19 | v = value; 20 | } else if (value.isEmpty) { 21 | return "This field can't be left empty"; 22 | } else { 23 | return "Email is Invalid"; 24 | } 25 | return null; 26 | }; 27 | 28 | static Function(String) validateName(v) => (value) { 29 | if (value.isNotEmpty && value.length > 4) { 30 | v = value; 31 | } else if (value.isEmpty) { 32 | return "This field can't be left empty"; 33 | } else { 34 | return "Name is Invalid"; 35 | } 36 | return null; 37 | }; 38 | 39 | static Function(String) validatePhone(v) => (value) { 40 | if (value.isNotEmpty && value.length >= 8) { 41 | v = value; 42 | } else if (value.isEmpty) { 43 | return "This field can't be left empty"; 44 | } else { 45 | return "Phone is Invalid"; 46 | } 47 | return null; 48 | }; 49 | 50 | static Function(String) validatePassword(v) => (value) { 51 | if (value.isNotEmpty && isPassword(value)) { 52 | v = value; 53 | } else if (value.isEmpty) { 54 | return "This field can't be left empty"; 55 | } else { 56 | return "Pasword is Invalid"; 57 | } 58 | return null; 59 | }; 60 | } 61 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion 28 30 | 31 | sourceSets { 32 | main.java.srcDirs += 'src/main/kotlin' 33 | } 34 | 35 | lintOptions { 36 | disable 'InvalidPackage' 37 | } 38 | 39 | defaultConfig { 40 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 41 | applicationId "com.frest" 42 | minSdkVersion 19 43 | targetSdkVersion 28 44 | multiDexEnabled true 45 | versionCode flutterVersionCode.toInteger() 46 | versionName flutterVersionName 47 | } 48 | 49 | buildTypes { 50 | release { 51 | // TODO: Add your own signing config for the release build. 52 | // Signing with the debug keys for now, so `flutter run --release` works. 53 | signingConfig signingConfigs.debug 54 | } 55 | } 56 | } 57 | 58 | flutter { 59 | source '../..' 60 | } 61 | 62 | dependencies { 63 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" 64 | } 65 | -------------------------------------------------------------------------------- /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 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 8 | 12 | 19 | 23 | 27 | 32 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /macos/Podfile: -------------------------------------------------------------------------------- 1 | platform :osx, '10.11' 2 | 3 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 4 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 5 | 6 | project 'Runner', { 7 | 'Debug' => :debug, 8 | 'Profile' => :release, 9 | 'Release' => :release, 10 | } 11 | 12 | def parse_KV_file(file, separator='=') 13 | file_abs_path = File.expand_path(file) 14 | if !File.exists? file_abs_path 15 | return []; 16 | end 17 | pods_ary = [] 18 | skip_line_start_symbols = ["#", "/"] 19 | File.foreach(file_abs_path) { |line| 20 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 21 | plugin = line.split(pattern=separator) 22 | if plugin.length == 2 23 | podname = plugin[0].strip() 24 | path = plugin[1].strip() 25 | podpath = File.expand_path("#{path}", file_abs_path) 26 | pods_ary.push({:name => podname, :path => podpath}); 27 | else 28 | puts "Invalid plugin specification: #{line}" 29 | end 30 | } 31 | return pods_ary 32 | end 33 | 34 | def pubspec_supports_macos(file) 35 | file_abs_path = File.expand_path(file) 36 | if !File.exists? file_abs_path 37 | return false; 38 | end 39 | File.foreach(file_abs_path) { |line| 40 | return true if line =~ /^\s*macos:/ 41 | } 42 | return false 43 | end 44 | 45 | target 'Runner' do 46 | use_frameworks! 47 | use_modular_headers! 48 | 49 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 50 | # referring to absolute paths on developers' machines. 51 | ephemeral_dir = File.join('Flutter', 'ephemeral') 52 | symlink_dir = File.join(ephemeral_dir, '.symlinks') 53 | symlink_plugins_dir = File.join(symlink_dir, 'plugins') 54 | system("rm -rf #{symlink_dir}") 55 | system("mkdir -p #{symlink_plugins_dir}") 56 | 57 | # Flutter Pods 58 | generated_xcconfig = parse_KV_file(File.join(ephemeral_dir, 'Flutter-Generated.xcconfig')) 59 | if generated_xcconfig.empty? 60 | puts "Flutter-Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." 61 | end 62 | generated_xcconfig.map { |p| 63 | if p[:name] == 'FLUTTER_FRAMEWORK_DIR' 64 | symlink = File.join(symlink_dir, 'flutter') 65 | File.symlink(File.dirname(p[:path]), symlink) 66 | pod 'FlutterMacOS', :path => File.join(symlink, File.basename(p[:path])) 67 | end 68 | } 69 | 70 | # Plugin Pods 71 | plugin_pods = parse_KV_file('../.flutter-plugins') 72 | plugin_pods.map { |p| 73 | symlink = File.join(symlink_plugins_dir, p[:name]) 74 | File.symlink(p[:path], symlink) 75 | if pubspec_supports_macos(File.join(symlink, 'pubspec.yaml')) 76 | pod p[:name], :path => File.join(symlink, 'macos') 77 | end 78 | } 79 | end 80 | 81 | # Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system. 82 | install! 'cocoapods', :disable_input_output_paths => true 83 | -------------------------------------------------------------------------------- /ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: frest 2 | description: A new Flutter project. 3 | 4 | # The following line prevents the package from being accidentally published to 5 | # pub.dev using `pub publish`. This is preferred for private packages. 6 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 7 | 8 | # The following defines the version and build number for your application. 9 | # A version number is three numbers separated by dots, like 1.2.43 10 | # followed by an optional build number separated by a +. 11 | # Both the version and the builder number may be overridden in flutter 12 | # build by specifying --build-name and --build-number, respectively. 13 | # In Android, build-name is used as versionName while build-number used as versionCode. 14 | # Read more about Android versioning at https://developer.android.com/studio/publish/versioning 15 | # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. 16 | # Read more about iOS versioning at 17 | # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 18 | version: 1.0.0+1 19 | 20 | environment: 21 | sdk: ">=2.7.0 <3.0.0" 22 | 23 | dependencies: 24 | flutter: 25 | sdk: flutter 26 | flutter_hooks: ^0.10.0 27 | hooks_riverpod: ^0.1.0 28 | line_icons: 0.2.0 29 | google_fonts: 1.0.0 30 | flutter_webview_plugin: 0.3.11 31 | modal_bottom_sheet: 0.1.6 32 | 33 | 34 | 35 | # The following adds the Cupertino Icons font to your application. 36 | # Use with the CupertinoIcons class for iOS style icons. 37 | cupertino_icons: ^0.1.3 38 | 39 | dev_dependencies: 40 | flutter_test: 41 | sdk: flutter 42 | 43 | # For information on the generic Dart part of this file, see the 44 | # following page: https://dart.dev/tools/pub/pubspec 45 | 46 | # The following section is specific to Flutter. 47 | flutter: 48 | 49 | # The following line ensures that the Material Icons font is 50 | # included with your application, so that you can use the icons in 51 | # the material Icons class. 52 | uses-material-design: true 53 | 54 | # To add assets to your application, add an assets section, like this: 55 | assets: 56 | - assets/images/ 57 | - assets/secrets.json 58 | # An image asset can refer to one or more resolution-specific "variants", see 59 | # https://flutter.dev/assets-and-images/#resolution-aware. 60 | 61 | # For details regarding adding assets from package dependencies, see 62 | # https://flutter.dev/assets-and-images/#from-packages 63 | 64 | # To add custom fonts to your application, add a fonts section here, 65 | # in this "flutter" section. Each entry in this list should have a 66 | # "family" key with the font family name, and a "fonts" key with a 67 | # list giving the asset and other descriptors for the font. For 68 | # example: 69 | # fonts: 70 | # - family: Schyler 71 | # fonts: 72 | # - asset: fonts/Schyler-Regular.ttf 73 | # - asset: fonts/Schyler-Italic.ttf 74 | # style: italic 75 | # - family: Trajan Pro 76 | # fonts: 77 | # - asset: fonts/TrajanPro.ttf 78 | # - asset: fonts/TrajanPro_Bold.ttf 79 | # weight: 700 80 | # 81 | # For details regarding fonts from package dependencies, 82 | # see https://flutter.dev/custom-fonts/#from-packages 83 | -------------------------------------------------------------------------------- /macos/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - Firebase/Core (6.26.0): 3 | - Firebase/CoreOnly 4 | - FirebaseAnalytics (= 6.6.0) 5 | - Firebase/CoreOnly (6.26.0): 6 | - FirebaseCore (= 6.7.2) 7 | - firebase_core (0.0.1): 8 | - Firebase/Core 9 | - FlutterMacOS 10 | - FirebaseCore (6.7.2): 11 | - FirebaseCoreDiagnostics (~> 1.3) 12 | - FirebaseCoreDiagnosticsInterop (~> 1.2) 13 | - GoogleUtilities/Environment (~> 6.5) 14 | - GoogleUtilities/Logger (~> 6.5) 15 | - FirebaseCoreDiagnostics (1.3.0): 16 | - FirebaseCoreDiagnosticsInterop (~> 1.2) 17 | - GoogleDataTransportCCTSupport (~> 3.1) 18 | - GoogleUtilities/Environment (~> 6.5) 19 | - GoogleUtilities/Logger (~> 6.5) 20 | - nanopb (~> 1.30905.0) 21 | - FirebaseCoreDiagnosticsInterop (1.2.0) 22 | - FlutterMacOS (1.0.0) 23 | - GoogleDataTransport (6.2.1) 24 | - GoogleDataTransportCCTSupport (3.1.0): 25 | - GoogleDataTransport (~> 6.1) 26 | - nanopb (~> 1.30905.0) 27 | - GoogleUtilities/Environment (6.6.0): 28 | - PromisesObjC (~> 1.2) 29 | - GoogleUtilities/Logger (6.6.0): 30 | - GoogleUtilities/Environment 31 | - nanopb (1.30905.0): 32 | - nanopb/decode (= 1.30905.0) 33 | - nanopb/encode (= 1.30905.0) 34 | - nanopb/decode (1.30905.0) 35 | - nanopb/encode (1.30905.0) 36 | - path_provider (0.0.1) 37 | - path_provider_macos (0.0.1): 38 | - FlutterMacOS 39 | - PromisesObjC (1.2.9) 40 | 41 | DEPENDENCIES: 42 | - firebase_core (from `Flutter/ephemeral/.symlinks/plugins/firebase_core/macos`) 43 | - FlutterMacOS (from `Flutter/ephemeral/.symlinks/flutter/darwin-x64`) 44 | - path_provider (from `Flutter/ephemeral/.symlinks/plugins/path_provider/macos`) 45 | - path_provider_macos (from `Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos`) 46 | 47 | SPEC REPOS: 48 | trunk: 49 | - Firebase 50 | - FirebaseCore 51 | - FirebaseCoreDiagnostics 52 | - FirebaseCoreDiagnosticsInterop 53 | - GoogleDataTransport 54 | - GoogleDataTransportCCTSupport 55 | - GoogleUtilities 56 | - nanopb 57 | - PromisesObjC 58 | 59 | EXTERNAL SOURCES: 60 | firebase_core: 61 | :path: Flutter/ephemeral/.symlinks/plugins/firebase_core/macos 62 | FlutterMacOS: 63 | :path: Flutter/ephemeral/.symlinks/flutter/darwin-x64 64 | path_provider: 65 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider/macos 66 | path_provider_macos: 67 | :path: Flutter/ephemeral/.symlinks/plugins/path_provider_macos/macos 68 | 69 | SPEC CHECKSUMS: 70 | Firebase: 7cf5f9c67f03cb3b606d1d6535286e1080e57eb6 71 | firebase_core: b77314bf4bfacf4fb7253ce9bcdd39eb1cff9348 72 | FirebaseCore: f42e5e5f382cdcf6b617ed737bf6c871a6947b17 73 | FirebaseCoreDiagnostics: 4a773a47bd83bbd5a9b1ccf1ce7caa8b2d535e67 74 | FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850 75 | FlutterMacOS: 15bea8a44d2fa024068daa0140371c020b4b6ff9 76 | GoogleDataTransport: 9a8a16f79feffc7f42096743de2a7c4815e84020 77 | GoogleDataTransportCCTSupport: d70a561f7d236af529fee598835caad5e25f6d3d 78 | GoogleUtilities: 39530bc0ad980530298e9c4af8549e991fd033b1 79 | nanopb: c43f40fadfe79e8b8db116583945847910cbabc9 80 | path_provider: e0848572d1d38b9a7dd099e79cf83f5b7e2cde9f 81 | path_provider_macos: a0a3fd666cb7cd0448e936fb4abad4052961002b 82 | PromisesObjC: b48e0338dbbac2207e611750777895f7a5811b75 83 | 84 | PODFILE CHECKSUM: d8ba9b3e9e93c62c74a660b46c6fcb09f03991a7 85 | 86 | COCOAPODS: 1.8.4 87 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | # Uncomment this line to define a global platform for your project 2 | # platform :ios, '9.0' 3 | 4 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 5 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 6 | 7 | project 'Runner', { 8 | 'Debug' => :debug, 9 | 'Profile' => :release, 10 | 'Release' => :release, 11 | } 12 | 13 | def parse_KV_file(file, separator='=') 14 | file_abs_path = File.expand_path(file) 15 | if !File.exists? file_abs_path 16 | return []; 17 | end 18 | generated_key_values = {} 19 | skip_line_start_symbols = ["#", "/"] 20 | File.foreach(file_abs_path) do |line| 21 | next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } 22 | plugin = line.split(pattern=separator) 23 | if plugin.length == 2 24 | podname = plugin[0].strip() 25 | path = plugin[1].strip() 26 | podpath = File.expand_path("#{path}", file_abs_path) 27 | generated_key_values[podname] = podpath 28 | else 29 | puts "Invalid plugin specification: #{line}" 30 | end 31 | end 32 | generated_key_values 33 | end 34 | 35 | target 'Runner' do 36 | use_frameworks! 37 | use_modular_headers! 38 | 39 | # Flutter Pod 40 | 41 | copied_flutter_dir = File.join(__dir__, 'Flutter') 42 | copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework') 43 | copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec') 44 | unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path) 45 | # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet. 46 | # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration. 47 | # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. 48 | 49 | generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig') 50 | unless File.exist?(generated_xcode_build_settings_path) 51 | raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first" 52 | end 53 | generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path) 54 | cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR']; 55 | 56 | unless File.exist?(copied_framework_path) 57 | FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir) 58 | end 59 | unless File.exist?(copied_podspec_path) 60 | FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir) 61 | end 62 | end 63 | 64 | # Keep pod path relative so it can be checked into Podfile.lock. 65 | pod 'Flutter', :path => 'Flutter' 66 | 67 | # Plugin Pods 68 | 69 | # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock 70 | # referring to absolute paths on developers' machines. 71 | system('rm -rf .symlinks') 72 | system('mkdir -p .symlinks/plugins') 73 | plugin_pods = parse_KV_file('../.flutter-plugins') 74 | plugin_pods.each do |name, path| 75 | symlink = File.join('.symlinks', 'plugins', name) 76 | File.symlink(path, symlink) 77 | pod name, :path => File.join(symlink, 'ios') 78 | end 79 | end 80 | 81 | post_install do |installer| 82 | installer.pods_project.targets.each do |target| 83 | target.build_configurations.each do |config| 84 | config.build_settings['ENABLE_BITCODE'] = 'NO' 85 | end 86 | end 87 | end 88 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /lib/core/api/auth.dart: -------------------------------------------------------------------------------- 1 | import 'dart:convert'; 2 | import 'dart:io'; 3 | 4 | import 'package:flutter/material.dart'; 5 | import 'package:flutter/cupertino.dart'; 6 | import 'package:frest/const/secrets.dart'; 7 | import 'package:frest/models/repos_model.dart'; 8 | import 'package:frest/models/token_model.dart'; 9 | import 'package:frest/utils/url.dart'; 10 | import 'package:http/http.dart' as http; 11 | 12 | class Auth { 13 | static Future authorize( 14 | context, { 15 | @required Secret secret, 16 | }) async { 17 | try { 18 | var headers = { 19 | 'Content-type': 'application/json;charset=UTF-8', 20 | 'Accept': 'application/json;charset=UTF-8', 21 | }; 22 | 23 | var response = await http.post(APIUrl.accessToken, 24 | body: json.encode(secret.toJson()), headers: headers); 25 | 26 | if (response.body != null && 27 | response.statusCode == 200 && 28 | response.body.contains('access_token')) { 29 | return TokenModel.fromJson(json.decode(response.body)); 30 | } else { 31 | showCupertinoDialog( 32 | builder: (BuildContext context) { 33 | return CupertinoAlertDialog( 34 | title: Text('Error!'), 35 | content: Padding( 36 | padding: const EdgeInsets.only(top: 10.0), 37 | child: Text('Oops an Error Occurred'), 38 | ), 39 | actions: [ 40 | CupertinoButton( 41 | child: Text('Close'), 42 | onPressed: () async { 43 | Navigator.pop(context); 44 | }, 45 | ), 46 | ], 47 | ); 48 | }, 49 | context: context); 50 | } 51 | 52 | return null; 53 | } catch (e) { 54 | showCupertinoDialog( 55 | builder: (BuildContext context) { 56 | return CupertinoAlertDialog( 57 | title: Text('Oops'), 58 | content: Padding( 59 | padding: const EdgeInsets.only(top: 10.0), 60 | child: Text('An Error Occurred'), 61 | ), 62 | actions: [ 63 | CupertinoButton( 64 | child: Text('Seen'), 65 | onPressed: () { 66 | Navigator.pop(context); 67 | }, 68 | ) 69 | ], 70 | ); 71 | }, 72 | context: context); 73 | 74 | print(e.toString()); 75 | } 76 | return null; 77 | } 78 | 79 | static Future getRepos( 80 | context, { 81 | @required String token, 82 | }) async { 83 | try { 84 | var headers = { 85 | 'Authorization': "token $token", 86 | 'Content-type': 'application/json;charset=UTF-8', 87 | 'Accept': 'application/json', 88 | }; 89 | 90 | var response = await http.get(APIUrl.getUserRepo, headers: headers); 91 | print(response.body); 92 | if (response.body != null && response.body.contains('followers_url')) { 93 | return ReposListModel.fromJson( 94 | json.decode('{"data":${response.body}}')); 95 | } else { 96 | showCupertinoDialog( 97 | builder: (BuildContext context) { 98 | return CupertinoAlertDialog( 99 | title: Text('Error!'), 100 | content: Padding( 101 | padding: const EdgeInsets.only(top: 10.0), 102 | child: Text('UNAUTHENTICATED'), 103 | ), 104 | actions: [ 105 | CupertinoButton( 106 | child: Text('Seen'), 107 | onPressed: () { 108 | Navigator.pop(context); 109 | }, 110 | ) 111 | ], 112 | ); 113 | }, 114 | context: context); 115 | } 116 | } catch (e) { 117 | print(e.toString()); 118 | } 119 | return null; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /lib/views/auth/login.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | 3 | import 'package:flutter/material.dart'; 4 | import 'package:flutter_hooks/flutter_hooks.dart'; 5 | import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; 6 | import 'package:frest/utils/margin.dart'; 7 | import 'package:frest/utils/theme.dart'; 8 | import 'package:frest/view_models/login_vm.dart'; 9 | import 'package:frest/widgets/dialog.dart'; 10 | import 'package:google_fonts/google_fonts.dart'; 11 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 12 | import 'package:line_icons/line_icons.dart'; 13 | 14 | class Login extends StatefulHookWidget { 15 | Login({Key key}) : super(key: key); 16 | 17 | @override 18 | _LoginState createState() => _LoginState(); 19 | } 20 | 21 | class _LoginState extends State { 22 | final providerMain = ChangeNotifierProvider((_) => LoginViewModel()); 23 | 24 | final wv = new FlutterWebviewPlugin(); 25 | StreamSubscription _onUrlChanged; 26 | 27 | @override 28 | void dispose() { 29 | // _onDestroy.cancel(); 30 | _onUrlChanged.cancel(); 31 | // _onStateChanged.cancel(); 32 | wv.dispose(); 33 | super.dispose(); 34 | } 35 | 36 | @override 37 | void initState() { 38 | super.initState(); 39 | providerMain.read(context).loadKeys(); 40 | wv.close(); 41 | // Add a listener to on url changed 42 | _onUrlChanged = wv.onUrlChanged.listen((String url) async { 43 | print(url); 44 | providerMain.read(context).intercept(context, url, mounted: mounted, wv: wv); 45 | }); 46 | } 47 | 48 | @override 49 | Widget build(BuildContext context) { 50 | 51 | var provider = useProvider(providerMain); 52 | return Scaffold( 53 | appBar: PreferredSize( 54 | preferredSize: Size.fromHeight(0), 55 | child: AppBar( 56 | elevation: 0, 57 | backgroundColor: bgColor, 58 | ), 59 | ), 60 | backgroundColor: bgColor, 61 | body: Padding( 62 | padding: const EdgeInsets.all(35.0), 63 | child: Column( 64 | crossAxisAlignment: CrossAxisAlignment.start, 65 | children: [ 66 | Icon( 67 | LineIcons.github_alt, 68 | color: white, 69 | size: 44, 70 | ), 71 | const YMargin(10), 72 | Text('Sign in with Github', 73 | style: GoogleFonts.lato( 74 | textStyle: TextStyle( 75 | fontWeight: FontWeight.w400, 76 | color: white, 77 | height: 1.5, 78 | fontSize: 23, 79 | ), 80 | )), 81 | const YMargin(10), 82 | Text( 83 | 'A demo project to show a simle implementation of Github OAuth', 84 | style: GoogleFonts.sourceCodePro( 85 | textStyle: TextStyle( 86 | fontWeight: FontWeight.w400, 87 | color: white.withOpacity(.4), 88 | height: 1.5, 89 | fontSize: 12, 90 | ), 91 | )), 92 | Spacer(), 93 | Center( 94 | child: Image.asset( 95 | 'assets/images/login.png', 96 | height: 200, 97 | )), 98 | Spacer(), 99 | Container( 100 | width: double.infinity, 101 | height: 56, 102 | child: FlatButton.icon( 103 | color: primary, 104 | icon: Icon( 105 | LineIcons.github, 106 | color: white, 107 | ), 108 | label: Text('Sign in with Github'), 109 | onPressed: () async { 110 | if (provider?.secretKeys?.clientId != null) 111 | await customDialog(context, 112 | clientId: provider.secretKeys?.clientId); 113 | }, 114 | ), 115 | ), 116 | YMargin(context.screenHeight(0.02)) 117 | ], 118 | ), 119 | ), 120 | ); 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 66 | 72 | 73 | 74 | 75 | 76 | 77 | 83 | 85 | 91 | 92 | 93 | 94 | 96 | 97 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /lib/widgets/text_views.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:frest/utils/theme.dart'; 3 | 4 | class FrestTextField extends StatelessWidget { 5 | final String initialValue, hintText, prefix; 6 | final TextEditingController controller; 7 | final Color textColor; 8 | final double margin; 9 | final Widget suffix, prefixWidget, prefixIcon; 10 | final bool isEmail, 11 | isPhone, 12 | isEnabled, 13 | isPassword, 14 | isMoney, 15 | isDark, 16 | isTextArea; 17 | final VoidCallback onTap; 18 | final Function(String) onChanged; 19 | final Function(String) validator; 20 | final Function() onEditingComplete; 21 | const FrestTextField({ 22 | Key key, 23 | this.initialValue, 24 | this.prefix, 25 | this.controller, 26 | this.onTap, 27 | this.hintText, 28 | this.isEmail = false, 29 | this.isEnabled = true, 30 | this.isTextArea = true, 31 | this.margin = 30, 32 | this.isPhone = false, 33 | this.isPassword = false, 34 | this.isDark = false, 35 | this.isMoney = false, 36 | this.textColor = Colors.black, 37 | this.suffix, 38 | this.prefixWidget, 39 | this.prefixIcon, 40 | this.onChanged, 41 | this.onEditingComplete, 42 | this.validator, 43 | }) : super(key: key); 44 | 45 | @override 46 | Widget build(BuildContext context) { 47 | return Container( 48 | margin: EdgeInsets.symmetric(horizontal: margin), 49 | child: Column( 50 | crossAxisAlignment: CrossAxisAlignment.start, 51 | mainAxisAlignment: MainAxisAlignment.center, 52 | children: [ 53 | Container( 54 | // height: 70, 55 | child: TextFormField( 56 | initialValue: controller == null ? initialValue : null, 57 | controller: controller, 58 | obscureText: isPassword, 59 | enabled: isEnabled, 60 | validator: validator, 61 | onChanged: onChanged, 62 | onTap: onTap, 63 | onEditingComplete: onEditingComplete, 64 | maxLines: isTextArea && !isPassword ? null : isPassword ? 1: 3, 65 | keyboardType: isEmail 66 | ? TextInputType.emailAddress 67 | : isPhone 68 | ? TextInputType.phone 69 | : isMoney 70 | ? TextInputType.numberWithOptions() 71 | : TextInputType.text, 72 | style: TextStyle( 73 | fontWeight: FontWeight.w600, 74 | fontSize: 15, 75 | color: isDark ? Colors.white : textColor), 76 | decoration: InputDecoration( 77 | contentPadding: 78 | EdgeInsets.symmetric(horizontal: 30, vertical: 20), 79 | fillColor: isDark ? black.withOpacity(0.5): bgColor, 80 | hintText: hintText, 81 | prefixText: prefix, 82 | prefix: prefixWidget, 83 | prefixIcon: prefixIcon, 84 | suffix: suffix, 85 | errorStyle: TextStyle( 86 | fontWeight: FontWeight.w600, 87 | fontSize: 11, 88 | color: isDark ? Colors.white : Colors.red), 89 | hintStyle: TextStyle( 90 | fontWeight: FontWeight.w400, 91 | fontSize: 15, 92 | color: isDark 93 | ? Colors.white.withOpacity(0.9) 94 | : textColor.withOpacity(0.4)), 95 | filled: true, 96 | border: OutlineInputBorder( 97 | borderRadius: BorderRadius.circular(4), 98 | borderSide: BorderSide( 99 | color: isDark ? primary : Colors.grey[200], 100 | ), 101 | ), 102 | errorBorder: OutlineInputBorder( 103 | borderRadius: BorderRadius.circular(4), 104 | borderSide: BorderSide( 105 | color: isDark ? Colors.amber : Colors.red[400], 106 | ), 107 | ), 108 | focusedErrorBorder: OutlineInputBorder( 109 | borderRadius: BorderRadius.circular(4), 110 | borderSide: BorderSide( 111 | color: isDark ? Colors.amber : Colors.red[400], 112 | ), 113 | ), 114 | focusedBorder: OutlineInputBorder( 115 | borderRadius: BorderRadius.circular(4), 116 | borderSide: BorderSide( 117 | color: isDark ? primary : Colors.grey[200], 118 | ), 119 | ), 120 | enabledBorder: OutlineInputBorder( 121 | borderRadius: BorderRadius.circular(4), 122 | borderSide: BorderSide( 123 | color: isDark ? primary : Colors.grey[200], 124 | ), 125 | ), 126 | disabledBorder: OutlineInputBorder( 127 | borderRadius: BorderRadius.circular(4), 128 | borderSide: BorderSide( 129 | color: isDark ? primary : Colors.grey[100], 130 | ), 131 | ), 132 | ), 133 | ), 134 | ), 135 | ], 136 | ), 137 | ); 138 | } 139 | } 140 | -------------------------------------------------------------------------------- /lib/views/home.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_hooks/flutter_hooks.dart'; 3 | import 'package:frest/models/repos_model.dart'; 4 | import 'package:frest/models/token_model.dart'; 5 | import 'package:frest/utils/margin.dart'; 6 | import 'package:frest/widgets/loader.dart'; 7 | import 'package:google_fonts/google_fonts.dart'; 8 | import 'package:frest/utils/theme.dart'; 9 | import 'package:frest/view_models/home_vm.dart'; 10 | import 'package:hooks_riverpod/hooks_riverpod.dart'; 11 | 12 | class HomePage extends StatefulHookWidget { 13 | final TokenModel tokenModel; 14 | const HomePage(this.tokenModel); 15 | 16 | @override 17 | _HomePageState createState() => _HomePageState(); 18 | } 19 | 20 | class _HomePageState extends State { 21 | final providerMain = ChangeNotifierProvider((_) => HomeViewModel()); 22 | 23 | @override 24 | void initState() { 25 | providerMain.read(context).getRepos(context, widget?.tokenModel?.accessToken); 26 | super.initState(); 27 | } 28 | 29 | @override 30 | Widget build(BuildContext context) { 31 | var provider = useProvider(providerMain); 32 | return Scaffold( 33 | backgroundColor: bgColor, 34 | body: !provider.isLoading 35 | ? Padding( 36 | padding: EdgeInsets.symmetric(horizontal:30), 37 | child: Column( 38 | crossAxisAlignment: CrossAxisAlignment.start, 39 | children: [ 40 | const YMargin(70), 41 | Text('Your Repos', 42 | style: GoogleFonts.lato( 43 | textStyle: TextStyle( 44 | fontWeight: FontWeight.w600, 45 | color: white, 46 | fontSize: 23, 47 | ), 48 | )), 49 | const YMargin(20), 50 | Flexible( 51 | child: ListView( 52 | padding: EdgeInsets.all(0), 53 | children: [ 54 | const YMargin(30), 55 | if (provider.reposModel != null && 56 | provider.reposModel.data.length > 0) 57 | for (var item in provider.reposModel.data) 58 | RepoWidget(item) 59 | ], 60 | ), 61 | ), 62 | ], 63 | ), 64 | ) 65 | : Loader(), 66 | ); 67 | } 68 | } 69 | 70 | class RepoWidget extends StatelessWidget { 71 | const RepoWidget( 72 | this.repoItem, 73 | ); 74 | 75 | final ReposModel repoItem; 76 | 77 | @override 78 | Widget build(BuildContext context) { 79 | return Container( 80 | width: context.screenWidth(0.8), 81 | 82 | padding: EdgeInsets.only( 83 | left: 30, 84 | top: 30, 85 | right: 15, 86 | bottom: 20, 87 | ), 88 | margin: EdgeInsets.only(bottom: 30), 89 | decoration: BoxDecoration( 90 | color: darkGrey, borderRadius: BorderRadius.circular(5)), 91 | child: Column( 92 | crossAxisAlignment: CrossAxisAlignment.start, 93 | children: [ 94 | Text( 95 | repoItem?.name ?? '', 96 | style: GoogleFonts.lato( 97 | textStyle: TextStyle( 98 | fontWeight: FontWeight.w600, 99 | color: white, 100 | fontSize: 19, 101 | ), 102 | ), 103 | ), 104 | const YMargin(7), 105 | Text( 106 | repoItem?.htmlUrl ?? '', 107 | style: GoogleFonts.sourceCodePro( 108 | textStyle: TextStyle( 109 | fontWeight: FontWeight.w300, 110 | color: white.withOpacity(0.5), 111 | fontSize: 12, 112 | ), 113 | ), 114 | ), 115 | const YMargin(20), 116 | Text( 117 | repoItem?.description ?? '', 118 | style: GoogleFonts.lato( 119 | textStyle: TextStyle( 120 | fontWeight: FontWeight.w400, 121 | color: white, 122 | fontSize: 14, 123 | ), 124 | ), 125 | ), 126 | const YMargin(30), 127 | Row( 128 | children: [ 129 | Flexible( 130 | child: ClipRRect( 131 | borderRadius: BorderRadius.circular(2), 132 | child: Container( 133 | padding: 134 | const EdgeInsets.symmetric(horizontal: 15, vertical: 6), 135 | color: red, 136 | child: Text( 137 | repoItem?.language ?? '', 138 | style: GoogleFonts.lato( 139 | textStyle: TextStyle( 140 | fontWeight: FontWeight.w400, 141 | color: white, 142 | fontSize: 12, 143 | ), 144 | ), 145 | ), 146 | ), 147 | ), 148 | ), 149 | const XMargin(20), 150 | Flexible( 151 | child: ClipRRect( 152 | borderRadius: BorderRadius.circular(2), 153 | child: Container( 154 | padding: 155 | const EdgeInsets.symmetric(horizontal: 15, vertical: 6), 156 | color: primary, 157 | child: Text( 158 | repoItem?.license?.name ?? '', 159 | style: GoogleFonts.lato( 160 | textStyle: TextStyle( 161 | fontWeight: FontWeight.w400, 162 | color: white, 163 | fontSize: 12, 164 | ), 165 | ), 166 | ), 167 | ), 168 | ), 169 | ), 170 | ], 171 | ), 172 | ], 173 | ), 174 | ); 175 | } 176 | } 177 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.4.1" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.0.0" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.3" 25 | clock: 26 | dependency: transitive 27 | description: 28 | name: clock 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.1" 32 | collection: 33 | dependency: transitive 34 | description: 35 | name: collection 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.14.12" 39 | convert: 40 | dependency: transitive 41 | description: 42 | name: convert 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "2.1.1" 46 | crypto: 47 | dependency: transitive 48 | description: 49 | name: crypto 50 | url: "https://pub.dartlang.org" 51 | source: hosted 52 | version: "2.1.5" 53 | cupertino_icons: 54 | dependency: "direct main" 55 | description: 56 | name: cupertino_icons 57 | url: "https://pub.dartlang.org" 58 | source: hosted 59 | version: "0.1.3" 60 | fake_async: 61 | dependency: transitive 62 | description: 63 | name: fake_async 64 | url: "https://pub.dartlang.org" 65 | source: hosted 66 | version: "1.1.0" 67 | file: 68 | dependency: transitive 69 | description: 70 | name: file 71 | url: "https://pub.dartlang.org" 72 | source: hosted 73 | version: "5.1.0" 74 | flutter: 75 | dependency: "direct main" 76 | description: flutter 77 | source: sdk 78 | version: "0.0.0" 79 | flutter_hooks: 80 | dependency: "direct main" 81 | description: 82 | name: flutter_hooks 83 | url: "https://pub.dartlang.org" 84 | source: hosted 85 | version: "0.10.0" 86 | flutter_riverpod: 87 | dependency: transitive 88 | description: 89 | name: flutter_riverpod 90 | url: "https://pub.dartlang.org" 91 | source: hosted 92 | version: "0.1.0" 93 | flutter_test: 94 | dependency: "direct dev" 95 | description: flutter 96 | source: sdk 97 | version: "0.0.0" 98 | flutter_webview_plugin: 99 | dependency: "direct main" 100 | description: 101 | name: flutter_webview_plugin 102 | url: "https://pub.dartlang.org" 103 | source: hosted 104 | version: "0.3.11" 105 | freezed_annotation: 106 | dependency: transitive 107 | description: 108 | name: freezed_annotation 109 | url: "https://pub.dartlang.org" 110 | source: hosted 111 | version: "0.11.0" 112 | google_fonts: 113 | dependency: "direct main" 114 | description: 115 | name: google_fonts 116 | url: "https://pub.dartlang.org" 117 | source: hosted 118 | version: "1.0.0" 119 | hooks_riverpod: 120 | dependency: "direct main" 121 | description: 122 | name: hooks_riverpod 123 | url: "https://pub.dartlang.org" 124 | source: hosted 125 | version: "0.1.0" 126 | http: 127 | dependency: transitive 128 | description: 129 | name: http 130 | url: "https://pub.dartlang.org" 131 | source: hosted 132 | version: "0.12.1" 133 | http_parser: 134 | dependency: transitive 135 | description: 136 | name: http_parser 137 | url: "https://pub.dartlang.org" 138 | source: hosted 139 | version: "3.1.4" 140 | intl: 141 | dependency: transitive 142 | description: 143 | name: intl 144 | url: "https://pub.dartlang.org" 145 | source: hosted 146 | version: "0.16.1" 147 | json_annotation: 148 | dependency: transitive 149 | description: 150 | name: json_annotation 151 | url: "https://pub.dartlang.org" 152 | source: hosted 153 | version: "3.0.1" 154 | line_icons: 155 | dependency: "direct main" 156 | description: 157 | name: line_icons 158 | url: "https://pub.dartlang.org" 159 | source: hosted 160 | version: "0.2.0" 161 | matcher: 162 | dependency: transitive 163 | description: 164 | name: matcher 165 | url: "https://pub.dartlang.org" 166 | source: hosted 167 | version: "0.12.6" 168 | meta: 169 | dependency: transitive 170 | description: 171 | name: meta 172 | url: "https://pub.dartlang.org" 173 | source: hosted 174 | version: "1.1.8" 175 | modal_bottom_sheet: 176 | dependency: "direct main" 177 | description: 178 | name: modal_bottom_sheet 179 | url: "https://pub.dartlang.org" 180 | source: hosted 181 | version: "0.1.6" 182 | path: 183 | dependency: transitive 184 | description: 185 | name: path 186 | url: "https://pub.dartlang.org" 187 | source: hosted 188 | version: "1.7.0" 189 | path_provider: 190 | dependency: transitive 191 | description: 192 | name: path_provider 193 | url: "https://pub.dartlang.org" 194 | source: hosted 195 | version: "1.6.10" 196 | path_provider_linux: 197 | dependency: transitive 198 | description: 199 | name: path_provider_linux 200 | url: "https://pub.dartlang.org" 201 | source: hosted 202 | version: "0.0.1+1" 203 | path_provider_macos: 204 | dependency: transitive 205 | description: 206 | name: path_provider_macos 207 | url: "https://pub.dartlang.org" 208 | source: hosted 209 | version: "0.0.4+3" 210 | path_provider_platform_interface: 211 | dependency: transitive 212 | description: 213 | name: path_provider_platform_interface 214 | url: "https://pub.dartlang.org" 215 | source: hosted 216 | version: "1.0.2" 217 | pedantic: 218 | dependency: transitive 219 | description: 220 | name: pedantic 221 | url: "https://pub.dartlang.org" 222 | source: hosted 223 | version: "1.9.0" 224 | platform: 225 | dependency: transitive 226 | description: 227 | name: platform 228 | url: "https://pub.dartlang.org" 229 | source: hosted 230 | version: "2.2.1" 231 | plugin_platform_interface: 232 | dependency: transitive 233 | description: 234 | name: plugin_platform_interface 235 | url: "https://pub.dartlang.org" 236 | source: hosted 237 | version: "1.0.2" 238 | process: 239 | dependency: transitive 240 | description: 241 | name: process 242 | url: "https://pub.dartlang.org" 243 | source: hosted 244 | version: "3.0.13" 245 | riverpod: 246 | dependency: transitive 247 | description: 248 | name: riverpod 249 | url: "https://pub.dartlang.org" 250 | source: hosted 251 | version: "0.1.0" 252 | sky_engine: 253 | dependency: transitive 254 | description: flutter 255 | source: sdk 256 | version: "0.0.99" 257 | source_span: 258 | dependency: transitive 259 | description: 260 | name: source_span 261 | url: "https://pub.dartlang.org" 262 | source: hosted 263 | version: "1.7.0" 264 | stack_trace: 265 | dependency: transitive 266 | description: 267 | name: stack_trace 268 | url: "https://pub.dartlang.org" 269 | source: hosted 270 | version: "1.9.3" 271 | state_notifier: 272 | dependency: transitive 273 | description: 274 | name: state_notifier 275 | url: "https://pub.dartlang.org" 276 | source: hosted 277 | version: "0.5.0" 278 | stream_channel: 279 | dependency: transitive 280 | description: 281 | name: stream_channel 282 | url: "https://pub.dartlang.org" 283 | source: hosted 284 | version: "2.0.0" 285 | string_scanner: 286 | dependency: transitive 287 | description: 288 | name: string_scanner 289 | url: "https://pub.dartlang.org" 290 | source: hosted 291 | version: "1.0.5" 292 | term_glyph: 293 | dependency: transitive 294 | description: 295 | name: term_glyph 296 | url: "https://pub.dartlang.org" 297 | source: hosted 298 | version: "1.1.0" 299 | test_api: 300 | dependency: transitive 301 | description: 302 | name: test_api 303 | url: "https://pub.dartlang.org" 304 | source: hosted 305 | version: "0.2.15" 306 | typed_data: 307 | dependency: transitive 308 | description: 309 | name: typed_data 310 | url: "https://pub.dartlang.org" 311 | source: hosted 312 | version: "1.1.6" 313 | vector_math: 314 | dependency: transitive 315 | description: 316 | name: vector_math 317 | url: "https://pub.dartlang.org" 318 | source: hosted 319 | version: "2.0.8" 320 | xdg_directories: 321 | dependency: transitive 322 | description: 323 | name: xdg_directories 324 | url: "https://pub.dartlang.org" 325 | source: hosted 326 | version: "0.1.0" 327 | sdks: 328 | dart: ">=2.8.0 <3.0.0" 329 | flutter: ">=1.17.0 <2.0.0" 330 | -------------------------------------------------------------------------------- /lib/models/repos_model.dart: -------------------------------------------------------------------------------- 1 | class ReposListModel { 2 | List data; 3 | 4 | ReposListModel({this.data}); 5 | 6 | ReposListModel.fromJson(Map json) { 7 | if (json['data'] != null) { 8 | data = new List(); 9 | json['data'].forEach((v) { 10 | data.add(new ReposModel.fromJson(v)); 11 | }); 12 | } 13 | } 14 | 15 | Map toJson() { 16 | final Map data = new Map(); 17 | if (this.data != null) { 18 | data['data'] = this.data.map((v) => v.toJson()).toList(); 19 | } 20 | return data; 21 | } 22 | } 23 | 24 | 25 | class ReposModel { 26 | int id; 27 | String nodeId; 28 | String name; 29 | String fullName; 30 | bool private; 31 | Owner owner; 32 | String htmlUrl; 33 | String description; 34 | bool fork; 35 | String url; 36 | String forksUrl; 37 | String keysUrl; 38 | String collaboratorsUrl; 39 | String teamsUrl; 40 | String hooksUrl; 41 | String issueEventsUrl; 42 | String eventsUrl; 43 | String assigneesUrl; 44 | String branchesUrl; 45 | String tagsUrl; 46 | String blobsUrl; 47 | String gitTagsUrl; 48 | String gitRefsUrl; 49 | String treesUrl; 50 | String statusesUrl; 51 | String languagesUrl; 52 | String stargazersUrl; 53 | String contributorsUrl; 54 | String subscribersUrl; 55 | String subscriptionUrl; 56 | String commitsUrl; 57 | String gitCommitsUrl; 58 | String commentsUrl; 59 | String issueCommentUrl; 60 | String contentsUrl; 61 | String compareUrl; 62 | String mergesUrl; 63 | String archiveUrl; 64 | String downloadsUrl; 65 | String issuesUrl; 66 | String pullsUrl; 67 | String milestonesUrl; 68 | String notificationsUrl; 69 | String labelsUrl; 70 | String releasesUrl; 71 | String deploymentsUrl; 72 | String createdAt; 73 | String updatedAt; 74 | String pushedAt; 75 | String gitUrl; 76 | String sshUrl; 77 | String cloneUrl; 78 | String svnUrl; 79 | var homepage; 80 | int size; 81 | int stargazersCount; 82 | int watchersCount; 83 | String language; 84 | bool hasIssues; 85 | bool hasProjects; 86 | bool hasDownloads; 87 | bool hasWiki; 88 | bool hasPages; 89 | int forksCount; 90 | var mirrorUrl; 91 | bool archived; 92 | bool disabled; 93 | int openIssuesCount; 94 | License license; 95 | int forks; 96 | int openIssues; 97 | int watchers; 98 | String defaultBranch; 99 | 100 | ReposModel( 101 | {this.id, 102 | this.nodeId, 103 | this.name, 104 | this.fullName, 105 | this.private, 106 | this.owner, 107 | this.htmlUrl, 108 | this.description, 109 | this.fork, 110 | this.url, 111 | this.forksUrl, 112 | this.keysUrl, 113 | this.collaboratorsUrl, 114 | this.teamsUrl, 115 | this.hooksUrl, 116 | this.issueEventsUrl, 117 | this.eventsUrl, 118 | this.assigneesUrl, 119 | this.branchesUrl, 120 | this.tagsUrl, 121 | this.blobsUrl, 122 | this.gitTagsUrl, 123 | this.gitRefsUrl, 124 | this.treesUrl, 125 | this.statusesUrl, 126 | this.languagesUrl, 127 | this.stargazersUrl, 128 | this.contributorsUrl, 129 | this.subscribersUrl, 130 | this.subscriptionUrl, 131 | this.commitsUrl, 132 | this.gitCommitsUrl, 133 | this.commentsUrl, 134 | this.issueCommentUrl, 135 | this.contentsUrl, 136 | this.compareUrl, 137 | this.mergesUrl, 138 | this.archiveUrl, 139 | this.downloadsUrl, 140 | this.issuesUrl, 141 | this.pullsUrl, 142 | this.milestonesUrl, 143 | this.notificationsUrl, 144 | this.labelsUrl, 145 | this.releasesUrl, 146 | this.deploymentsUrl, 147 | this.createdAt, 148 | this.updatedAt, 149 | this.pushedAt, 150 | this.gitUrl, 151 | this.sshUrl, 152 | this.cloneUrl, 153 | this.svnUrl, 154 | this.homepage, 155 | this.size, 156 | this.stargazersCount, 157 | this.watchersCount, 158 | this.language, 159 | this.hasIssues, 160 | this.hasProjects, 161 | this.hasDownloads, 162 | this.hasWiki, 163 | this.hasPages, 164 | this.forksCount, 165 | this.mirrorUrl, 166 | this.archived, 167 | this.disabled, 168 | this.openIssuesCount, 169 | this.license, 170 | this.forks, 171 | this.openIssues, 172 | this.watchers, 173 | this.defaultBranch}); 174 | 175 | ReposModel.fromJson(Map json) { 176 | id = json['id']; 177 | nodeId = json['node_id']; 178 | name = json['name']; 179 | fullName = json['full_name']; 180 | private = json['private']; 181 | owner = json['owner'] != null ? new Owner.fromJson(json['owner']) : null; 182 | htmlUrl = json['html_url']; 183 | description = json['description']; 184 | fork = json['fork']; 185 | url = json['url']; 186 | forksUrl = json['forks_url']; 187 | keysUrl = json['keys_url']; 188 | collaboratorsUrl = json['collaborators_url']; 189 | teamsUrl = json['teams_url']; 190 | hooksUrl = json['hooks_url']; 191 | issueEventsUrl = json['issue_events_url']; 192 | eventsUrl = json['events_url']; 193 | assigneesUrl = json['assignees_url']; 194 | branchesUrl = json['branches_url']; 195 | tagsUrl = json['tags_url']; 196 | blobsUrl = json['blobs_url']; 197 | gitTagsUrl = json['git_tags_url']; 198 | gitRefsUrl = json['git_refs_url']; 199 | treesUrl = json['trees_url']; 200 | statusesUrl = json['statuses_url']; 201 | languagesUrl = json['languages_url']; 202 | stargazersUrl = json['stargazers_url']; 203 | contributorsUrl = json['contributors_url']; 204 | subscribersUrl = json['subscribers_url']; 205 | subscriptionUrl = json['subscription_url']; 206 | commitsUrl = json['commits_url']; 207 | gitCommitsUrl = json['git_commits_url']; 208 | commentsUrl = json['comments_url']; 209 | issueCommentUrl = json['issue_comment_url']; 210 | contentsUrl = json['contents_url']; 211 | compareUrl = json['compare_url']; 212 | mergesUrl = json['merges_url']; 213 | archiveUrl = json['archive_url']; 214 | downloadsUrl = json['downloads_url']; 215 | issuesUrl = json['issues_url']; 216 | pullsUrl = json['pulls_url']; 217 | milestonesUrl = json['milestones_url']; 218 | notificationsUrl = json['notifications_url']; 219 | labelsUrl = json['labels_url']; 220 | releasesUrl = json['releases_url']; 221 | deploymentsUrl = json['deployments_url']; 222 | createdAt = json['created_at']; 223 | updatedAt = json['updated_at']; 224 | pushedAt = json['pushed_at']; 225 | gitUrl = json['git_url']; 226 | sshUrl = json['ssh_url']; 227 | cloneUrl = json['clone_url']; 228 | svnUrl = json['svn_url']; 229 | homepage = json['homepage']; 230 | size = json['size']; 231 | stargazersCount = json['stargazers_count']; 232 | watchersCount = json['watchers_count']; 233 | language = json['language']; 234 | hasIssues = json['has_issues']; 235 | hasProjects = json['has_projects']; 236 | hasDownloads = json['has_downloads']; 237 | hasWiki = json['has_wiki']; 238 | hasPages = json['has_pages']; 239 | forksCount = json['forks_count']; 240 | mirrorUrl = json['mirror_url']; 241 | archived = json['archived']; 242 | disabled = json['disabled']; 243 | openIssuesCount = json['open_issues_count']; 244 | license = 245 | json['license'] != null ? new License.fromJson(json['license']) : null; 246 | forks = json['forks']; 247 | openIssues = json['open_issues']; 248 | watchers = json['watchers']; 249 | defaultBranch = json['default_branch']; 250 | } 251 | 252 | Map toJson() { 253 | final Map data = new Map(); 254 | data['id'] = this.id; 255 | data['node_id'] = this.nodeId; 256 | data['name'] = this.name; 257 | data['full_name'] = this.fullName; 258 | data['private'] = this.private; 259 | if (this.owner != null) { 260 | data['owner'] = this.owner.toJson(); 261 | } 262 | data['html_url'] = this.htmlUrl; 263 | data['description'] = this.description; 264 | data['fork'] = this.fork; 265 | data['url'] = this.url; 266 | data['forks_url'] = this.forksUrl; 267 | data['keys_url'] = this.keysUrl; 268 | data['collaborators_url'] = this.collaboratorsUrl; 269 | data['teams_url'] = this.teamsUrl; 270 | data['hooks_url'] = this.hooksUrl; 271 | data['issue_events_url'] = this.issueEventsUrl; 272 | data['events_url'] = this.eventsUrl; 273 | data['assignees_url'] = this.assigneesUrl; 274 | data['branches_url'] = this.branchesUrl; 275 | data['tags_url'] = this.tagsUrl; 276 | data['blobs_url'] = this.blobsUrl; 277 | data['git_tags_url'] = this.gitTagsUrl; 278 | data['git_refs_url'] = this.gitRefsUrl; 279 | data['trees_url'] = this.treesUrl; 280 | data['statuses_url'] = this.statusesUrl; 281 | data['languages_url'] = this.languagesUrl; 282 | data['stargazers_url'] = this.stargazersUrl; 283 | data['contributors_url'] = this.contributorsUrl; 284 | data['subscribers_url'] = this.subscribersUrl; 285 | data['subscription_url'] = this.subscriptionUrl; 286 | data['commits_url'] = this.commitsUrl; 287 | data['git_commits_url'] = this.gitCommitsUrl; 288 | data['comments_url'] = this.commentsUrl; 289 | data['issue_comment_url'] = this.issueCommentUrl; 290 | data['contents_url'] = this.contentsUrl; 291 | data['compare_url'] = this.compareUrl; 292 | data['merges_url'] = this.mergesUrl; 293 | data['archive_url'] = this.archiveUrl; 294 | data['downloads_url'] = this.downloadsUrl; 295 | data['issues_url'] = this.issuesUrl; 296 | data['pulls_url'] = this.pullsUrl; 297 | data['milestones_url'] = this.milestonesUrl; 298 | data['notifications_url'] = this.notificationsUrl; 299 | data['labels_url'] = this.labelsUrl; 300 | data['releases_url'] = this.releasesUrl; 301 | data['deployments_url'] = this.deploymentsUrl; 302 | data['created_at'] = this.createdAt; 303 | data['updated_at'] = this.updatedAt; 304 | data['pushed_at'] = this.pushedAt; 305 | data['git_url'] = this.gitUrl; 306 | data['ssh_url'] = this.sshUrl; 307 | data['clone_url'] = this.cloneUrl; 308 | data['svn_url'] = this.svnUrl; 309 | data['homepage'] = this.homepage; 310 | data['size'] = this.size; 311 | data['stargazers_count'] = this.stargazersCount; 312 | data['watchers_count'] = this.watchersCount; 313 | data['language'] = this.language; 314 | data['has_issues'] = this.hasIssues; 315 | data['has_projects'] = this.hasProjects; 316 | data['has_downloads'] = this.hasDownloads; 317 | data['has_wiki'] = this.hasWiki; 318 | data['has_pages'] = this.hasPages; 319 | data['forks_count'] = this.forksCount; 320 | data['mirror_url'] = this.mirrorUrl; 321 | data['archived'] = this.archived; 322 | data['disabled'] = this.disabled; 323 | data['open_issues_count'] = this.openIssuesCount; 324 | if (this.license != null) { 325 | data['license'] = this.license.toJson(); 326 | } 327 | data['forks'] = this.forks; 328 | data['open_issues'] = this.openIssues; 329 | data['watchers'] = this.watchers; 330 | data['default_branch'] = this.defaultBranch; 331 | return data; 332 | } 333 | } 334 | 335 | class Owner { 336 | String login; 337 | int id; 338 | String nodeId; 339 | String avatarUrl; 340 | String gravatarId; 341 | String url; 342 | String htmlUrl; 343 | String followersUrl; 344 | String followingUrl; 345 | String gistsUrl; 346 | String starredUrl; 347 | String subscriptionsUrl; 348 | String organizationsUrl; 349 | String reposUrl; 350 | String eventsUrl; 351 | String receivedEventsUrl; 352 | String type; 353 | bool siteAdmin; 354 | 355 | Owner( 356 | {this.login, 357 | this.id, 358 | this.nodeId, 359 | this.avatarUrl, 360 | this.gravatarId, 361 | this.url, 362 | this.htmlUrl, 363 | this.followersUrl, 364 | this.followingUrl, 365 | this.gistsUrl, 366 | this.starredUrl, 367 | this.subscriptionsUrl, 368 | this.organizationsUrl, 369 | this.reposUrl, 370 | this.eventsUrl, 371 | this.receivedEventsUrl, 372 | this.type, 373 | this.siteAdmin}); 374 | 375 | Owner.fromJson(Map json) { 376 | login = json['login']; 377 | id = json['id']; 378 | nodeId = json['node_id']; 379 | avatarUrl = json['avatar_url']; 380 | gravatarId = json['gravatar_id']; 381 | url = json['url']; 382 | htmlUrl = json['html_url']; 383 | followersUrl = json['followers_url']; 384 | followingUrl = json['following_url']; 385 | gistsUrl = json['gists_url']; 386 | starredUrl = json['starred_url']; 387 | subscriptionsUrl = json['subscriptions_url']; 388 | organizationsUrl = json['organizations_url']; 389 | reposUrl = json['repos_url']; 390 | eventsUrl = json['events_url']; 391 | receivedEventsUrl = json['received_events_url']; 392 | type = json['type']; 393 | siteAdmin = json['site_admin']; 394 | } 395 | 396 | Map toJson() { 397 | final Map data = new Map(); 398 | data['login'] = this.login; 399 | data['id'] = this.id; 400 | data['node_id'] = this.nodeId; 401 | data['avatar_url'] = this.avatarUrl; 402 | data['gravatar_id'] = this.gravatarId; 403 | data['url'] = this.url; 404 | data['html_url'] = this.htmlUrl; 405 | data['followers_url'] = this.followersUrl; 406 | data['following_url'] = this.followingUrl; 407 | data['gists_url'] = this.gistsUrl; 408 | data['starred_url'] = this.starredUrl; 409 | data['subscriptions_url'] = this.subscriptionsUrl; 410 | data['organizations_url'] = this.organizationsUrl; 411 | data['repos_url'] = this.reposUrl; 412 | data['events_url'] = this.eventsUrl; 413 | data['received_events_url'] = this.receivedEventsUrl; 414 | data['type'] = this.type; 415 | data['site_admin'] = this.siteAdmin; 416 | return data; 417 | } 418 | } 419 | 420 | class License { 421 | String key; 422 | String name; 423 | String spdxId; 424 | String url; 425 | String nodeId; 426 | 427 | License({this.key, this.name, this.spdxId, this.url, this.nodeId}); 428 | 429 | License.fromJson(Map json) { 430 | key = json['key']; 431 | name = json['name']; 432 | spdxId = json['spdx_id']; 433 | url = json['url']; 434 | nodeId = json['node_id']; 435 | } 436 | 437 | Map toJson() { 438 | final Map data = new Map(); 439 | data['key'] = this.key; 440 | data['name'] = this.name; 441 | data['spdx_id'] = this.spdxId; 442 | data['url'] = this.url; 443 | data['node_id'] = this.nodeId; 444 | return data; 445 | } 446 | } 447 | -------------------------------------------------------------------------------- /macos/Runner/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 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 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | -------------------------------------------------------------------------------- /ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 186D921867A84ACBAB2F7A6A /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAA313ED83730C3B9E7B627 /* Pods_Runner.framework */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; 14 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 15 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 16 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXCopyFilesBuildPhase section */ 20 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 21 | isa = PBXCopyFilesBuildPhase; 22 | buildActionMask = 2147483647; 23 | dstPath = ""; 24 | dstSubfolderSpec = 10; 25 | files = ( 26 | ); 27 | name = "Embed Frameworks"; 28 | runOnlyForDeploymentPostprocessing = 0; 29 | }; 30 | /* End PBXCopyFilesBuildPhase section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 036916EA18DB61927BC254E5 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 37 | 3DAA313ED83730C3B9E7B627 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 5D90D361A5540F853D4D6CA2 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 39 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; 40 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 42 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 43 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 44 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 46 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 47 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 48 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 49 | EB3F374C13D83CAC16F2D022 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 186D921867A84ACBAB2F7A6A /* Pods_Runner.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | /* End PBXFrameworksBuildPhase section */ 62 | 63 | /* Begin PBXGroup section */ 64 | 6B2026670921F100936C5BDD /* Frameworks */ = { 65 | isa = PBXGroup; 66 | children = ( 67 | 3DAA313ED83730C3B9E7B627 /* Pods_Runner.framework */, 68 | ); 69 | name = Frameworks; 70 | sourceTree = ""; 71 | }; 72 | 779D09592177D9E520D327CE /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 036916EA18DB61927BC254E5 /* Pods-Runner.debug.xcconfig */, 76 | EB3F374C13D83CAC16F2D022 /* Pods-Runner.release.xcconfig */, 77 | 5D90D361A5540F853D4D6CA2 /* Pods-Runner.profile.xcconfig */, 78 | ); 79 | path = Pods; 80 | sourceTree = ""; 81 | }; 82 | 9740EEB11CF90186004384FC /* Flutter */ = { 83 | isa = PBXGroup; 84 | children = ( 85 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 86 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 87 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 88 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 89 | ); 90 | name = Flutter; 91 | sourceTree = ""; 92 | }; 93 | 97C146E51CF9000F007C117D = { 94 | isa = PBXGroup; 95 | children = ( 96 | 9740EEB11CF90186004384FC /* Flutter */, 97 | 97C146F01CF9000F007C117D /* Runner */, 98 | 97C146EF1CF9000F007C117D /* Products */, 99 | 779D09592177D9E520D327CE /* Pods */, 100 | 6B2026670921F100936C5BDD /* Frameworks */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 97C146EF1CF9000F007C117D /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 97C146EE1CF9000F007C117D /* Runner.app */, 108 | ); 109 | name = Products; 110 | sourceTree = ""; 111 | }; 112 | 97C146F01CF9000F007C117D /* Runner */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 116 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 117 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 118 | 97C147021CF9000F007C117D /* Info.plist */, 119 | 97C146F11CF9000F007C117D /* Supporting Files */, 120 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 121 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 122 | 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, 123 | 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, 124 | ); 125 | path = Runner; 126 | sourceTree = ""; 127 | }; 128 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | /* End PBXGroup section */ 136 | 137 | /* Begin PBXNativeTarget section */ 138 | 97C146ED1CF9000F007C117D /* Runner */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 141 | buildPhases = ( 142 | 3850FC4BCACAC28FA9CD2FDB /* [CP] Check Pods Manifest.lock */, 143 | 9740EEB61CF901F6004384FC /* Run Script */, 144 | 97C146EA1CF9000F007C117D /* Sources */, 145 | 97C146EB1CF9000F007C117D /* Frameworks */, 146 | 97C146EC1CF9000F007C117D /* Resources */, 147 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 148 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 149 | 7A3BE90B5D8B189EA66E4AC6 /* [CP] Embed Pods Frameworks */, 150 | ); 151 | buildRules = ( 152 | ); 153 | dependencies = ( 154 | ); 155 | name = Runner; 156 | productName = Runner; 157 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 158 | productType = "com.apple.product-type.application"; 159 | }; 160 | /* End PBXNativeTarget section */ 161 | 162 | /* Begin PBXProject section */ 163 | 97C146E61CF9000F007C117D /* Project object */ = { 164 | isa = PBXProject; 165 | attributes = { 166 | LastUpgradeCheck = 1020; 167 | ORGANIZATIONNAME = ""; 168 | TargetAttributes = { 169 | 97C146ED1CF9000F007C117D = { 170 | CreatedOnToolsVersion = 7.3.1; 171 | LastSwiftMigration = 1100; 172 | }; 173 | }; 174 | }; 175 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 176 | compatibilityVersion = "Xcode 9.3"; 177 | developmentRegion = en; 178 | hasScannedForEncodings = 0; 179 | knownRegions = ( 180 | en, 181 | Base, 182 | ); 183 | mainGroup = 97C146E51CF9000F007C117D; 184 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 185 | projectDirPath = ""; 186 | projectRoot = ""; 187 | targets = ( 188 | 97C146ED1CF9000F007C117D /* Runner */, 189 | ); 190 | }; 191 | /* End PBXProject section */ 192 | 193 | /* Begin PBXResourcesBuildPhase section */ 194 | 97C146EC1CF9000F007C117D /* Resources */ = { 195 | isa = PBXResourcesBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 199 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 200 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 201 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | /* End PBXResourcesBuildPhase section */ 206 | 207 | /* Begin PBXShellScriptBuildPhase section */ 208 | 3850FC4BCACAC28FA9CD2FDB /* [CP] Check Pods Manifest.lock */ = { 209 | isa = PBXShellScriptBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | inputFileListPaths = ( 214 | ); 215 | inputPaths = ( 216 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 217 | "${PODS_ROOT}/Manifest.lock", 218 | ); 219 | name = "[CP] Check Pods Manifest.lock"; 220 | outputFileListPaths = ( 221 | ); 222 | outputPaths = ( 223 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 224 | ); 225 | runOnlyForDeploymentPostprocessing = 0; 226 | shellPath = /bin/sh; 227 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 228 | showEnvVarsInLog = 0; 229 | }; 230 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 231 | isa = PBXShellScriptBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | ); 235 | inputPaths = ( 236 | ); 237 | name = "Thin Binary"; 238 | outputPaths = ( 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | shellPath = /bin/sh; 242 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; 243 | }; 244 | 7A3BE90B5D8B189EA66E4AC6 /* [CP] Embed Pods Frameworks */ = { 245 | isa = PBXShellScriptBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | ); 249 | inputFileListPaths = ( 250 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", 251 | ); 252 | name = "[CP] Embed Pods Frameworks"; 253 | outputFileListPaths = ( 254 | "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", 255 | ); 256 | runOnlyForDeploymentPostprocessing = 0; 257 | shellPath = /bin/sh; 258 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 259 | showEnvVarsInLog = 0; 260 | }; 261 | 9740EEB61CF901F6004384FC /* Run Script */ = { 262 | isa = PBXShellScriptBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | ); 266 | inputPaths = ( 267 | ); 268 | name = "Run Script"; 269 | outputPaths = ( 270 | ); 271 | runOnlyForDeploymentPostprocessing = 0; 272 | shellPath = /bin/sh; 273 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 274 | }; 275 | /* End PBXShellScriptBuildPhase section */ 276 | 277 | /* Begin PBXSourcesBuildPhase section */ 278 | 97C146EA1CF9000F007C117D /* Sources */ = { 279 | isa = PBXSourcesBuildPhase; 280 | buildActionMask = 2147483647; 281 | files = ( 282 | 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, 283 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | /* End PBXSourcesBuildPhase section */ 288 | 289 | /* Begin PBXVariantGroup section */ 290 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 291 | isa = PBXVariantGroup; 292 | children = ( 293 | 97C146FB1CF9000F007C117D /* Base */, 294 | ); 295 | name = Main.storyboard; 296 | sourceTree = ""; 297 | }; 298 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 299 | isa = PBXVariantGroup; 300 | children = ( 301 | 97C147001CF9000F007C117D /* Base */, 302 | ); 303 | name = LaunchScreen.storyboard; 304 | sourceTree = ""; 305 | }; 306 | /* End PBXVariantGroup section */ 307 | 308 | /* Begin XCBuildConfiguration section */ 309 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 310 | isa = XCBuildConfiguration; 311 | buildSettings = { 312 | ALWAYS_SEARCH_USER_PATHS = NO; 313 | CLANG_ANALYZER_NONNULL = YES; 314 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 315 | CLANG_CXX_LIBRARY = "libc++"; 316 | CLANG_ENABLE_MODULES = YES; 317 | CLANG_ENABLE_OBJC_ARC = YES; 318 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 319 | CLANG_WARN_BOOL_CONVERSION = YES; 320 | CLANG_WARN_COMMA = YES; 321 | CLANG_WARN_CONSTANT_CONVERSION = YES; 322 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 323 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 324 | CLANG_WARN_EMPTY_BODY = YES; 325 | CLANG_WARN_ENUM_CONVERSION = YES; 326 | CLANG_WARN_INFINITE_RECURSION = YES; 327 | CLANG_WARN_INT_CONVERSION = YES; 328 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 329 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 330 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 331 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 332 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 333 | CLANG_WARN_STRICT_PROTOTYPES = YES; 334 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 335 | CLANG_WARN_UNREACHABLE_CODE = YES; 336 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 337 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 338 | COPY_PHASE_STRIP = NO; 339 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 340 | ENABLE_NS_ASSERTIONS = NO; 341 | ENABLE_STRICT_OBJC_MSGSEND = YES; 342 | GCC_C_LANGUAGE_STANDARD = gnu99; 343 | GCC_NO_COMMON_BLOCKS = YES; 344 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 345 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 346 | GCC_WARN_UNDECLARED_SELECTOR = YES; 347 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 348 | GCC_WARN_UNUSED_FUNCTION = YES; 349 | GCC_WARN_UNUSED_VARIABLE = YES; 350 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 351 | MTL_ENABLE_DEBUG_INFO = NO; 352 | SDKROOT = iphoneos; 353 | SUPPORTED_PLATFORMS = iphoneos; 354 | TARGETED_DEVICE_FAMILY = "1,2"; 355 | VALIDATE_PRODUCT = YES; 356 | }; 357 | name = Profile; 358 | }; 359 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 360 | isa = XCBuildConfiguration; 361 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 362 | buildSettings = { 363 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 364 | CLANG_ENABLE_MODULES = YES; 365 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 366 | DEVELOPMENT_TEAM = ZR33Z9G938; 367 | ENABLE_BITCODE = NO; 368 | FRAMEWORK_SEARCH_PATHS = ( 369 | "$(inherited)", 370 | "$(PROJECT_DIR)/Flutter", 371 | ); 372 | INFOPLIST_FILE = Runner/Info.plist; 373 | LD_RUNPATH_SEARCH_PATHS = ( 374 | "$(inherited)", 375 | "@executable_path/Frameworks", 376 | ); 377 | LIBRARY_SEARCH_PATHS = ( 378 | "$(inherited)", 379 | "$(PROJECT_DIR)/Flutter", 380 | ); 381 | PRODUCT_BUNDLE_IDENTIFIER = com.frest; 382 | PRODUCT_NAME = "$(TARGET_NAME)"; 383 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 384 | SWIFT_VERSION = 5.0; 385 | VERSIONING_SYSTEM = "apple-generic"; 386 | }; 387 | name = Profile; 388 | }; 389 | 97C147031CF9000F007C117D /* Debug */ = { 390 | isa = XCBuildConfiguration; 391 | buildSettings = { 392 | ALWAYS_SEARCH_USER_PATHS = NO; 393 | CLANG_ANALYZER_NONNULL = YES; 394 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 395 | CLANG_CXX_LIBRARY = "libc++"; 396 | CLANG_ENABLE_MODULES = YES; 397 | CLANG_ENABLE_OBJC_ARC = YES; 398 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 399 | CLANG_WARN_BOOL_CONVERSION = YES; 400 | CLANG_WARN_COMMA = YES; 401 | CLANG_WARN_CONSTANT_CONVERSION = YES; 402 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 403 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 404 | CLANG_WARN_EMPTY_BODY = YES; 405 | CLANG_WARN_ENUM_CONVERSION = YES; 406 | CLANG_WARN_INFINITE_RECURSION = YES; 407 | CLANG_WARN_INT_CONVERSION = YES; 408 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 409 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = dwarf; 420 | ENABLE_STRICT_OBJC_MSGSEND = YES; 421 | ENABLE_TESTABILITY = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_DYNAMIC_NO_PIC = NO; 424 | GCC_NO_COMMON_BLOCKS = YES; 425 | GCC_OPTIMIZATION_LEVEL = 0; 426 | GCC_PREPROCESSOR_DEFINITIONS = ( 427 | "DEBUG=1", 428 | "$(inherited)", 429 | ); 430 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 431 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 432 | GCC_WARN_UNDECLARED_SELECTOR = YES; 433 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 434 | GCC_WARN_UNUSED_FUNCTION = YES; 435 | GCC_WARN_UNUSED_VARIABLE = YES; 436 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 437 | MTL_ENABLE_DEBUG_INFO = YES; 438 | ONLY_ACTIVE_ARCH = YES; 439 | SDKROOT = iphoneos; 440 | TARGETED_DEVICE_FAMILY = "1,2"; 441 | }; 442 | name = Debug; 443 | }; 444 | 97C147041CF9000F007C117D /* Release */ = { 445 | isa = XCBuildConfiguration; 446 | buildSettings = { 447 | ALWAYS_SEARCH_USER_PATHS = NO; 448 | CLANG_ANALYZER_NONNULL = YES; 449 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 450 | CLANG_CXX_LIBRARY = "libc++"; 451 | CLANG_ENABLE_MODULES = YES; 452 | CLANG_ENABLE_OBJC_ARC = YES; 453 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 454 | CLANG_WARN_BOOL_CONVERSION = YES; 455 | CLANG_WARN_COMMA = YES; 456 | CLANG_WARN_CONSTANT_CONVERSION = YES; 457 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 458 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INFINITE_RECURSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 464 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 465 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 466 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 467 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 468 | CLANG_WARN_STRICT_PROTOTYPES = YES; 469 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 470 | CLANG_WARN_UNREACHABLE_CODE = YES; 471 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 472 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 473 | COPY_PHASE_STRIP = NO; 474 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 475 | ENABLE_NS_ASSERTIONS = NO; 476 | ENABLE_STRICT_OBJC_MSGSEND = YES; 477 | GCC_C_LANGUAGE_STANDARD = gnu99; 478 | GCC_NO_COMMON_BLOCKS = YES; 479 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 480 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 481 | GCC_WARN_UNDECLARED_SELECTOR = YES; 482 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 483 | GCC_WARN_UNUSED_FUNCTION = YES; 484 | GCC_WARN_UNUSED_VARIABLE = YES; 485 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 486 | MTL_ENABLE_DEBUG_INFO = NO; 487 | SDKROOT = iphoneos; 488 | SUPPORTED_PLATFORMS = iphoneos; 489 | SWIFT_COMPILATION_MODE = wholemodule; 490 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 491 | TARGETED_DEVICE_FAMILY = "1,2"; 492 | VALIDATE_PRODUCT = YES; 493 | }; 494 | name = Release; 495 | }; 496 | 97C147061CF9000F007C117D /* Debug */ = { 497 | isa = XCBuildConfiguration; 498 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 499 | buildSettings = { 500 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 501 | CLANG_ENABLE_MODULES = YES; 502 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 503 | DEVELOPMENT_TEAM = ZR33Z9G938; 504 | ENABLE_BITCODE = NO; 505 | FRAMEWORK_SEARCH_PATHS = ( 506 | "$(inherited)", 507 | "$(PROJECT_DIR)/Flutter", 508 | ); 509 | INFOPLIST_FILE = Runner/Info.plist; 510 | LD_RUNPATH_SEARCH_PATHS = ( 511 | "$(inherited)", 512 | "@executable_path/Frameworks", 513 | ); 514 | LIBRARY_SEARCH_PATHS = ( 515 | "$(inherited)", 516 | "$(PROJECT_DIR)/Flutter", 517 | ); 518 | PRODUCT_BUNDLE_IDENTIFIER = com.frest; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 521 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 522 | SWIFT_VERSION = 5.0; 523 | VERSIONING_SYSTEM = "apple-generic"; 524 | }; 525 | name = Debug; 526 | }; 527 | 97C147071CF9000F007C117D /* Release */ = { 528 | isa = XCBuildConfiguration; 529 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 530 | buildSettings = { 531 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 532 | CLANG_ENABLE_MODULES = YES; 533 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 534 | DEVELOPMENT_TEAM = ZR33Z9G938; 535 | ENABLE_BITCODE = NO; 536 | FRAMEWORK_SEARCH_PATHS = ( 537 | "$(inherited)", 538 | "$(PROJECT_DIR)/Flutter", 539 | ); 540 | INFOPLIST_FILE = Runner/Info.plist; 541 | LD_RUNPATH_SEARCH_PATHS = ( 542 | "$(inherited)", 543 | "@executable_path/Frameworks", 544 | ); 545 | LIBRARY_SEARCH_PATHS = ( 546 | "$(inherited)", 547 | "$(PROJECT_DIR)/Flutter", 548 | ); 549 | PRODUCT_BUNDLE_IDENTIFIER = com.frest; 550 | PRODUCT_NAME = "$(TARGET_NAME)"; 551 | SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; 552 | SWIFT_VERSION = 5.0; 553 | VERSIONING_SYSTEM = "apple-generic"; 554 | }; 555 | name = Release; 556 | }; 557 | /* End XCBuildConfiguration section */ 558 | 559 | /* Begin XCConfigurationList section */ 560 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 561 | isa = XCConfigurationList; 562 | buildConfigurations = ( 563 | 97C147031CF9000F007C117D /* Debug */, 564 | 97C147041CF9000F007C117D /* Release */, 565 | 249021D3217E4FDB00AE95B9 /* Profile */, 566 | ); 567 | defaultConfigurationIsVisible = 0; 568 | defaultConfigurationName = Release; 569 | }; 570 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 571 | isa = XCConfigurationList; 572 | buildConfigurations = ( 573 | 97C147061CF9000F007C117D /* Debug */, 574 | 97C147071CF9000F007C117D /* Release */, 575 | 249021D4217E4FDB00AE95B9 /* Profile */, 576 | ); 577 | defaultConfigurationIsVisible = 0; 578 | defaultConfigurationName = Release; 579 | }; 580 | /* End XCConfigurationList section */ 581 | }; 582 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 583 | } 584 | -------------------------------------------------------------------------------- /macos/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 51; 7 | objects = { 8 | 9 | /* Begin PBXAggregateTarget section */ 10 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = { 11 | isa = PBXAggregateTarget; 12 | buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */; 13 | buildPhases = ( 14 | 33CC111E2044C6BF0003C045 /* ShellScript */, 15 | ); 16 | dependencies = ( 17 | ); 18 | name = "Flutter Assemble"; 19 | productName = FLX; 20 | }; 21 | /* End PBXAggregateTarget section */ 22 | 23 | /* Begin PBXBuildFile section */ 24 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; }; 25 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; }; 26 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; }; 27 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 28 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; 29 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; }; 30 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 31 | 53B9C7DF42800010B122C3D8 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4A4DEEA8C0F8A695A0708729 /* Pods_Runner.framework */; }; 32 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; }; 33 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */ = {isa = PBXBuildFile; fileRef = D73912EF22F37F9E000D13A0 /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 33CC10E52044A3C60003C045 /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = 33CC111A2044C6BA0003C045; 42 | remoteInfo = FLX; 43 | }; 44 | /* End PBXContainerItemProxy section */ 45 | 46 | /* Begin PBXCopyFilesBuildPhase section */ 47 | 33CC110E2044A8840003C045 /* Bundle Framework */ = { 48 | isa = PBXCopyFilesBuildPhase; 49 | buildActionMask = 2147483647; 50 | dstPath = ""; 51 | dstSubfolderSpec = 10; 52 | files = ( 53 | D73912F222F3801D000D13A0 /* App.framework in Bundle Framework */, 54 | 33D1A10522148B93006C7A3E /* FlutterMacOS.framework in Bundle Framework */, 55 | ); 56 | name = "Bundle Framework"; 57 | runOnlyForDeploymentPostprocessing = 0; 58 | }; 59 | /* End PBXCopyFilesBuildPhase section */ 60 | 61 | /* Begin PBXFileReference section */ 62 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; 63 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = ""; }; 64 | 33CC10ED2044A3C60003C045 /* frest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = frest.app; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 66 | 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = ""; }; 67 | 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 68 | 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = ""; }; 69 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = ""; }; 70 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = ""; }; 71 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = ""; }; 72 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = ""; }; 73 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlutterMacOS.framework; path = Flutter/ephemeral/FlutterMacOS.framework; sourceTree = SOURCE_ROOT; }; 74 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = ""; }; 75 | 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = ""; }; 76 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = ""; }; 77 | 4A4DEEA8C0F8A695A0708729 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = ""; }; 79 | 7F0322392FBB42FFA2560677 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; 80 | 9196FA99FEC4F932E7AD6530 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 81 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = ""; }; 82 | D73912EF22F37F9E000D13A0 /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/ephemeral/App.framework; sourceTree = SOURCE_ROOT; }; 83 | ECC7378B9974F5C67C7EDD50 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; 84 | /* End PBXFileReference section */ 85 | 86 | /* Begin PBXFrameworksBuildPhase section */ 87 | 33CC10EA2044A3C60003C045 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | D73912F022F37F9E000D13A0 /* App.framework in Frameworks */, 92 | 33D1A10422148B71006C7A3E /* FlutterMacOS.framework in Frameworks */, 93 | 53B9C7DF42800010B122C3D8 /* Pods_Runner.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | /* End PBXFrameworksBuildPhase section */ 98 | 99 | /* Begin PBXGroup section */ 100 | 33BA886A226E78AF003329D5 /* Configs */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | 33E5194F232828860026EE4D /* AppInfo.xcconfig */, 104 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 105 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 106 | 333000ED22D3DE5D00554162 /* Warnings.xcconfig */, 107 | ); 108 | path = Configs; 109 | sourceTree = ""; 110 | }; 111 | 33CC10E42044A3C60003C045 = { 112 | isa = PBXGroup; 113 | children = ( 114 | 33FAB671232836740065AC1E /* Runner */, 115 | 33CEB47122A05771004F2AC0 /* Flutter */, 116 | 33CC10EE2044A3C60003C045 /* Products */, 117 | D73912EC22F37F3D000D13A0 /* Frameworks */, 118 | 5864961777D493AB3CEE5CA1 /* Pods */, 119 | ); 120 | sourceTree = ""; 121 | }; 122 | 33CC10EE2044A3C60003C045 /* Products */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 33CC10ED2044A3C60003C045 /* frest.app */, 126 | ); 127 | name = Products; 128 | sourceTree = ""; 129 | }; 130 | 33CC11242044D66E0003C045 /* Resources */ = { 131 | isa = PBXGroup; 132 | children = ( 133 | 33CC10F22044A3C60003C045 /* Assets.xcassets */, 134 | 33CC10F42044A3C60003C045 /* MainMenu.xib */, 135 | 33CC10F72044A3C60003C045 /* Info.plist */, 136 | ); 137 | name = Resources; 138 | path = ..; 139 | sourceTree = ""; 140 | }; 141 | 33CEB47122A05771004F2AC0 /* Flutter */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */, 145 | 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */, 146 | 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */, 147 | 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */, 148 | D73912EF22F37F9E000D13A0 /* App.framework */, 149 | 33D1A10322148B71006C7A3E /* FlutterMacOS.framework */, 150 | ); 151 | path = Flutter; 152 | sourceTree = ""; 153 | }; 154 | 33FAB671232836740065AC1E /* Runner */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 33CC10F02044A3C60003C045 /* AppDelegate.swift */, 158 | 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */, 159 | 33E51913231747F40026EE4D /* DebugProfile.entitlements */, 160 | 33E51914231749380026EE4D /* Release.entitlements */, 161 | 33CC11242044D66E0003C045 /* Resources */, 162 | 33BA886A226E78AF003329D5 /* Configs */, 163 | ); 164 | path = Runner; 165 | sourceTree = ""; 166 | }; 167 | 5864961777D493AB3CEE5CA1 /* Pods */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 9196FA99FEC4F932E7AD6530 /* Pods-Runner.debug.xcconfig */, 171 | 7F0322392FBB42FFA2560677 /* Pods-Runner.release.xcconfig */, 172 | ECC7378B9974F5C67C7EDD50 /* Pods-Runner.profile.xcconfig */, 173 | ); 174 | name = Pods; 175 | path = Pods; 176 | sourceTree = ""; 177 | }; 178 | D73912EC22F37F3D000D13A0 /* Frameworks */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | 4A4DEEA8C0F8A695A0708729 /* Pods_Runner.framework */, 182 | ); 183 | name = Frameworks; 184 | sourceTree = ""; 185 | }; 186 | /* End PBXGroup section */ 187 | 188 | /* Begin PBXNativeTarget section */ 189 | 33CC10EC2044A3C60003C045 /* Runner */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */; 192 | buildPhases = ( 193 | 04D974F3B63738A3C7B72302 /* [CP] Check Pods Manifest.lock */, 194 | 33CC10E92044A3C60003C045 /* Sources */, 195 | 33CC10EA2044A3C60003C045 /* Frameworks */, 196 | 33CC10EB2044A3C60003C045 /* Resources */, 197 | 33CC110E2044A8840003C045 /* Bundle Framework */, 198 | 3399D490228B24CF009A79C7 /* ShellScript */, 199 | D30E46C5DA0683F5C9CE0811 /* [CP] Embed Pods Frameworks */, 200 | ); 201 | buildRules = ( 202 | ); 203 | dependencies = ( 204 | 33CC11202044C79F0003C045 /* PBXTargetDependency */, 205 | ); 206 | name = Runner; 207 | productName = Runner; 208 | productReference = 33CC10ED2044A3C60003C045 /* frest.app */; 209 | productType = "com.apple.product-type.application"; 210 | }; 211 | /* End PBXNativeTarget section */ 212 | 213 | /* Begin PBXProject section */ 214 | 33CC10E52044A3C60003C045 /* Project object */ = { 215 | isa = PBXProject; 216 | attributes = { 217 | LastSwiftUpdateCheck = 0920; 218 | LastUpgradeCheck = 0930; 219 | ORGANIZATIONNAME = "The Flutter Authors"; 220 | TargetAttributes = { 221 | 33CC10EC2044A3C60003C045 = { 222 | CreatedOnToolsVersion = 9.2; 223 | LastSwiftMigration = 1100; 224 | ProvisioningStyle = Automatic; 225 | SystemCapabilities = { 226 | com.apple.Sandbox = { 227 | enabled = 1; 228 | }; 229 | }; 230 | }; 231 | 33CC111A2044C6BA0003C045 = { 232 | CreatedOnToolsVersion = 9.2; 233 | ProvisioningStyle = Manual; 234 | }; 235 | }; 236 | }; 237 | buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */; 238 | compatibilityVersion = "Xcode 8.0"; 239 | developmentRegion = en; 240 | hasScannedForEncodings = 0; 241 | knownRegions = ( 242 | en, 243 | Base, 244 | ); 245 | mainGroup = 33CC10E42044A3C60003C045; 246 | productRefGroup = 33CC10EE2044A3C60003C045 /* Products */; 247 | projectDirPath = ""; 248 | projectRoot = ""; 249 | targets = ( 250 | 33CC10EC2044A3C60003C045 /* Runner */, 251 | 33CC111A2044C6BA0003C045 /* Flutter Assemble */, 252 | ); 253 | }; 254 | /* End PBXProject section */ 255 | 256 | /* Begin PBXResourcesBuildPhase section */ 257 | 33CC10EB2044A3C60003C045 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */, 262 | 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */, 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXResourcesBuildPhase section */ 267 | 268 | /* Begin PBXShellScriptBuildPhase section */ 269 | 04D974F3B63738A3C7B72302 /* [CP] Check Pods Manifest.lock */ = { 270 | isa = PBXShellScriptBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ); 274 | inputFileListPaths = ( 275 | ); 276 | inputPaths = ( 277 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 278 | "${PODS_ROOT}/Manifest.lock", 279 | ); 280 | name = "[CP] Check Pods Manifest.lock"; 281 | outputFileListPaths = ( 282 | ); 283 | outputPaths = ( 284 | "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | shellPath = /bin/sh; 288 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 289 | showEnvVarsInLog = 0; 290 | }; 291 | 3399D490228B24CF009A79C7 /* ShellScript */ = { 292 | isa = PBXShellScriptBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | ); 296 | inputFileListPaths = ( 297 | ); 298 | inputPaths = ( 299 | ); 300 | outputFileListPaths = ( 301 | ); 302 | outputPaths = ( 303 | ); 304 | runOnlyForDeploymentPostprocessing = 0; 305 | shellPath = /bin/sh; 306 | shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename\n"; 307 | }; 308 | 33CC111E2044C6BF0003C045 /* ShellScript */ = { 309 | isa = PBXShellScriptBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | ); 313 | inputFileListPaths = ( 314 | Flutter/ephemeral/FlutterInputs.xcfilelist, 315 | ); 316 | inputPaths = ( 317 | Flutter/ephemeral/tripwire, 318 | ); 319 | outputFileListPaths = ( 320 | Flutter/ephemeral/FlutterOutputs.xcfilelist, 321 | ); 322 | outputPaths = ( 323 | ); 324 | runOnlyForDeploymentPostprocessing = 0; 325 | shellPath = /bin/sh; 326 | shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh\ntouch Flutter/ephemeral/tripwire\n"; 327 | }; 328 | D30E46C5DA0683F5C9CE0811 /* [CP] Embed Pods Frameworks */ = { 329 | isa = PBXShellScriptBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | inputFileListPaths = ( 334 | ); 335 | name = "[CP] Embed Pods Frameworks"; 336 | outputFileListPaths = ( 337 | ); 338 | runOnlyForDeploymentPostprocessing = 0; 339 | shellPath = /bin/sh; 340 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; 341 | showEnvVarsInLog = 0; 342 | }; 343 | /* End PBXShellScriptBuildPhase section */ 344 | 345 | /* Begin PBXSourcesBuildPhase section */ 346 | 33CC10E92044A3C60003C045 /* Sources */ = { 347 | isa = PBXSourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */, 351 | 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */, 352 | 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */, 353 | ); 354 | runOnlyForDeploymentPostprocessing = 0; 355 | }; 356 | /* End PBXSourcesBuildPhase section */ 357 | 358 | /* Begin PBXTargetDependency section */ 359 | 33CC11202044C79F0003C045 /* PBXTargetDependency */ = { 360 | isa = PBXTargetDependency; 361 | target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; 362 | targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; 363 | }; 364 | /* End PBXTargetDependency section */ 365 | 366 | /* Begin PBXVariantGroup section */ 367 | 33CC10F42044A3C60003C045 /* MainMenu.xib */ = { 368 | isa = PBXVariantGroup; 369 | children = ( 370 | 33CC10F52044A3C60003C045 /* Base */, 371 | ); 372 | name = MainMenu.xib; 373 | path = Runner; 374 | sourceTree = ""; 375 | }; 376 | /* End PBXVariantGroup section */ 377 | 378 | /* Begin XCBuildConfiguration section */ 379 | 338D0CE9231458BD00FA5F75 /* Profile */ = { 380 | isa = XCBuildConfiguration; 381 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 382 | buildSettings = { 383 | ALWAYS_SEARCH_USER_PATHS = NO; 384 | CLANG_ANALYZER_NONNULL = YES; 385 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 387 | CLANG_CXX_LIBRARY = "libc++"; 388 | CLANG_ENABLE_MODULES = YES; 389 | CLANG_ENABLE_OBJC_ARC = YES; 390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_CONSTANT_CONVERSION = YES; 393 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 394 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 395 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 396 | CLANG_WARN_EMPTY_BODY = YES; 397 | CLANG_WARN_ENUM_CONVERSION = YES; 398 | CLANG_WARN_INFINITE_RECURSION = YES; 399 | CLANG_WARN_INT_CONVERSION = YES; 400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 401 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 402 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 403 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 404 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 405 | CODE_SIGN_IDENTITY = "-"; 406 | COPY_PHASE_STRIP = NO; 407 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 408 | ENABLE_NS_ASSERTIONS = NO; 409 | ENABLE_STRICT_OBJC_MSGSEND = YES; 410 | GCC_C_LANGUAGE_STANDARD = gnu11; 411 | GCC_NO_COMMON_BLOCKS = YES; 412 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 413 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 414 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 415 | GCC_WARN_UNUSED_FUNCTION = YES; 416 | GCC_WARN_UNUSED_VARIABLE = YES; 417 | MACOSX_DEPLOYMENT_TARGET = 10.11; 418 | MTL_ENABLE_DEBUG_INFO = NO; 419 | SDKROOT = macosx; 420 | SWIFT_COMPILATION_MODE = wholemodule; 421 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 422 | }; 423 | name = Profile; 424 | }; 425 | 338D0CEA231458BD00FA5F75 /* Profile */ = { 426 | isa = XCBuildConfiguration; 427 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 428 | buildSettings = { 429 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 430 | CLANG_ENABLE_MODULES = YES; 431 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 432 | CODE_SIGN_STYLE = Automatic; 433 | COMBINE_HIDPI_IMAGES = YES; 434 | FRAMEWORK_SEARCH_PATHS = ( 435 | "$(inherited)", 436 | "$(PROJECT_DIR)/Flutter/ephemeral", 437 | ); 438 | INFOPLIST_FILE = Runner/Info.plist; 439 | LD_RUNPATH_SEARCH_PATHS = ( 440 | "$(inherited)", 441 | "@executable_path/../Frameworks", 442 | ); 443 | PROVISIONING_PROFILE_SPECIFIER = ""; 444 | SWIFT_VERSION = 5.0; 445 | }; 446 | name = Profile; 447 | }; 448 | 338D0CEB231458BD00FA5F75 /* Profile */ = { 449 | isa = XCBuildConfiguration; 450 | buildSettings = { 451 | CODE_SIGN_STYLE = Manual; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | }; 454 | name = Profile; 455 | }; 456 | 33CC10F92044A3C60003C045 /* Debug */ = { 457 | isa = XCBuildConfiguration; 458 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 459 | buildSettings = { 460 | ALWAYS_SEARCH_USER_PATHS = NO; 461 | CLANG_ANALYZER_NONNULL = YES; 462 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 463 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 464 | CLANG_CXX_LIBRARY = "libc++"; 465 | CLANG_ENABLE_MODULES = YES; 466 | CLANG_ENABLE_OBJC_ARC = YES; 467 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 468 | CLANG_WARN_BOOL_CONVERSION = YES; 469 | CLANG_WARN_CONSTANT_CONVERSION = YES; 470 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 471 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 472 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 473 | CLANG_WARN_EMPTY_BODY = YES; 474 | CLANG_WARN_ENUM_CONVERSION = YES; 475 | CLANG_WARN_INFINITE_RECURSION = YES; 476 | CLANG_WARN_INT_CONVERSION = YES; 477 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 478 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 479 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 480 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 481 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 482 | CODE_SIGN_IDENTITY = "-"; 483 | COPY_PHASE_STRIP = NO; 484 | DEBUG_INFORMATION_FORMAT = dwarf; 485 | ENABLE_STRICT_OBJC_MSGSEND = YES; 486 | ENABLE_TESTABILITY = YES; 487 | GCC_C_LANGUAGE_STANDARD = gnu11; 488 | GCC_DYNAMIC_NO_PIC = NO; 489 | GCC_NO_COMMON_BLOCKS = YES; 490 | GCC_OPTIMIZATION_LEVEL = 0; 491 | GCC_PREPROCESSOR_DEFINITIONS = ( 492 | "DEBUG=1", 493 | "$(inherited)", 494 | ); 495 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 496 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 498 | GCC_WARN_UNUSED_FUNCTION = YES; 499 | GCC_WARN_UNUSED_VARIABLE = YES; 500 | MACOSX_DEPLOYMENT_TARGET = 10.11; 501 | MTL_ENABLE_DEBUG_INFO = YES; 502 | ONLY_ACTIVE_ARCH = YES; 503 | SDKROOT = macosx; 504 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 505 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 506 | }; 507 | name = Debug; 508 | }; 509 | 33CC10FA2044A3C60003C045 /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 512 | buildSettings = { 513 | ALWAYS_SEARCH_USER_PATHS = NO; 514 | CLANG_ANALYZER_NONNULL = YES; 515 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 516 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 517 | CLANG_CXX_LIBRARY = "libc++"; 518 | CLANG_ENABLE_MODULES = YES; 519 | CLANG_ENABLE_OBJC_ARC = YES; 520 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 521 | CLANG_WARN_BOOL_CONVERSION = YES; 522 | CLANG_WARN_CONSTANT_CONVERSION = YES; 523 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 524 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 525 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 526 | CLANG_WARN_EMPTY_BODY = YES; 527 | CLANG_WARN_ENUM_CONVERSION = YES; 528 | CLANG_WARN_INFINITE_RECURSION = YES; 529 | CLANG_WARN_INT_CONVERSION = YES; 530 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 531 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 532 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 533 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 534 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 535 | CODE_SIGN_IDENTITY = "-"; 536 | COPY_PHASE_STRIP = NO; 537 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 538 | ENABLE_NS_ASSERTIONS = NO; 539 | ENABLE_STRICT_OBJC_MSGSEND = YES; 540 | GCC_C_LANGUAGE_STANDARD = gnu11; 541 | GCC_NO_COMMON_BLOCKS = YES; 542 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 543 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 544 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 545 | GCC_WARN_UNUSED_FUNCTION = YES; 546 | GCC_WARN_UNUSED_VARIABLE = YES; 547 | MACOSX_DEPLOYMENT_TARGET = 10.11; 548 | MTL_ENABLE_DEBUG_INFO = NO; 549 | SDKROOT = macosx; 550 | SWIFT_COMPILATION_MODE = wholemodule; 551 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 552 | }; 553 | name = Release; 554 | }; 555 | 33CC10FC2044A3C60003C045 /* Debug */ = { 556 | isa = XCBuildConfiguration; 557 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 558 | buildSettings = { 559 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 560 | CLANG_ENABLE_MODULES = YES; 561 | CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements; 562 | CODE_SIGN_STYLE = Automatic; 563 | COMBINE_HIDPI_IMAGES = YES; 564 | FRAMEWORK_SEARCH_PATHS = ( 565 | "$(inherited)", 566 | "$(PROJECT_DIR)/Flutter/ephemeral", 567 | ); 568 | INFOPLIST_FILE = Runner/Info.plist; 569 | LD_RUNPATH_SEARCH_PATHS = ( 570 | "$(inherited)", 571 | "@executable_path/../Frameworks", 572 | ); 573 | PROVISIONING_PROFILE_SPECIFIER = ""; 574 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 575 | SWIFT_VERSION = 5.0; 576 | }; 577 | name = Debug; 578 | }; 579 | 33CC10FD2044A3C60003C045 /* Release */ = { 580 | isa = XCBuildConfiguration; 581 | baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */; 582 | buildSettings = { 583 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 584 | CLANG_ENABLE_MODULES = YES; 585 | CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements; 586 | CODE_SIGN_STYLE = Automatic; 587 | COMBINE_HIDPI_IMAGES = YES; 588 | FRAMEWORK_SEARCH_PATHS = ( 589 | "$(inherited)", 590 | "$(PROJECT_DIR)/Flutter/ephemeral", 591 | ); 592 | INFOPLIST_FILE = Runner/Info.plist; 593 | LD_RUNPATH_SEARCH_PATHS = ( 594 | "$(inherited)", 595 | "@executable_path/../Frameworks", 596 | ); 597 | PROVISIONING_PROFILE_SPECIFIER = ""; 598 | SWIFT_VERSION = 5.0; 599 | }; 600 | name = Release; 601 | }; 602 | 33CC111C2044C6BA0003C045 /* Debug */ = { 603 | isa = XCBuildConfiguration; 604 | buildSettings = { 605 | CODE_SIGN_STYLE = Manual; 606 | PRODUCT_NAME = "$(TARGET_NAME)"; 607 | }; 608 | name = Debug; 609 | }; 610 | 33CC111D2044C6BA0003C045 /* Release */ = { 611 | isa = XCBuildConfiguration; 612 | buildSettings = { 613 | CODE_SIGN_STYLE = Automatic; 614 | PRODUCT_NAME = "$(TARGET_NAME)"; 615 | }; 616 | name = Release; 617 | }; 618 | /* End XCBuildConfiguration section */ 619 | 620 | /* Begin XCConfigurationList section */ 621 | 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = { 622 | isa = XCConfigurationList; 623 | buildConfigurations = ( 624 | 33CC10F92044A3C60003C045 /* Debug */, 625 | 33CC10FA2044A3C60003C045 /* Release */, 626 | 338D0CE9231458BD00FA5F75 /* Profile */, 627 | ); 628 | defaultConfigurationIsVisible = 0; 629 | defaultConfigurationName = Release; 630 | }; 631 | 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = { 632 | isa = XCConfigurationList; 633 | buildConfigurations = ( 634 | 33CC10FC2044A3C60003C045 /* Debug */, 635 | 33CC10FD2044A3C60003C045 /* Release */, 636 | 338D0CEA231458BD00FA5F75 /* Profile */, 637 | ); 638 | defaultConfigurationIsVisible = 0; 639 | defaultConfigurationName = Release; 640 | }; 641 | 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = { 642 | isa = XCConfigurationList; 643 | buildConfigurations = ( 644 | 33CC111C2044C6BA0003C045 /* Debug */, 645 | 33CC111D2044C6BA0003C045 /* Release */, 646 | 338D0CEB231458BD00FA5F75 /* Profile */, 647 | ); 648 | defaultConfigurationIsVisible = 0; 649 | defaultConfigurationName = Release; 650 | }; 651 | /* End XCConfigurationList section */ 652 | }; 653 | rootObject = 33CC10E52044A3C60003C045 /* Project object */; 654 | } 655 | --------------------------------------------------------------------------------