diff --git a/sample/dyte_astrology/.gitignore b/sample/dyte_astrology/.gitignore new file mode 100644 index 0000000..29a3a50 --- /dev/null +++ b/sample/dyte_astrology/.gitignore @@ -0,0 +1,43 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ +migrate_working_dir/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.pub-cache/ +.pub/ +/build/ + +# Symbolication related +app.*.symbols + +# Obfuscation related +app.*.map.json + +# Android Studio will place build artifacts here +/android/app/debug +/android/app/profile +/android/app/release diff --git a/sample/dyte_astrology/.metadata b/sample/dyte_astrology/.metadata new file mode 100644 index 0000000..b5c370f --- /dev/null +++ b/sample/dyte_astrology/.metadata @@ -0,0 +1,45 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: "41456452f29d64e8deb623a3c927524bcf9f111b" + channel: "stable" + +project_type: app + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + - platform: android + create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + - platform: ios + create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + - platform: linux + create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + - platform: macos + create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + - platform: web + create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + - platform: windows + create_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + base_revision: 41456452f29d64e8deb623a3c927524bcf9f111b + + # User provided section + + # List of Local paths (relative to this file) that should be + # ignored by the migrate tool. + # + # Files that are not part of the templates will be ignored by default. + unmanaged_files: + - 'lib/main.dart' + - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/sample/dyte_astrology/README.md b/sample/dyte_astrology/README.md new file mode 100644 index 0000000..dab142f --- /dev/null +++ b/sample/dyte_astrology/README.md @@ -0,0 +1,16 @@ +# dyte_astrology + +A new Flutter project. + +## Getting Started + +This project is a starting point for a Flutter application. + +A few resources to get you started if this is your first Flutter project: + +- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev/), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/sample/dyte_astrology/analysis_options.yaml b/sample/dyte_astrology/analysis_options.yaml new file mode 100644 index 0000000..0d29021 --- /dev/null +++ b/sample/dyte_astrology/analysis_options.yaml @@ -0,0 +1,28 @@ +# This file configures the analyzer, which statically analyzes Dart code to +# check for errors, warnings, and lints. +# +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be +# invoked from the command line by running `flutter analyze`. + +# The following line activates a set of recommended lints for Flutter apps, +# packages, and plugins designed to encourage good coding practices. +include: package:flutter_lints/flutter.yaml + +linter: + # The lint rules applied to this project can be customized in the + # section below to disable rules from the `package:flutter_lints/flutter.yaml` + # included above or to enable additional rules. A list of all available lints + # and their documentation is published at https://dart.dev/lints. + # + # Instead of disabling a lint rule for the entire project in the + # section below, it can also be suppressed for a single line of code + # or a specific dart file by using the `// ignore: name_of_lint` and + # `// ignore_for_file: name_of_lint` syntax on the line or in the file + # producing the lint. + rules: + # avoid_print: false # Uncomment to disable the `avoid_print` rule + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/sample/dyte_astrology/android/.gitignore b/sample/dyte_astrology/android/.gitignore new file mode 100644 index 0000000..6f56801 --- /dev/null +++ b/sample/dyte_astrology/android/.gitignore @@ -0,0 +1,13 @@ +gradle-wrapper.jar +/.gradle +/captures/ +/gradlew +/gradlew.bat +/local.properties +GeneratedPluginRegistrant.java + +# Remember to never publicly share your keystore. +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +key.properties +**/*.keystore +**/*.jks diff --git a/sample/dyte_astrology/android/app/build.gradle b/sample/dyte_astrology/android/app/build.gradle new file mode 100644 index 0000000..5203885 --- /dev/null +++ b/sample/dyte_astrology/android/app/build.gradle @@ -0,0 +1,67 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +android { + namespace "com.example.dyte_astrology" + compileSdkVersion flutter.compileSdkVersion + ndkVersion flutter.ndkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.dyte_astrology" + // You can update the following values to match your application needs. + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies {} diff --git a/sample/dyte_astrology/android/app/src/debug/AndroidManifest.xml b/sample/dyte_astrology/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/sample/dyte_astrology/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/sample/dyte_astrology/android/app/src/main/AndroidManifest.xml b/sample/dyte_astrology/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..0b33064 --- /dev/null +++ b/sample/dyte_astrology/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/sample/dyte_astrology/android/app/src/main/kotlin/com/example/dyte_astrology/MainActivity.kt b/sample/dyte_astrology/android/app/src/main/kotlin/com/example/dyte_astrology/MainActivity.kt new file mode 100644 index 0000000..1848951 --- /dev/null +++ b/sample/dyte_astrology/android/app/src/main/kotlin/com/example/dyte_astrology/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.dyte_astrology + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/sample/dyte_astrology/android/app/src/main/res/drawable-v21/launch_background.xml b/sample/dyte_astrology/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000..f74085f --- /dev/null +++ b/sample/dyte_astrology/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/sample/dyte_astrology/android/app/src/main/res/drawable/launch_background.xml b/sample/dyte_astrology/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000..304732f --- /dev/null +++ b/sample/dyte_astrology/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/sample/dyte_astrology/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/sample/dyte_astrology/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..db77bb4 Binary files /dev/null and b/sample/dyte_astrology/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/sample/dyte_astrology/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/sample/dyte_astrology/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..17987b7 Binary files /dev/null and b/sample/dyte_astrology/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/sample/dyte_astrology/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/sample/dyte_astrology/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..09d4391 Binary files /dev/null and b/sample/dyte_astrology/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/sample/dyte_astrology/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/sample/dyte_astrology/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d5f1c8d Binary files /dev/null and b/sample/dyte_astrology/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/sample/dyte_astrology/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/sample/dyte_astrology/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..4d6372e Binary files /dev/null and b/sample/dyte_astrology/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/sample/dyte_astrology/android/app/src/main/res/values-night/styles.xml b/sample/dyte_astrology/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000..06952be --- /dev/null +++ b/sample/dyte_astrology/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/sample/dyte_astrology/android/app/src/main/res/values/styles.xml b/sample/dyte_astrology/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..cb1ef88 --- /dev/null +++ b/sample/dyte_astrology/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/sample/dyte_astrology/android/app/src/profile/AndroidManifest.xml b/sample/dyte_astrology/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000..399f698 --- /dev/null +++ b/sample/dyte_astrology/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/sample/dyte_astrology/android/build.gradle b/sample/dyte_astrology/android/build.gradle new file mode 100644 index 0000000..e83fb5d --- /dev/null +++ b/sample/dyte_astrology/android/build.gradle @@ -0,0 +1,30 @@ +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/sample/dyte_astrology/android/gradle.properties b/sample/dyte_astrology/android/gradle.properties new file mode 100644 index 0000000..598d13f --- /dev/null +++ b/sample/dyte_astrology/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/sample/dyte_astrology/android/gradle/wrapper/gradle-wrapper.properties b/sample/dyte_astrology/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..3c472b9 --- /dev/null +++ b/sample/dyte_astrology/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip diff --git a/sample/dyte_astrology/android/settings.gradle b/sample/dyte_astrology/android/settings.gradle new file mode 100644 index 0000000..7cd7128 --- /dev/null +++ b/sample/dyte_astrology/android/settings.gradle @@ -0,0 +1,29 @@ +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "7.3.0" apply false +} + +include ":app" diff --git a/sample/dyte_astrology/ios/.gitignore b/sample/dyte_astrology/ios/.gitignore new file mode 100644 index 0000000..7a7f987 --- /dev/null +++ b/sample/dyte_astrology/ios/.gitignore @@ -0,0 +1,34 @@ +**/dgph +*.mode1v3 +*.mode2v3 +*.moved-aside +*.pbxuser +*.perspectivev3 +**/*sync/ +.sconsign.dblite +.tags* +**/.vagrant/ +**/DerivedData/ +Icon? +**/Pods/ +**/.symlinks/ +profile +xcuserdata +**/.generated/ +Flutter/App.framework +Flutter/Flutter.framework +Flutter/Flutter.podspec +Flutter/Generated.xcconfig +Flutter/ephemeral/ +Flutter/app.flx +Flutter/app.zip +Flutter/flutter_assets/ +Flutter/flutter_export_environment.sh +ServiceDefinitions.json +Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!default.mode1v3 +!default.mode2v3 +!default.pbxuser +!default.perspectivev3 diff --git a/sample/dyte_astrology/ios/Flutter/AppFrameworkInfo.plist b/sample/dyte_astrology/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000..7c56964 --- /dev/null +++ b/sample/dyte_astrology/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/sample/dyte_astrology/ios/Flutter/Debug.xcconfig b/sample/dyte_astrology/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000..ec97fc6 --- /dev/null +++ b/sample/dyte_astrology/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/sample/dyte_astrology/ios/Flutter/Release.xcconfig b/sample/dyte_astrology/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000..c4855bf --- /dev/null +++ b/sample/dyte_astrology/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/sample/dyte_astrology/ios/Podfile b/sample/dyte_astrology/ios/Podfile new file mode 100644 index 0000000..3e44f9c --- /dev/null +++ b/sample/dyte_astrology/ios/Podfile @@ -0,0 +1,44 @@ +# Uncomment this line to define a global platform for your project +platform :ios, '13.0' + +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. +ENV['COCOAPODS_DISABLE_STATS'] = 'true' + +project 'Runner', { + 'Debug' => :debug, + 'Profile' => :release, + 'Release' => :release, +} + +def flutter_root + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) + unless File.exist?(generated_xcode_build_settings_path) + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" + end + + File.foreach(generated_xcode_build_settings_path) do |line| + matches = line.match(/FLUTTER_ROOT\=(.*)/) + return matches[1].strip if matches + end + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" +end + +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) + +flutter_ios_podfile_setup + +target 'Runner' do + use_frameworks! + use_modular_headers! + + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) + target 'RunnerTests' do + inherit! :search_paths + end +end + +post_install do |installer| + installer.pods_project.targets.each do |target| + flutter_additional_ios_build_settings(target) + end +end diff --git a/sample/dyte_astrology/ios/Podfile.lock b/sample/dyte_astrology/ios/Podfile.lock new file mode 100644 index 0000000..6cfac05 --- /dev/null +++ b/sample/dyte_astrology/ios/Podfile.lock @@ -0,0 +1,62 @@ +PODS: + - AmazonIVSPlayer (1.19.0) + - dyte_core_ios (0.0.1): + - AmazonIVSPlayer (~> 1.19.0) + - DyteiOSCore (= 1.31.1) + - Flutter + - DyteiOSCore (1.31.1): + - DyteWebRTC (= 0.0.4) + - DyteWebRTC (0.0.4) + - Flutter (1.0.0) + - image_gallery_saver (2.0.2): + - Flutter + - image_picker_ios (0.0.1): + - Flutter + - path_provider_foundation (0.0.1): + - Flutter + - FlutterMacOS + - permission_handler_apple (9.3.0): + - Flutter + +DEPENDENCIES: + - dyte_core_ios (from `.symlinks/plugins/dyte_core_ios/ios`) + - Flutter (from `Flutter`) + - image_gallery_saver (from `.symlinks/plugins/image_gallery_saver/ios`) + - image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`) + - path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`) + - permission_handler_apple (from `.symlinks/plugins/permission_handler_apple/ios`) + +SPEC REPOS: + trunk: + - AmazonIVSPlayer + - DyteiOSCore + - DyteWebRTC + +EXTERNAL SOURCES: + dyte_core_ios: + :path: ".symlinks/plugins/dyte_core_ios/ios" + Flutter: + :path: Flutter + image_gallery_saver: + :path: ".symlinks/plugins/image_gallery_saver/ios" + image_picker_ios: + :path: ".symlinks/plugins/image_picker_ios/ios" + path_provider_foundation: + :path: ".symlinks/plugins/path_provider_foundation/darwin" + permission_handler_apple: + :path: ".symlinks/plugins/permission_handler_apple/ios" + +SPEC CHECKSUMS: + AmazonIVSPlayer: b9498771b74cd05e93c67dd3844bb4e2c453f2aa + dyte_core_ios: 6a6e6089ba6baa0862253f4070e53d8b4171717b + DyteiOSCore: db59b197dac93508165275007686a126663da91c + DyteWebRTC: a6abe1b2cc3ecf66a2a0adc07ada8d851647cfa6 + Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 + image_gallery_saver: cb43cc43141711190510e92c460eb1655cd343cb + image_picker_ios: 99dfe1854b4fa34d0364e74a78448a0151025425 + path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c + permission_handler_apple: 036b856153a2b1f61f21030ff725f3e6fece2b78 + +PODFILE CHECKSUM: a57f30d18f102dd3ce366b1d62a55ecbef2158e5 + +COCOAPODS: 1.13.0 diff --git a/sample/dyte_astrology/ios/Runner.xcodeproj/project.pbxproj b/sample/dyte_astrology/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..59c384e --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,725 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; + D5CF61F1096B92547E892A97 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9B25AF98406E0C7C618458BB /* Pods_Runner.framework */; }; + D7973E71A215783A787C84B1 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C28237A2BCAD5498D9353F23 /* Pods_RunnerTests.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 97C146E61CF9000F007C117D /* Project object */; + proxyType = 1; + remoteGlobalIDString = 97C146ED1CF9000F007C117D; + remoteInfo = Runner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 1E322DDB382B9D5557D8BCA7 /* Pods-RunnerTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile.xcconfig"; sourceTree = ""; }; + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = ""; }; + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 43DCE464A8E3B906E6A4AB98 /* 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 = ""; }; + 53870F4B3771F74C3C1180EC /* 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 = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 835D84F7F7831E5AB9B06F91 /* Pods-RunnerTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.debug.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.debug.xcconfig"; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 9B25AF98406E0C7C618458BB /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + ADE8DB78055C9F7CF383EC9A /* Pods-RunnerTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release.xcconfig"; sourceTree = ""; }; + C28237A2BCAD5498D9353F23 /* Pods_RunnerTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RunnerTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + C37E01B576B317D6E140A9EF /* 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 = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 07A8CB6DE96BC514011801F3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D7973E71A215783A787C84B1 /* Pods_RunnerTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D5CF61F1096B92547E892A97 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 331C8082294A63A400263BE5 /* RunnerTests */ = { + isa = PBXGroup; + children = ( + 331C807B294A618700263BE5 /* RunnerTests.swift */, + ); + path = RunnerTests; + sourceTree = ""; + }; + 7B0483616A071BE3CE398A46 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 9B25AF98406E0C7C618458BB /* Pods_Runner.framework */, + C28237A2BCAD5498D9353F23 /* Pods_RunnerTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + 331C8082294A63A400263BE5 /* RunnerTests */, + F46F8DEE73711DE0231A247A /* Pods */, + 7B0483616A071BE3CE398A46 /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + F46F8DEE73711DE0231A247A /* Pods */ = { + isa = PBXGroup; + children = ( + C37E01B576B317D6E140A9EF /* Pods-Runner.debug.xcconfig */, + 43DCE464A8E3B906E6A4AB98 /* Pods-Runner.release.xcconfig */, + 53870F4B3771F74C3C1180EC /* Pods-Runner.profile.xcconfig */, + 835D84F7F7831E5AB9B06F91 /* Pods-RunnerTests.debug.xcconfig */, + ADE8DB78055C9F7CF383EC9A /* Pods-RunnerTests.release.xcconfig */, + 1E322DDB382B9D5557D8BCA7 /* Pods-RunnerTests.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 331C8080294A63A400263BE5 /* RunnerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; + buildPhases = ( + 73A9A27BE00619578413CC14 /* [CP] Check Pods Manifest.lock */, + 331C807D294A63A400263BE5 /* Sources */, + 331C807F294A63A400263BE5 /* Resources */, + 07A8CB6DE96BC514011801F3 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 331C8086294A63A400263BE5 /* PBXTargetDependency */, + ); + name = RunnerTests; + productName = RunnerTests; + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + C87DF47C266DAE7BC641ED5C /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + 7F0E5940E762EFB05D8FA1CA /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1430; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 331C8080294A63A400263BE5 = { + CreatedOnToolsVersion = 14.0; + TestTargetID = 97C146ED1CF9000F007C117D; + }; + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + 331C8080294A63A400263BE5 /* RunnerTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 331C807F294A63A400263BE5 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 73A9A27BE00619578413CC14 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-RunnerTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + 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"; + showEnvVarsInLog = 0; + }; + 7F0E5940E762EFB05D8FA1CA /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + C87DF47C266DAE7BC641ED5C /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + 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"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 331C807D294A63A400263BE5 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 97C146ED1CF9000F007C117D /* Runner */; + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = BDBP9B69MD; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.dyteAstrology; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 331C8088294A63A400263BE5 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 835D84F7F7831E5AB9B06F91 /* Pods-RunnerTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.dyteAstrology.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Debug; + }; + 331C8089294A63A400263BE5 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = ADE8DB78055C9F7CF383EC9A /* Pods-RunnerTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.dyteAstrology.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Release; + }; + 331C808A294A63A400263BE5 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 1E322DDB382B9D5557D8BCA7 /* Pods-RunnerTests.profile.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.example.dyteAstrology.RunnerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = BDBP9B69MD; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.dyteAstrology; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + DEVELOPMENT_TEAM = BDBP9B69MD; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.example.dyteAstrology; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 331C8088294A63A400263BE5 /* Debug */, + 331C8089294A63A400263BE5 /* Release */, + 331C808A294A63A400263BE5 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/sample/dyte_astrology/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/sample/dyte_astrology/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000..87131a0 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample/dyte_astrology/ios/Runner.xcworkspace/contents.xcworkspacedata b/sample/dyte_astrology/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..21a3cc1 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/sample/dyte_astrology/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/sample/dyte_astrology/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/sample/dyte_astrology/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/sample/dyte_astrology/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000..f9b0d7c --- /dev/null +++ b/sample/dyte_astrology/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/sample/dyte_astrology/ios/Runner/AppDelegate.swift b/sample/dyte_astrology/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000..70693e4 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/AppDelegate.swift @@ -0,0 +1,13 @@ +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d36b1fa --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,122 @@ +{ + "images" : [ + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "20x20", + "idiom" : "iphone", + "filename" : "Icon-App-20x20@3x.png", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@1x.png", + "scale" : "1x" + }, + { + "size" : "20x20", + "idiom" : "ipad", + "filename" : "Icon-App-20x20@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "1024x1024", + "idiom" : "ios-marketing", + "filename" : "Icon-App-1024x1024@1x.png", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 0000000..dc9ada4 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 0000000..7353c41 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 0000000..6ed2d93 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000..4cd7b00 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000..fe73094 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000..321773c Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000..797d452 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000..502f463 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000..0ec3034 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000..e9f5fea Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000..84ac32a Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000..8953cba Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000..0467bf1 Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 0000000..0bedcf2 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "filename" : "LaunchImage.png", + "scale" : "1x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@2x.png", + "scale" : "2x" + }, + { + "idiom" : "universal", + "filename" : "LaunchImage@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 0000000..9da19ea Binary files /dev/null and b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 0000000..89c2725 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md @@ -0,0 +1,5 @@ +# Launch Screen Assets + +You can customize the launch screen with your own desired assets by replacing the image files in this directory. + +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. \ No newline at end of file diff --git a/sample/dyte_astrology/ios/Runner/Base.lproj/LaunchScreen.storyboard b/sample/dyte_astrology/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..f2e259c --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample/dyte_astrology/ios/Runner/Base.lproj/Main.storyboard b/sample/dyte_astrology/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000..f3c2851 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sample/dyte_astrology/ios/Runner/Info.plist b/sample/dyte_astrology/ios/Runner/Info.plist new file mode 100644 index 0000000..90a4111 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/Info.plist @@ -0,0 +1,59 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Dyte Astrology + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + dyte_astrology + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + NSBluetoothPeripheralUsageDescription +We will use your Bluetooth to access your Bluetooth headphones. +NSBluetoothAlwaysUsageDescription +We will use your Bluetooth to access your Bluetooth headphones. +NSCameraUsageDescription +For people to see you during meetings, we need access to your camera. +NSMicrophoneUsageDescription +For people to hear you during meetings, we need access to your microphone. +NSPhotoLibraryUsageDescription +For people to share, we need access to your photos. + + diff --git a/sample/dyte_astrology/ios/Runner/Runner-Bridging-Header.h b/sample/dyte_astrology/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000..308a2a5 --- /dev/null +++ b/sample/dyte_astrology/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/sample/dyte_astrology/ios/RunnerTests/RunnerTests.swift b/sample/dyte_astrology/ios/RunnerTests/RunnerTests.swift new file mode 100644 index 0000000..86a7c3b --- /dev/null +++ b/sample/dyte_astrology/ios/RunnerTests/RunnerTests.swift @@ -0,0 +1,12 @@ +import Flutter +import UIKit +import XCTest + +class RunnerTests: XCTestCase { + + func testExample() { + // If you add code to the Runner application, consider adding tests here. + // See https://developer.apple.com/documentation/xctest for more information about using XCTest. + } + +} diff --git a/sample/dyte_astrology/lib/call_page.dart b/sample/dyte_astrology/lib/call_page.dart new file mode 100644 index 0000000..2eb4bc2 --- /dev/null +++ b/sample/dyte_astrology/lib/call_page.dart @@ -0,0 +1,431 @@ +import 'package:dyte_astrology/room_state.dart'; +import 'package:dyte_astrology/service/download_manager.dart'; +import 'package:dyte_core/dyte_core.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:get/get.dart'; +import 'package:image_picker/image_picker.dart'; + +class HomePage extends StatelessWidget { + const HomePage({super.key}); + + @override + Widget build(BuildContext context) { + final RoomStateNotifier roomStateNotifier = Get.find(); + return Scaffold( + appBar: AppBar( + title: const Text( + "DTYE ASTRO", + style: TextStyle(fontWeight: FontWeight.bold), + ), + actions: roomStateNotifier.showRoomId.value + ? [ + InkWell( + onTap: () { + Clipboard.setData( + ClipboardData(text: roomStateNotifier.roomId.value)); + }, + child: const Padding( + padding: EdgeInsets.only(right: 10.0), + child: Icon(Icons.mail), + ), + ) + ] + : null, + ), + body: SafeArea( + child: Column( + children: [ + Obx(() { + if (roomStateNotifier.remotePeer.value != null) { + return Expanded( + // Remote Peer + child: VideoTile( + participant: roomStateNotifier.remotePeer.value, + isLocal: false, + ), + ); + } else { + return const SizedBox(); + } + }), + Obx(() { + // Dyte Meeting Video View + if (roomStateNotifier.roomJoin.value) { + return const Expanded( + // Local Peer + child: VideoTile( + isLocal: true, + ), + ); + } else { + return const SizedBox(); + } + }), + Obx( + () => roomStateNotifier.roomJoin.value + ? SizedBox( + height: 50, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + InkWell( + onTap: () { + roomStateNotifier.toggleVideo(); + }, + child: Obx(() => Icon( + Icons.camera_alt, + color: roomStateNotifier.isVideoOn.value + ? null + : Colors.red, + ))), + InkWell( + onTap: () { + roomStateNotifier.toggleAudio(); + }, + child: Obx(() => Icon( + roomStateNotifier.isAudioOn.value + ? Icons.mic + : Icons.mic_off, + color: roomStateNotifier.isAudioOn.value + ? null + : Colors.red, + ))), + InkWell( + onTap: () { + roomStateNotifier.switchCamera(); + }, + child: const Icon(Icons.flip_camera_android)), + InkWell( + child: const Icon(Icons.chat_bubble), + onTap: () { + Get.bottomSheet(const ChatWidget()); + }, + ), + InkWell( + onTap: () { + roomStateNotifier.leaveRoom(); + }, + child: const Icon( + Icons.call_end, + color: Colors.red, + ), + ), + ], + ), + ) + : const SizedBox(), + ) + ], + )), + ); + } +} + +// Chat Screen +class ChatWidget extends StatelessWidget { + const ChatWidget({super.key}); + + @override + Widget build(BuildContext context) { + final RoomStateNotifier roomStateNotifier = Get.find(); + final TextEditingController textController = TextEditingController(); + final ScrollController scrollController = ScrollController(); + XFile? attachment; + void scrollDown() { + scrollController.jumpTo(scrollController.position.maxScrollExtent); + } + + return Container( + padding: EdgeInsets.only(bottom: MediaQuery.of(context).padding.bottom), + decoration: const BoxDecoration( + color: Colors.black, + border: Border(top: BorderSide(color: Colors.white)), + borderRadius: BorderRadius.only( + topLeft: Radius.circular(10), topRight: Radius.circular(10))), + child: Column( + children: [ + Container( + margin: const EdgeInsets.only(top: 10), + height: 5, + decoration: BoxDecoration( + color: Colors.white, borderRadius: BorderRadius.circular(10)), + width: 50, + ), + Expanded( + child: Obx( + () => ListView.separated( + controller: scrollController, + itemCount: roomStateNotifier.dyteChatMessage.length, + itemBuilder: (context, index) { + DyteChatMessage message = + roomStateNotifier.dyteChatMessage[index]; + return Row( + mainAxisAlignment: message.userId == + roomStateNotifier.dyteClient.value.localUser.userId + ? MainAxisAlignment.end + : MainAxisAlignment.start, + children: [ + Container( + padding: const EdgeInsets.all(10), + margin: + const EdgeInsets.only(top: 5, left: 5, right: 5), + decoration: BoxDecoration( + color: message.userId == + roomStateNotifier + .dyteClient.value.localUser.userId + ? Colors.blue + : Colors.green, + borderRadius: BorderRadius.circular(10)), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + // Check if it is a text message or not + if ((message is DyteTextMessage)) + Text(message.message) + // Check if it is a image message or not + else if (message is DyteImageMessage) + InkWell( + // On Tap image download image + onTap: () async { + Get.snackbar( + "Download Start", + "", + snackPosition: SnackPosition.BOTTOM, + backgroundColor: Colors.black87, + ); + bool success = + await DownloadManager.prepareSaveDir( + message.link); + if (success) { + Get.snackbar( + "Download Successfully", + "", + snackPosition: SnackPosition.BOTTOM, + backgroundColor: Colors.black87, + ); + } else { + Get.snackbar( + "Download Failed", + "", + colorText: Colors.red, + snackPosition: SnackPosition.BOTTOM, + backgroundColor: Colors.black87, + ); + } + }, + // render image in chat view + child: Image.network( + (message).link, + width: 100, + height: 100, + fit: BoxFit.cover, + ), + ), + // render message time + Text( + message.time, + style: const TextStyle(fontSize: 12), + ) + ], + )) + ], + ); + }, + separatorBuilder: (context, index) { + return const SizedBox( + height: 5, + ); + }, + ), + ), + ), + StatefulBuilder(builder: (context, setState) { + return Row( + children: [ + InkWell( + onTap: () async { + // Pick image from galary + XFile? image = await ImagePicker() + .pickImage(source: ImageSource.gallery); + setState( + () { + attachment = image; + }, + ); + }, + child: Container( + margin: const EdgeInsets.symmetric(horizontal: 5), + padding: const EdgeInsets.all(10), + child: const Icon(Icons.attachment)), + ), + // If image is picked then render image inplace of textfield + if (attachment != null) + Expanded( + child: Container( + color: Colors.white, + padding: const EdgeInsets.all(3), + child: FutureBuilder( + future: attachment!.readAsBytes(), + builder: (context, snapshot) { + if (snapshot.hasData) { + return Image.memory( + snapshot.requireData, + width: 100, + height: 100, + fit: BoxFit.cover, + ); + } else if (snapshot.hasError) { + setState( + () { + attachment = null; + }, + ); + return const SizedBox(); + } else { + return const SizedBox(); + } + }))) + else + Expanded( + child: TextField( + controller: textController, + style: const TextStyle(color: Colors.black), + keyboardType: TextInputType.text, + cursorColor: Colors.grey, + decoration: InputDecoration( + hintText: "Message", + hintStyle: const TextStyle(color: Colors.grey), + filled: true, + fillColor: Colors.white, + focusColor: Colors.white, + border: UnderlineInputBorder( + borderRadius: BorderRadius.circular(10.0), + )), + )), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + InkWell( + onTap: () { + // If image is picked then call `sendImageMessage` otherwise call `sendTextMessage` + if (attachment != null) { + roomStateNotifier.sendImageMessage( + attachment!.path, "file"); + } else if (textController.text.trim().isNotEmpty) { + roomStateNotifier + .sendTextMessage(textController.text.trim()); + } + setState( + () { + attachment = null; + textController.text = ""; + }, + ); + scrollDown(); + }, + child: Container( + margin: const EdgeInsets.symmetric(horizontal: 5), + padding: const EdgeInsets.all(10), + decoration: const BoxDecoration( + color: Colors.blue, shape: BoxShape.circle), + child: RotatedBox( + quarterTurns: attachment != null ? 3 : 0, + child: const Icon(Icons.send))), + ), + // Cancel attachment if exist + if (attachment != null) + InkWell( + onTap: () { + setState( + () { + attachment = null; + }, + ); + }, + child: Container( + margin: const EdgeInsets.symmetric(horizontal: 5), + child: const Icon( + Icons.cancel, + color: Colors.red, + size: 50, + )), + ), + ], + ), + ], + ); + }) + ], + ), + ); + } +} + +// Video Render +class VideoTile extends StatelessWidget { + final bool isLocal; + final DyteMeetingParticipant? participant; + const VideoTile({super.key, required this.isLocal, this.participant}); + + @override + Widget build(BuildContext context) { + final RoomStateNotifier roomStateNotifier = Get.find(); + return Obx( + () => Container( + margin: const EdgeInsets.fromLTRB(10, 5, 10, 5), + decoration: BoxDecoration( + // If participant or localPeer is active speaker then turn border to blue + border: (roomStateNotifier.activeSpeakerId.isNotEmpty + ? ((roomStateNotifier.activeSpeakerId.value == + participant?.userId && + !isLocal) || + (roomStateNotifier.activeSpeakerId.value != + participant?.userId && + isLocal)) + ? Border.all(color: Colors.blue, width: 3) + : null + : null), + borderRadius: BorderRadius.circular(10), + ), + child: Stack( + children: [ + if ((participant != null && !participant!.videoEnabled) || + (isLocal && !roomStateNotifier.isVideoOn.value)) + const Center( + child: Icon(Icons.person_outline_rounded, size: 32), + ) + else + ClipRRect( + borderRadius: BorderRadius.circular(10), + // Dyte VideoView Widget + child: VideoView( + meetingParticipant: + participant, // for render remote peer video + isSelfParticipant: isLocal, // true if local peer + ), + ), + Align( + alignment: Alignment.bottomRight, + child: Container( + padding: const EdgeInsets.all(5), + margin: const EdgeInsets.all(3), + decoration: BoxDecoration( + color: Colors.white.withOpacity(0.7), + borderRadius: BorderRadius.circular(5)), + // Render participant and local peer name + child: Text( + isLocal + ? roomStateNotifier.username.value + : roomStateNotifier.remotePeer.value!.name, + style: const TextStyle(color: Colors.black), + ), + ), + ) + ], + ), + ), + ); + } +} diff --git a/sample/dyte_astrology/lib/main.dart b/sample/dyte_astrology/lib/main.dart new file mode 100644 index 0000000..f72622b --- /dev/null +++ b/sample/dyte_astrology/lib/main.dart @@ -0,0 +1,252 @@ +import 'dart:io'; + +import 'package:dyte_astrology/call_page.dart'; +import 'package:dyte_astrology/room_state.dart'; +import 'package:flutter/material.dart'; +import 'package:get/get.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:permission_handler/permission_handler.dart'; + +import 'service/http_request.dart'; + +void main() { + WidgetsFlutterBinding.ensureInitialized(); + runApp(const MyApp()); +} + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return GetMaterialApp( + debugShowCheckedModeBanner: false, + theme: ThemeData.dark(), + home: const JoinRoom(), + ); + } +} + +class JoinRoom extends StatefulWidget { + const JoinRoom({super.key}); + + @override + State createState() => _JoinRoomState(); +} + +class _JoinRoomState extends State { + bool loading = false; + @override + Widget build(BuildContext context) { + return Scaffold( + body: SizedBox( + width: MediaQuery.of(context).size.width, + child: loading + ? const Center( + child: CircularProgressIndicator( + color: Colors.yellow, + ), + ) + : Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Text( + "DYTE ASTRO", + textAlign: TextAlign.center, + style: GoogleFonts.abrilFatface( + textStyle: const TextStyle( + color: Colors.white, + letterSpacing: 3, + fontSize: 40)), + ), + GestureDetector( + onTap: () async { + if (await getPermissions()) { + // ignore: use_build_context_synchronously + await showDialog( + context: context, + builder: (context) { + TextEditingController nameController = + TextEditingController(); + TextEditingController roomIdController = + TextEditingController(); + return AlertDialog( + title: const Text("Enter Details"), + content: Column( + mainAxisSize: MainAxisSize.min, + children: [ + TextField( + controller: nameController, + decoration: const InputDecoration( + labelText: "Enter Name"), + ), + TextField( + controller: roomIdController, + decoration: const InputDecoration( + labelText: "Enter Room Id"), + ), + ], + ), + actions: [ + ElevatedButton( + onPressed: () async { + if (nameController.text + .trim() + .isEmpty || + roomIdController.text + .trim() + .isEmpty) { + Get.snackbar( + "Enter Name and Room Id", + "Please Enter name and room Id to join the Astro", + snackPosition: + SnackPosition.BOTTOM, + backgroundColor: Colors.black, + colorText: Colors.white); + } else { + Get.back(); + setState(() { + loading = true; + }); + String? token = await HttpRequest + .addParticipant( + nameController.text.trim(), + roomIdController.text + .trim()); + if (token != null) { + setState(() { + loading = false; + }); + Get.put(RoomStateNotifier( + nameController.text.trim(), + token, + roomIdController.text.trim(), + false)); + Get.to(() => const HomePage()); + } else { + Get.snackbar("Error", + "unable to get token"); + } + } + }, + child: const Text("JOIN")) + ], + ); + }); + } + }, + child: Container( + padding: const EdgeInsets.symmetric( + horizontal: 45, vertical: 5), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.white), + child: Text( + "JOIN AS USER", + textAlign: TextAlign.center, + style: GoogleFonts.abrilFatface( + textStyle: const TextStyle( + color: Colors.black, + letterSpacing: 3, + fontSize: 30)), + ), + )), + GestureDetector( + onTap: () async { + if (await getPermissions()) { + // ignore: use_build_context_synchronously + await showDialog( + context: context, + builder: (context) { + TextEditingController controller = + TextEditingController(); + return AlertDialog( + title: const Text("Enter Name"), + content: TextField( + controller: controller, + ), + actions: [ + ElevatedButton( + onPressed: () async { + if (controller.text.trim().isEmpty) { + Get.snackbar("Enter Name", + "Please Enter name", + snackPosition: + SnackPosition.BOTTOM, + backgroundColor: Colors.black, + colorText: Colors.white); + } else { + Get.back(); + setState(() { + loading = true; + }); + String? token; + // Room Creation + String? roomId = await HttpRequest + .createMeeting(); + if (roomId != null) { + // Adding Participant + token = await HttpRequest + .addParticipant( + controller.text.trim(), + roomId); + } + if (token != null) { + setState(() { + loading = false; + }); + Get.put(RoomStateNotifier( + controller.text.trim(), + token, + roomId!, + true)); + Get.to(() => const HomePage()); + } else { + Get.snackbar("Error", + "Unable to get token"); + } + } + }, + child: const Text("JOIN")) + ], + ); + }); + } + }, + child: Container( + padding: const EdgeInsets.symmetric( + horizontal: 20, vertical: 5), + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.white), + child: Text( + "JOIN AS ASTRO", + textAlign: TextAlign.center, + style: GoogleFonts.abrilFatface( + textStyle: const TextStyle( + color: Colors.black, + letterSpacing: 3, + fontSize: 30)), + ), + )), + ], + ), + ), + ); + } +} + +Future getPermissions() async { + if (Platform.isIOS) return true; + await Permission.camera.request(); + await Permission.microphone.request(); + + while ((await Permission.camera.isDenied)) { + await Permission.camera.request(); + } + while ((await Permission.microphone.isDenied)) { + await Permission.microphone.request(); + } + + return true; +} diff --git a/sample/dyte_astrology/lib/room_state.dart b/sample/dyte_astrology/lib/room_state.dart new file mode 100644 index 0000000..36481ef --- /dev/null +++ b/sample/dyte_astrology/lib/room_state.dart @@ -0,0 +1,252 @@ +import 'package:dyte_core/dyte_core.dart'; +import 'package:get/instance_manager.dart'; +import 'package:get/route_manager.dart'; +import 'package:get/state_manager.dart'; + +class RoomStateNotifier extends GetxController + implements + DyteMeetingRoomEventsListener, + DyteParticipantEventsListener, + DyteChatEventsListener { + // DyteMobileClient is manager to interact with dyte server. + final Rx dyteClient = DyteMobileClient().obs; + // Remote peer will hold the remote peer information like name, video, audio so on. + Rxn remotePeer = Rxn(); + // isAudioOn is used to get and set local user audio status + Rx isAudioOn = false.obs; + // isVideoOn is used to get and set local user video status + Rx isVideoOn = true.obs; + // Room Join status + Rx roomJoin = false.obs; + // Username is used to assign value in room. + Rx username = "".obs; + // Dyte Room Id + Rx roomId = "".obs; + // List of dyte Messages + RxList dyteChatMessage = RxList(); + // show room Id + Rx showRoomId = false.obs; + // Active Speaker + Rx activeSpeakerId = "".obs; + + RoomStateNotifier(String name, String token, String meetingId, bool showId) { + username.value = name; + roomId.value = meetingId; + showRoomId.value = showId; + dyteClient.value.addMeetingRoomEventsListener(this); + dyteClient.value.addParticipantEventsListener(this); + dyteClient.value.addChatEventsListener(this); + final meetingInfo = DyteMeetingInfoV2( + authToken: token, enableAudio: false, enableVideo: true); + dyteClient.value.init(meetingInfo); + } + + sendTextMessage(String message) { + dyteClient.value.chat.sendTextMessage(message); + } + + sendImageMessage(String path, String message) { + dyteClient.value.chat.sendImageMessage(path, message); + } + + sendFileMessage(String path, String message) { + dyteClient.value.chat.sendFileMessage(path, message); + } + + toggleVideo() { + if (isVideoOn.value) { + dyteClient.value.localUser.disableVideo(); + } else { + dyteClient.value.localUser.enableVideo(); + } + isVideoOn.toggle(); + } + + toggleAudio() async { + if (isAudioOn.value) { + dyteClient.value.localUser.disableAudio(); + } else { + dyteClient.value.localUser.enableAudio(); + } + isAudioOn.toggle(); + } + + switchCamera() async { + dyteClient.value.localUser.switchCamera(); + } + + leaveRoom() { + dyteClient.value.leaveRoom(); + } + + @override + void onMeetingInitCompleted() { + if (dyteClient.value.permissions.miscellaneous.canEditDisplayName) { + dyteClient.value.localUser.setDisplayName(username.value); + } + dyteClient.value.joinRoom(); + } + + @override + void onMeetingRoomJoinCompleted() { + roomJoin.value = true; + } + + @override + void onMeetingRoomLeaveCompleted() { + roomJoin.value = false; + dyteClient.value.removeMeetingRoomEventsListener(this); + dyteClient.value.removeParticipantEventsListener(this); + dyteClient.value.removeChatEventsListener(this); + Get.back(); + Get.delete(); + } + + @override + void onParticipantJoin(DyteJoinedMeetingParticipant participant) { + // not a local user check + if (participant.userId != dyteClient.value.localUser.userId) { + remotePeer.value = participant; + } + } + + @override + void onParticipantLeave(DyteJoinedMeetingParticipant participant) { + if (participant.userId != dyteClient.value.localUser.userId && + remotePeer.value != null) { + remotePeer.value = null; + } + } + + @override + void onNewChatMessage(DyteChatMessage message) { + dyteChatMessage.add(message); + } + + @override + void onVideoUpdate( + bool videoEnabled, DyteJoinedMeetingParticipant participant) { + if (participant.userId == remotePeer.value?.userId) { + remotePeer.value = participant; + } + } + + @override + void onActiveSpeakerChanged(DyteJoinedMeetingParticipant participant) { + activeSpeakerId.value = participant.userId; + } + + @override + void onNoActiveSpeaker() { + activeSpeakerId.value = ""; + } + + @override + void onMeetingInitFailed(Exception exception) { + print("onMeetingInitFailed $exception"); + } + + @override + void onMeetingInitStarted() { + // TODO: implement onMeetingInitStarted + } + + @override + void onMeetingRoomDisconnected() { + // TODO: implement onMeetingRoomDisconnected + } + + @override + void onMeetingRoomJoinFailed(Exception exception) { + print("onMeetingRoomJoinFailed $exception"); + } + + @override + void onMeetingRoomJoinStarted() {} + + @override + void onMeetingRoomLeaveStarted() { + // TODO: implement onMeetingRoomLeaveCompleted + } + + @override + void onActiveParticipantsChanged(List active) { + // TODO: implement onActiveParticipantsChanged + } + + @override + void onAudioUpdate( + bool audioEnabled, DyteJoinedMeetingParticipant participant) { + // TODO: implement onAudioUpdate + } + + @override + void onParticipantPinned(DyteJoinedMeetingParticipant participant) { + // TODO: implement onParticipantPinned + } + + @override + void onParticipantUnpinned(DyteJoinedMeetingParticipant participant) { + // TODO: implement onParticipantUnpinned + } + + @override + void onScreenSharesUpdated() { + // TODO: implement onScreenSharesUpdated + } + + @override + void onChatUpdates(List messages) { + // TODO: implement onChatUpdates + } + + @override + void onDisconnectedFromMeetingRoom(String reason) { + // TODO: implement onDisconnectedFromMeetingRoom + } + + @override + void onMeetingRoomConnectionError(String errorMessage) { + // TODO: implement onMeetingRoomConnectionError + } + + @override + void onMeetingRoomReconnectionFailed() { + // TODO: implement onMeetingRoomReconnectionFailed + } + + @override + void onReconnectedToMeetingRoom() { + // TODO: implement onReconnectedToMeetingRoom + } + + @override + void onReconnectingToMeetingRoom() { + // TODO: implement onReconnectingToMeetingRoom + } + + @override + void onConnectedToMeetingRoom() { + // TODO: implement onConnectedToMeetingRoom + } + + @override + void onConnectingToMeetingRoom() { + // TODO: implement onConnectingToMeetingRoom + } + + @override + void onScreenShareEnded(DyteJoinedMeetingParticipant participant) { + // TODO: implement onScreenShareEnded + } + + @override + void onScreenShareStarted(DyteJoinedMeetingParticipant participant) { + // TODO: implement onScreenShareStarted + } + + @override + void onUpdate(DyteParticipants participants) { + // TODO: implement onUpdate + } +} diff --git a/sample/dyte_astrology/lib/service/download_manager.dart b/sample/dyte_astrology/lib/service/download_manager.dart new file mode 100644 index 0000000..20e7c9d --- /dev/null +++ b/sample/dyte_astrology/lib/service/download_manager.dart @@ -0,0 +1,69 @@ +import 'dart:io'; + +import 'package:dio/dio.dart'; +import 'package:image_gallery_saver/image_gallery_saver.dart'; +import 'package:path_provider/path_provider.dart'; +import 'package:permission_handler/permission_handler.dart'; + +class DownloadManager { + static final Dio dio = Dio(); + static Future prepareSaveDir(String url) async { + Directory? directory; + try { + if (Platform.isAndroid) { + if (await checkPermission()) { + directory = await getExternalStorageDirectory(); + String newPath = ""; + List paths = directory!.path.split("/"); + for (int x = 1; x < paths.length; x++) { + String folder = paths[x]; + if (folder != "Android") { + newPath += "/$folder"; + } else { + break; + } + } + newPath = "$newPath/RPSApp"; + directory = Directory(newPath); + } else { + return false; + } + } else { + directory = await getTemporaryDirectory(); + } + File saveFile = + File("${directory.path}/dyte_astro_${DateTime.now()}.jpg"); + if (!await directory.exists()) { + await directory.create(recursive: true); + } + if (await directory.exists()) { + await dio.download(url, saveFile.path); + if (Platform.isIOS) { + await ImageGallerySaver.saveFile(saveFile.path, + isReturnPathOfIOS: true); + } + return true; + } + return false; + } catch (e) { + return false; + } + } + + static Future checkPermission() async { + if (Platform.isAndroid) { + final status = await Permission.storage.status; + if (status != PermissionStatus.granted) { + final result = await Permission.storage.request(); + if (result == PermissionStatus.granted) { + return true; + } + } else { + return true; + } + } else { + return true; + } + return false; + } +} diff --git a/sample/dyte_astrology/lib/service/http_request.dart b/sample/dyte_astrology/lib/service/http_request.dart new file mode 100644 index 0000000..115ad00 --- /dev/null +++ b/sample/dyte_astrology/lib/service/http_request.dart @@ -0,0 +1,60 @@ +import 'dart:convert'; + +import 'package:get/route_manager.dart'; +import 'package:http/http.dart'; + +class HttpRequest { + // organization ID + static const String _orgId = "-----ORG ID-----"; + // API Key + static const String _apiKey = "-----API KEY-----"; + //Format of token-> Basic base64.encode(utf8.encode(:)) + static final String _token = + "Basic ${base64.encode(utf8.encode('$_orgId:$_apiKey'))}"; + static const String _baseUrl = "https://api.dyte.io/v2"; + + // Room Creation + static Future createMeeting() async { + String id = DateTime.now().millisecondsSinceEpoch.toString(); + try { + Response response = await post(Uri.parse("$_baseUrl/meetings"), + headers: { + 'Authorization': _token, + "Content-Type": "application/json" + }, + body: json.encode({"title": "astro-$id"})); + if (response.statusCode == 201) { + Map map = jsonDecode(response.body); + return map["data"]["id"]; + } + } catch (e) { + Get.snackbar("Error", e.toString()); + } + return null; + } + +// Add Participant in room + static Future addParticipant(String name, String roomId) async { + String id = DateTime.now().millisecondsSinceEpoch.toString(); + try { + Response response = await post( + Uri.parse("$_baseUrl/meetings/$roomId/participants"), + headers: { + 'Authorization': _token, + "Content-Type": "application/json" + }, + body: json.encode({ + "name": name, + "preset_name": "group_call_participant", + "custom_participant_id": "player-$id" + })); + if (response.statusCode == 201) { + Map map = jsonDecode(response.body); + return map["data"]["token"]; + } + } catch (e) { + Get.snackbar("Error", e.toString()); + } + return null; + } +} diff --git a/sample/dyte_astrology/pubspec.yaml b/sample/dyte_astrology/pubspec.yaml new file mode 100644 index 0000000..baccf35 --- /dev/null +++ b/sample/dyte_astrology/pubspec.yaml @@ -0,0 +1,99 @@ +name: dyte_astrology +description: "A new Flutter project." +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: '>=3.2.6 <4.0.0' + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.2 + dyte_core: ^0.2.4+1 + get: ^4.6.6 + permission_handler: ^11.2.1 + google_fonts: ^6.1.0 + http: ^1.2.0 + path_provider: ^2.1.2 + dio: ^5.4.0 + image_gallery_saver: ^2.0.3 + image_picker: ^1.0.7 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^2.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/sample/dyte_astrology/test/widget_test.dart b/sample/dyte_astrology/test/widget_test.dart new file mode 100644 index 0000000..8d9fe31 --- /dev/null +++ b/sample/dyte_astrology/test/widget_test.dart @@ -0,0 +1,30 @@ +// This is a basic Flutter widget test. +// +// To perform an interaction with a widget in your test, use the WidgetTester +// utility in the flutter_test package. For example, you can send tap and scroll +// gestures. You can also use WidgetTester to find child widgets in the widget +// tree, read text, and verify that the values of widget properties are correct. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'package:dyte_astrology/main.dart'; + +void main() { + testWidgets('Counter increments smoke test', (WidgetTester tester) async { + // Build our app and trigger a frame. + await tester.pumpWidget(const MyApp()); + + // Verify that our counter starts at 0. + expect(find.text('0'), findsOneWidget); + expect(find.text('1'), findsNothing); + + // Tap the '+' icon and trigger a frame. + await tester.tap(find.byIcon(Icons.add)); + await tester.pump(); + + // Verify that our counter has incremented. + expect(find.text('0'), findsNothing); + expect(find.text('1'), findsOneWidget); + }); +}