diff --git a/session_3/Solution/trivia_app/.gitignore b/session_3/Solution/trivia_app/.gitignore new file mode 100644 index 00000000..0fa6b675 --- /dev/null +++ b/session_3/Solution/trivia_app/.gitignore @@ -0,0 +1,46 @@ +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ + +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# The .vscode folder contains launch configuration and tasks you configure in +# VS Code which you may wish to be included in version control, so this line +# is commented out by default. +#.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ +**/ios/Flutter/.last_build_id +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +.packages +.pub-cache/ +.pub/ +/build/ + +# Web related +lib/generated_plugin_registrant.dart + +# 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/session_3/Solution/trivia_app/.metadata b/session_3/Solution/trivia_app/.metadata new file mode 100644 index 00000000..56bfc2c4 --- /dev/null +++ b/session_3/Solution/trivia_app/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: f4abaa0735eba4dfd8f33f73363911d63931fe03 + channel: stable + +project_type: app diff --git a/session_3/Solution/trivia_app/OFL.txt b/session_3/Solution/trivia_app/OFL.txt new file mode 100644 index 00000000..38a74eb9 --- /dev/null +++ b/session_3/Solution/trivia_app/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2014-2021 The Neonderthaw Project Authors (https://github.com/googlefonts/neonderthaw) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/session_3/Solution/trivia_app/README.md b/session_3/Solution/trivia_app/README.md new file mode 100644 index 00000000..c7752881 --- /dev/null +++ b/session_3/Solution/trivia_app/README.md @@ -0,0 +1,38 @@ +# trivia_app + +NUMBER TRIVIA APP + +## Getting Started 🤩😍 + + +* [Installation Guide for Flutter](https://flutter.dev/docs/get-started/install). +* After setting up flutter download the code and then unzip. +* Open code in Visual Studio Code Editor.([Installation Guide for Visual Studio Code](https://code.visualstudio.com/docs)) +* [Setup flutter in VS Code](https://docs.flutter.dev/development/tools/vs-code). +* Optional : Connect Laptop and your Mobile through USB cable then enable USB debugging option in your mobile.([Steps to enable USB debugging option in android](https://www.youtube.com/results?search_query=enable+debugging+mode+android)) +* Goto trivia_app/lib under this execute the file main.dart without debugging i.e Click on Run Without Debugging option in vs code. + +## Basic Requirements ✨ + +* Add App Icon. ✅ +* Use Different Fonts. ✅ + +## App Features ✨ + +* Added App Icon. +* Added Splash Screen. +* Used Different Fonts. +* Added Images. +* Validation Is Done For User Input. +* Added Multiple Floating Buttons (Copy,Refresh and Exit) To Bottom Right Corner. +* Added Confirmation AlertDialog. +* Added Copy To Clipboard Option. + +## App Demo Video 🎥🎥 + +* [NUMBER TRIVIA APP DEMO VIDEO](images/Demo_video.mp4) + +## App GIF + +

+ diff --git a/session_3/Solution/trivia_app/android/.gitignore b/session_3/Solution/trivia_app/android/.gitignore new file mode 100644 index 00000000..0a741cb4 --- /dev/null +++ b/session_3/Solution/trivia_app/android/.gitignore @@ -0,0 +1,11 @@ +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 diff --git a/session_3/Solution/trivia_app/android/app/build.gradle b/session_3/Solution/trivia_app/android/app/build.gradle new file mode 100644 index 00000000..c234213f --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/build.gradle @@ -0,0 +1,59 @@ +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdkVersion 30 + + 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.trivia_app" + minSdkVersion 16 + targetSdkVersion 30 + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/session_3/Solution/trivia_app/android/app/src/debug/AndroidManifest.xml b/session_3/Solution/trivia_app/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 00000000..e73c9220 --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/session_3/Solution/trivia_app/android/app/src/main/AndroidManifest.xml b/session_3/Solution/trivia_app/android/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..27219cd2 --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + diff --git a/session_3/Solution/trivia_app/android/app/src/main/kotlin/com/example/trivia_app/MainActivity.kt b/session_3/Solution/trivia_app/android/app/src/main/kotlin/com/example/trivia_app/MainActivity.kt new file mode 100644 index 00000000..5cac69fc --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/main/kotlin/com/example/trivia_app/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.trivia_app + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/drawable-v21/launch_background.xml b/session_3/Solution/trivia_app/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 00000000..f74085f3 --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/drawable/launch_background.xml b/session_3/Solution/trivia_app/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 00000000..304732f8 --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,12 @@ + + + + + + + + diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..db77bb4b Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-hdpi/launcher_icon.png new file mode 100644 index 00000000..99d7cd0f Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-hdpi/launcher_icon.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..17987b79 Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-mdpi/launcher_icon.png new file mode 100644 index 00000000..0e8db5f3 Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-mdpi/launcher_icon.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..09d43914 Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png new file mode 100644 index 00000000..2edab1da Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..d5f1c8d3 Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png new file mode 100644 index 00000000..2bc475d8 Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..4d6372ee Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png new file mode 100644 index 00000000..21afffdb Binary files /dev/null and b/session_3/Solution/trivia_app/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png differ diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/values-night/styles.xml b/session_3/Solution/trivia_app/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 00000000..449a9f93 --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/session_3/Solution/trivia_app/android/app/src/main/res/values/styles.xml b/session_3/Solution/trivia_app/android/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..d74aa35c --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/main/res/values/styles.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/session_3/Solution/trivia_app/android/app/src/profile/AndroidManifest.xml b/session_3/Solution/trivia_app/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 00000000..e73c9220 --- /dev/null +++ b/session_3/Solution/trivia_app/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,7 @@ + + + + diff --git a/session_3/Solution/trivia_app/android/build.gradle b/session_3/Solution/trivia_app/android/build.gradle new file mode 100644 index 00000000..9b6ed06e --- /dev/null +++ b/session_3/Solution/trivia_app/android/build.gradle @@ -0,0 +1,29 @@ +buildscript { + ext.kotlin_version = '1.3.50' + repositories { + google() + jcenter() + } + + dependencies { + classpath 'com.android.tools.build:gradle:4.1.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" + project.evaluationDependsOn(':app') +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/session_3/Solution/trivia_app/android/gradle.properties b/session_3/Solution/trivia_app/android/gradle.properties new file mode 100644 index 00000000..94adc3a3 --- /dev/null +++ b/session_3/Solution/trivia_app/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx1536M +android.useAndroidX=true +android.enableJetifier=true diff --git a/session_3/Solution/trivia_app/android/gradle/wrapper/gradle-wrapper.properties b/session_3/Solution/trivia_app/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..bc6a58af --- /dev/null +++ b/session_3/Solution/trivia_app/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Fri Jun 23 08:50:38 CEST 2017 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip diff --git a/session_3/Solution/trivia_app/android/settings.gradle b/session_3/Solution/trivia_app/android/settings.gradle new file mode 100644 index 00000000..44e62bcf --- /dev/null +++ b/session_3/Solution/trivia_app/android/settings.gradle @@ -0,0 +1,11 @@ +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/session_3/Solution/trivia_app/fonts/Alice-Regular.ttf b/session_3/Solution/trivia_app/fonts/Alice-Regular.ttf new file mode 100644 index 00000000..674fdccc Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Alice-Regular.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/Cookie-Regular.ttf b/session_3/Solution/trivia_app/fonts/Cookie-Regular.ttf new file mode 100644 index 00000000..83fa919b Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Cookie-Regular.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/LuxuriousRoman-Regular.ttf b/session_3/Solution/trivia_app/fonts/LuxuriousRoman-Regular.ttf new file mode 100644 index 00000000..e38e4852 Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/LuxuriousRoman-Regular.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/Neonderthaw-Regular.ttf b/session_3/Solution/trivia_app/fonts/Neonderthaw-Regular.ttf new file mode 100644 index 00000000..791f3557 Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Neonderthaw-Regular.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/OFL.txt b/session_3/Solution/trivia_app/fonts/OFL.txt new file mode 100644 index 00000000..a1525649 --- /dev/null +++ b/session_3/Solution/trivia_app/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2011 The Alice Project Authors (https://github.com/cyrealtype/Alice) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/session_3/Solution/trivia_app/fonts/Philosopher-Bold.ttf b/session_3/Solution/trivia_app/fonts/Philosopher-Bold.ttf new file mode 100644 index 00000000..2be0435e Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Philosopher-Bold.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/Philosopher-BoldItalic.ttf b/session_3/Solution/trivia_app/fonts/Philosopher-BoldItalic.ttf new file mode 100644 index 00000000..2090a7bd Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Philosopher-BoldItalic.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/Philosopher-Italic.ttf b/session_3/Solution/trivia_app/fonts/Philosopher-Italic.ttf new file mode 100644 index 00000000..5ec7942b Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Philosopher-Italic.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/Philosopher-Regular.ttf b/session_3/Solution/trivia_app/fonts/Philosopher-Regular.ttf new file mode 100644 index 00000000..35a9965d Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Philosopher-Regular.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/Sacramento-Regular.ttf b/session_3/Solution/trivia_app/fonts/Sacramento-Regular.ttf new file mode 100644 index 00000000..6520e7c4 Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/Sacramento-Regular.ttf differ diff --git a/session_3/Solution/trivia_app/fonts/YesevaOne-Regular.ttf b/session_3/Solution/trivia_app/fonts/YesevaOne-Regular.ttf new file mode 100644 index 00000000..ddd30403 Binary files /dev/null and b/session_3/Solution/trivia_app/fonts/YesevaOne-Regular.ttf differ diff --git a/session_3/Solution/trivia_app/images/Demo.gif b/session_3/Solution/trivia_app/images/Demo.gif new file mode 100644 index 00000000..036e4169 Binary files /dev/null and b/session_3/Solution/trivia_app/images/Demo.gif differ diff --git a/session_3/Solution/trivia_app/images/Demo_video.mp4 b/session_3/Solution/trivia_app/images/Demo_video.mp4 new file mode 100644 index 00000000..021d404c Binary files /dev/null and b/session_3/Solution/trivia_app/images/Demo_video.mp4 differ diff --git a/session_3/Solution/trivia_app/images/Trivia.png b/session_3/Solution/trivia_app/images/Trivia.png new file mode 100644 index 00000000..75e9a97d Binary files /dev/null and b/session_3/Solution/trivia_app/images/Trivia.png differ diff --git a/session_3/Solution/trivia_app/images/background.jpg b/session_3/Solution/trivia_app/images/background.jpg new file mode 100644 index 00000000..eac8d03b Binary files /dev/null and b/session_3/Solution/trivia_app/images/background.jpg differ diff --git a/session_3/Solution/trivia_app/images/icon.png b/session_3/Solution/trivia_app/images/icon.png new file mode 100644 index 00000000..57fb4594 Binary files /dev/null and b/session_3/Solution/trivia_app/images/icon.png differ diff --git a/session_3/Solution/trivia_app/images/logo.png b/session_3/Solution/trivia_app/images/logo.png new file mode 100644 index 00000000..577c69cb Binary files /dev/null and b/session_3/Solution/trivia_app/images/logo.png differ diff --git a/session_3/Solution/trivia_app/images/main_bg.jpg b/session_3/Solution/trivia_app/images/main_bg.jpg new file mode 100644 index 00000000..2be2d0c7 Binary files /dev/null and b/session_3/Solution/trivia_app/images/main_bg.jpg differ diff --git a/session_3/Solution/trivia_app/ios/.gitignore b/session_3/Solution/trivia_app/ios/.gitignore new file mode 100644 index 00000000..151026b9 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/.gitignore @@ -0,0 +1,33 @@ +*.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/session_3/Solution/trivia_app/ios/Flutter/AppFrameworkInfo.plist b/session_3/Solution/trivia_app/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 00000000..9367d483 --- /dev/null +++ b/session_3/Solution/trivia_app/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 + 8.0 + + diff --git a/session_3/Solution/trivia_app/ios/Flutter/Debug.xcconfig b/session_3/Solution/trivia_app/ios/Flutter/Debug.xcconfig new file mode 100644 index 00000000..592ceee8 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Flutter/Debug.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/session_3/Solution/trivia_app/ios/Flutter/Release.xcconfig b/session_3/Solution/trivia_app/ios/Flutter/Release.xcconfig new file mode 100644 index 00000000..592ceee8 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Flutter/Release.xcconfig @@ -0,0 +1 @@ +#include "Generated.xcconfig" diff --git a/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.pbxproj b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 00000000..69098e7f --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,471 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1020; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 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 */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 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; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase 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 = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.triviaApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + 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 = 9.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 = 9.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.triviaApp; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = com.example.triviaApp; + 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 */ + 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 */; +} \ No newline at end of file diff --git a/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/session_3/Solution/trivia_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 00000000..a28140cf --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/session_3/Solution/trivia_app/ios/Runner.xcworkspace/contents.xcworkspacedata b/session_3/Solution/trivia_app/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..1d526a16 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/session_3/Solution/trivia_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/session_3/Solution/trivia_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/session_3/Solution/trivia_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/session_3/Solution/trivia_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 00000000..f9b0d7c5 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/session_3/Solution/trivia_app/ios/Runner/AppDelegate.swift b/session_3/Solution/trivia_app/ios/Runner/AppDelegate.swift new file mode 100644 index 00000000..70693e4a --- /dev/null +++ b/session_3/Solution/trivia_app/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/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..d36b1fab --- /dev/null +++ b/session_3/Solution/trivia_app/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/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png new file mode 100644 index 00000000..c76285fd Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png new file mode 100644 index 00000000..61bcee49 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png new file mode 100644 index 00000000..3474516b Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png new file mode 100644 index 00000000..febb1ba2 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 00000000..31c37aed Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 00000000..3800ea1e Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 00000000..38af5cef Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 00000000..3474516b Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 00000000..403f1b4c Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 00000000..11fe5694 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 00000000..11fe5694 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 00000000..7c04cce8 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 00000000..9ed6bb07 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 00000000..fe200441 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 00000000..41cbb2b1 Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json new file mode 100644 index 00000000..0bedcf2f --- /dev/null +++ b/session_3/Solution/trivia_app/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/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png new file mode 100644 index 00000000..9da19eac Binary files /dev/null and b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png differ diff --git a/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/session_3/Solution/trivia_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md new file mode 100644 index 00000000..89c2725b --- /dev/null +++ b/session_3/Solution/trivia_app/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/session_3/Solution/trivia_app/ios/Runner/Base.lproj/LaunchScreen.storyboard b/session_3/Solution/trivia_app/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 00000000..f2e259c7 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/session_3/Solution/trivia_app/ios/Runner/Base.lproj/Main.storyboard b/session_3/Solution/trivia_app/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 00000000..f3c28516 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/session_3/Solution/trivia_app/ios/Runner/Info.plist b/session_3/Solution/trivia_app/ios/Runner/Info.plist new file mode 100644 index 00000000..0c290831 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner/Info.plist @@ -0,0 +1,45 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + trivia_app + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/session_3/Solution/trivia_app/ios/Runner/Runner-Bridging-Header.h b/session_3/Solution/trivia_app/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 00000000..308a2a56 --- /dev/null +++ b/session_3/Solution/trivia_app/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1 @@ +#import "GeneratedPluginRegistrant.h" diff --git a/session_3/Solution/trivia_app/lib/home_screen.dart b/session_3/Solution/trivia_app/lib/home_screen.dart new file mode 100644 index 00000000..c649ecfe --- /dev/null +++ b/session_3/Solution/trivia_app/lib/home_screen.dart @@ -0,0 +1,356 @@ +import 'dart:convert'; +import 'dart:io'; + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:speed_dial_fab/speed_dial_fab.dart'; +import 'package:http/http.dart' as http; +import 'package:clipboard/clipboard.dart'; + +class MyTrivia extends StatelessWidget { + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Number Trivia App', + debugShowCheckedModeBanner: false, + theme: ThemeData( + brightness: Brightness.dark, + primaryColor: Colors.indigo, + accentColor: Colors.indigoAccent, + ), + home: HomeScreen(), + ); + } +} + +class HomeScreen extends StatefulWidget { + @override + State createState() { + return _HomeScreen(); + } +} + +class _HomeScreen extends State { + var _formKey = GlobalKey(); + + var border; + + var minpadding = 5.0; + void initState() { + this.border = BoxDecoration(); + SystemChannels.textInput.invokeMethod('TextInput.hide'); + super.initState(); + } + + // ignore: non_constant_identifier_names + TextEditingController user_number = TextEditingController(); + + var displaytrivia = ''; + + String labelText = "Enter Number"; + + @override + Widget build(BuildContext context) { + // ignore: deprecated_member_use + TextStyle? textStyle = Theme.of(context).textTheme.title; + return Scaffold( + appBar: AppBar( + title: Text( + "Number Trivia Application", + style: TextStyle(fontFamily: "YesevaOne"), + ), + centerTitle: true, + ), + floatingActionButton: SpeedDialFabWidget( + secondaryIconsList: [ + Icons.copy, + Icons.refresh, + Icons.close, + ], + secondaryIconsText: [ + "Copy", + "Refresh", + "Close", + ], + secondaryIconsOnPress: [ + () => { + showDialog( + context: context, + builder: (BuildContext context) => AlertDialog( + title: const Text('Copy'), + content: const Text('Do you want to copy the fact?'), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context, 'CANCEL'), + child: const Text('CANCEL'), + ), + TextButton( + onPressed: () => { + FlutterClipboard.copy(displaytrivia), + showsnackbar(), + Navigator.pop(context, 'CANCEL'), + }, + child: const Text('COPY'), + ), + ], + ), + ), + }, + () => { + showDialog( + context: context, + builder: (BuildContext context) => AlertDialog( + title: const Text('Refresh'), + content: const Text('Do you want to refresh the screen?'), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context, 'CANCEL'), + child: const Text('CANCEL'), + ), + TextButton( + onPressed: () => Navigator.pushAndRemoveUntil( + context, + MaterialPageRoute(builder: (context) => MyTrivia()), + (Route route) => false), + child: const Text('OK'), + ), + ], + ), + ), + }, + () => { + showDialog( + context: context, + builder: (BuildContext context) => AlertDialog( + title: const Text('Exit'), + content: const Text('Do you want to close the app?'), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context, 'CANCEL'), + child: const Text('CANCEL'), + ), + TextButton( + onPressed: () => exit(0), + child: const Text('OK'), + ), + ], + ), + ), + }, + ], + secondaryBackgroundColor: Theme.of(context).cardColor, + secondaryForegroundColor: Theme.of(context).accentColor, + primaryBackgroundColor: Colors.amber[600], + primaryForegroundColor: Colors.black, + ), + body: Form( + key: _formKey, + child: Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage("images/background.jpg"), + fit: BoxFit.cover, + ), + ), + child: Padding( + padding: EdgeInsets.all(minpadding * 2), + child: ListView( + children: [ + getImage(), + Padding( + padding: EdgeInsets.only( + top: minpadding * 5, bottom: minpadding * 4), + child: TextFormField( + style: textStyle, + keyboardType: TextInputType.phone, + controller: user_number, + validator: (String? value) { + if (value!.isEmpty) { + return "Please Enter Any Integer"; + } else { + if (_Valid_Number(value) == false) { + return "Please Enter Only Integer"; + } + } + }, + onTap: () { + setState(() { + border=BoxDecoration(); + labelText = "Number"; + displaytrivia = ""; + }); + }, + decoration: InputDecoration( + labelText: labelText, + labelStyle: textStyle, + hintText: "Enter Number e.g 42", + errorStyle: TextStyle( + color: Colors.yellowAccent, fontSize: 15.0), + border: OutlineInputBorder( + borderRadius: BorderRadius.circular(5.0))), + )), + Container( + width: minpadding * 5, + ), + Padding( + padding: EdgeInsets.only( + top: minpadding, bottom: minpadding * 2), + child: Row( + children: [ + Expanded( + // ignore: deprecated_member_use + child: Container( + margin: EdgeInsets.only( + left: 70.0, + top: 10.0, + right: 70.0, + bottom: 10.0), + height: 50, + child: RaisedButton( + onPressed: () { + if (_formKey.currentState!.validate()) { + GetTrivia(); + } + }, + shape: RoundedRectangleBorder( + borderRadius: + BorderRadius.circular(80.0)), + padding: EdgeInsets.all(0.0), + child: Ink( + decoration: BoxDecoration( + gradient: LinearGradient( + colors: [Colors.blue, Colors.pink], + begin: Alignment.centerLeft, + end: Alignment.centerRight, + ), + borderRadius: + BorderRadius.circular(30.0)), + child: Container( + alignment: Alignment.center, + child: Text( + "GET TRIVIA FACT", + textAlign: TextAlign.center, + style: TextStyle( + color: Colors.white, + fontSize: 25.0, + fontFamily: "Cookie", + fontWeight: FontWeight.w500), + ), + ), + ), + ), + ), + ) + ], + )), + Padding( + padding: EdgeInsets.all(minpadding * 2), + child: Container( + margin: EdgeInsets.all(15.0), + padding: EdgeInsets.all(minpadding * 2), + decoration: border, + child: Text( + this.displaytrivia, + style: TextStyle( + fontFamily: "Philosopher Italic", + fontSize: 24.0), + ), + )) + ], + ))), + ), + ); + } + + Widget getImage() { + AssetImage assetimage = AssetImage('images/Trivia.png'); + Image image = Image( + image: assetimage, + ); + return Container( + child: image, + width: 125.0, + height: 125.0, + margin: EdgeInsets.all(minpadding * 5), + ); + } + + // ignore: non_constant_identifier_names + void GetTrivia() async { + final number = user_number.text; + var url = Uri.parse("http://numberapi.com/$number/trivia?json"); + final response = await http.get(url); + final body = jsonDecode(response.body); + if (body["found"]) { + displaytrivia = body["text"]; + } else { + displaytrivia = "TRIVIA FACT IS NOT FOUND FOR $number"; + } + setState(() { + SystemChannels.textInput.invokeMethod('TextInput.hide'); + border = BoxDecoration( + border: Border( + left: BorderSide( + // <--- left side + color: Colors.redAccent, + width: 3.0, + ), + top: BorderSide( + // <--- top side + color: Colors.pinkAccent, + width: 3.0, + ), + ), + ); + }); + } + + void showsnackbar() { + final snackBar = SnackBar( + backgroundColor: Colors.black, + content: const Text('Copied to clipboard!', + style: TextStyle( + fontSize: 15.0, + color: Colors.white, + )), + action: SnackBarAction( + textColor: Colors.white, + label: 'OK', + onPressed: () { + SystemChannels.textInput.invokeMethod('TextInput.hide'); + }, + ), + ); + + ScaffoldMessenger.of(context).showSnackBar(snackBar); + } + + void reset() { + Navigator.pushAndRemoveUntil( + context, + MaterialPageRoute(builder: (context) => MyTrivia()), + (Route route) => false, + ); + } + + // ignore: non_constant_identifier_names + bool _Valid_Number(String res) { + setState(() { + displaytrivia = ""; + }); + // ignore: unnecessary_null_comparison + if (res == null) { + return false; + } + // ignore: unnecessary_null_comparison + if (num.tryParse(res) != null) { + if (res.contains('.')) { + return false; + } else { + return true; + } + } + return false; + } +} diff --git a/session_3/Solution/trivia_app/lib/main.dart b/session_3/Solution/trivia_app/lib/main.dart new file mode 100644 index 00000000..ead0b0cf --- /dev/null +++ b/session_3/Solution/trivia_app/lib/main.dart @@ -0,0 +1,94 @@ +import 'dart:async'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:trivia_app/home_screen.dart'; + +void main() { + runApp(new MaterialApp( + home: new SplashScreen(), + debugShowCheckedModeBanner: false, + routes: { + '/MyTrivia': (BuildContext context) => new MyTrivia() + }, + )); +} + +class SplashScreen extends StatefulWidget { + @override + _SplashScreenState createState() => new _SplashScreenState(); +} + +class _SplashScreenState extends State { + startTime() async { + var _duration = new Duration(seconds: 5); + return new Timer(_duration, navigationPage); + } + + void navigationPage() { + Navigator.of(context).pushReplacementNamed('/MyTrivia'); + } + + @override + void initState() { + SystemChannels.textInput.invokeMethod('TextInput.hide'); + super.initState(); + startTime(); + } + + @override + Widget build(BuildContext context) { + return new Scaffold( + body: new Center( + child: new Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage("images/main_bg.jpg"), + fit: BoxFit.cover, + ), + ), + child: new Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + new Container( + padding: EdgeInsets.fromLTRB(0, 0, 0, 0), + child: Text("Welcome To Number Trivia Application", + textAlign: TextAlign.center, + style: TextStyle( + fontFamily: "Alice", + fontWeight: FontWeight.w600, + fontSize: 30.0, + color: Colors.white))), + new Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage("images/background.jpg"), + fit: BoxFit.cover, + ), + ), + ), + new Container( + margin: EdgeInsets.only(right: 23.0), + child: new Image.asset( + 'images/logo.png', + width: 600, + height: 500, + ), + ), + new Container( + padding: EdgeInsets.fromLTRB(0, 0, 0, 0), + child: Text("Unimportant Matters", + textAlign: TextAlign.center, + style: TextStyle( + fontFamily: "Sacramento", + fontWeight: FontWeight.w800, + fontSize: 35.0, + color: Colors.white))), + ], + )), + ), + ), + ); + } +} diff --git a/session_3/Solution/trivia_app/pubspec.yaml b/session_3/Solution/trivia_app/pubspec.yaml new file mode 100644 index 00000000..c411b7b5 --- /dev/null +++ b/session_3/Solution/trivia_app/pubspec.yaml @@ -0,0 +1,120 @@ +name: trivia_app +description: A new Flutter project. + +# The following line prevents the package from being accidentally published to +# pub.dev using `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 used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: ">=2.12.0 <3.0.0" + +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 + http: ^0.13.3 + confirm_dialog: ^1.0.0 + flutter_speed_dial: ^4.4.0 + speed_dial_fab: ^2.1.1 + clipboard: ^0.1.3 + +dev_dependencies: + flutter_test: + sdk: flutter + + flutter_launcher_icons: "^0.9.2" + +flutter_icons: + android: "launcher_icon" + ios: true + image_path: "images/icon.png" + +# 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. +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/logo.png + - images/Trivia.png + - images/background.jpg + - images/main_bg.jpg + + # 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: Neonderthaw + fonts: + - asset: fonts/Neonderthaw-Regular.ttf + + - family: LuxuriousRoman + fonts: + - asset: fonts/LuxuriousRoman-Regular.ttf + + - family: Cookie + fonts: + - asset: fonts/Cookie-Regular.ttf + + - family: Sacramento + fonts: + - asset: fonts/Sacramento-Regular.ttf + + - family: Philosopher Bold + fonts: + - asset: fonts/Philosopher-Bold.ttf + + - family: Philosopher BoldItalic + fonts: + - asset: fonts/Philosopher-BoldItalic.ttf + + - family: Philosopher Italic + fonts: + - asset: fonts/Philosopher-Italic.ttf + + - family: Philosopher + fonts: + - asset: fonts/Philosopher-Regular.ttf + + - family: Alice + fonts: + - asset: fonts/Alice-Regular.ttf + + - family: YesevaOne + fonts: + - asset: fonts/YesevaOne-Regular.ttf + + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/session_3/Solution/trivia_app/web/favicon.png b/session_3/Solution/trivia_app/web/favicon.png new file mode 100644 index 00000000..8aaa46ac Binary files /dev/null and b/session_3/Solution/trivia_app/web/favicon.png differ diff --git a/session_3/Solution/trivia_app/web/icons/Icon-192.png b/session_3/Solution/trivia_app/web/icons/Icon-192.png new file mode 100644 index 00000000..b749bfef Binary files /dev/null and b/session_3/Solution/trivia_app/web/icons/Icon-192.png differ diff --git a/session_3/Solution/trivia_app/web/icons/Icon-512.png b/session_3/Solution/trivia_app/web/icons/Icon-512.png new file mode 100644 index 00000000..88cfd48d Binary files /dev/null and b/session_3/Solution/trivia_app/web/icons/Icon-512.png differ diff --git a/session_3/Solution/trivia_app/web/index.html b/session_3/Solution/trivia_app/web/index.html new file mode 100644 index 00000000..83cb8f1f --- /dev/null +++ b/session_3/Solution/trivia_app/web/index.html @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + trivia_app + + + + + + + diff --git a/session_3/Solution/trivia_app/web/manifest.json b/session_3/Solution/trivia_app/web/manifest.json new file mode 100644 index 00000000..cb4407eb --- /dev/null +++ b/session_3/Solution/trivia_app/web/manifest.json @@ -0,0 +1,23 @@ +{ + "name": "trivia_app", + "short_name": "trivia_app", + "start_url": ".", + "display": "standalone", + "background_color": "#0175C2", + "theme_color": "#0175C2", + "description": "A new Flutter project.", + "orientation": "portrait-primary", + "prefer_related_applications": false, + "icons": [ + { + "src": "icons/Icon-192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "icons/Icon-512.png", + "sizes": "512x512", + "type": "image/png" + } + ] +}