diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies
index 17d9de068a3b7d3697a0c051fbdabf4cd5fe2b9d..c4134b3a46b80cc2c7458c02701980ff479f42e1 100644
--- a/.flutter-plugins-dependencies
+++ b/.flutter-plugins-dependencies
@@ -1 +1 @@
-{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"path_provider","dependencies":[]}]}
\ No newline at end of file
+{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"google_maps_flutter","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"image_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"location","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos"]},{"name":"path_provider_macos","dependencies":[]},{"name":"share","dependencies":[]},{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]},{"name":"sqflite","dependencies":[]}]}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 5864c705ed88d200dd8a7719d5baf08f32d33826..a1b47e53bf30b0552bf6204186dc275a0899c63b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -287,3 +287,7 @@ modules.xml
.venv/
# End of https://www.gitignore.io/api/linux,django,python,pycharm+all
+
+tests.output
+
+.flutter-plugins-dependencies
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4cfb91bf51135db32fff7416340c2118cf1f6e5a..fbd6615a2ec21b9bd6fb852fee1d523ee96c427d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,26 +1,46 @@
stages:
+ - lint
- test
+ - sonarqube
- deploy
- - show
variables:
APP_NAME: "bisaGo"
+before_script:
+ - export PATH=$PATH:/sdk/android-sdk-linux/platform-tools/
+ - echo flutter.sdk=/sdk/flutter > android/local.properties
+ - flutter pub get
+
+image: michael09/flutter:28-1.12.13_hotfix.9
+
+Lint:
+ stage: lint
+ script:
+ - flutter analyze
+
Test:
stage: test
- image: jro7/flutter_lcov
script:
- - echo Testing $APP_NAME
- - flutter doctor -v
- flutter test --coverage
+ - flutter test --machine > tests.output
- lcov --summary coverage/lcov.info
- genhtml coverage/lcov.info --output=coverage
- coverage: '/lines......: \d+\.\d+\%/'
artifacts:
- name: mobile-coverage
+ expire_in: 1 hour
paths:
- - $CI_PROJECT_DIR/coverage
+ - coverage/lcov.info
+ - tests.output
+Sonarqube:
+ dependencies:
+ - Test
+ stage: sonarqube
+ before_script:
+ - export PATH=$PATH:/sdk/flutter/bin/cache/dart-sdk/bin
+ - flutter pub get
+ script:
+ - sonar-scanner -Dsonar.login=$SONARQUBE_TOKEN -Dsonar.branch.name=$CI_COMMIT_REF_NAME -Dsonar.projectKey=$SONARQUBE_PROJECT_KEY -X
DeployToProduction:
@@ -61,7 +81,7 @@ DeployToStaging:
refs:
- staging
before_script:
- - wget --quiet --output-document=flutter.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.7-stable.tar.xz && tar xf flutter.tar.xz -C /
+ - wget --quiet --output-document=flutter.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.8-stable.tar.xz && tar xf flutter.tar.xz -C /
- export PATH=$PATH:/flutter/bin
- apt-get update && apt-get install gnupg -y
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y nodejs
@@ -87,7 +107,7 @@ DeployToDevelopment:
refs:
- /^US-.*$/
before_script:
- - wget --quiet --output-document=flutter.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.7-stable.tar.xz && tar xf flutter.tar.xz -C /
+ - wget --quiet --output-document=flutter.tar.xz https://storage.googleapis.com/flutter_infra/releases/stable/linux/flutter_linux_v1.12.13+hotfix.8-stable.tar.xz && tar xf flutter.tar.xz -C /
- export PATH=$PATH:/flutter/bin
- apt-get update && apt-get install gnupg -y
- curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y nodejs
@@ -100,18 +120,4 @@ DeployToDevelopment:
- appcenter login --token=$APPCENTER_API_TOKEN
- appcenter distribute release -f build/app/outputs/apk/release/app-release.apk --app $APPCENTER_APP_NAME_DEV --group $APPCENTER_GROUP_TARGET
environment:
- name: development
-
-
-
-ShowCoverage:
- image: alpine
- stage: show
- dependencies:
- - Test
- script:
- - mkdir -p mobile-coverage/
- - mv coverage/* mobile-coverage/
- artifacts:
- paths:
- - $CI_PROJECT_DIR/mobile-coverage/
\ No newline at end of file
+ name: development
\ No newline at end of file
diff --git a/README.md b/README.md
index fffd55cee840908d0f2468a8de31c2ab9062393b..3d8e061da9a275b2ed93782d2258f4f94d6341e7 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,66 @@
-# PPLapangan Tembak & PoiPoLe - DTB Layanan Siswa Disabilitas (Front End)
+# PPLapangan Tembak & PoiPoLe - DTB Layanan Siswa Disabilitas (Front End) - bisaGo
Code Coverage
--------------
-[](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/dtb-beasiswa-miskin-dan-disabilitas/pplapangan-tembak-dtb-layanan-siswa-disabilitas/commits/staging)
+[](https://gitlab.cs.ui.ac.id/ppl-fasilkom-ui/2020/ppl-c/dtb-beasiswa-miskin-dan-disabilitas/pplapangan-tembak-dtb-layanan-siswa-disabilitas/commits/staging)
+>bisaGo is a mobile application made with Flutter and Django REST API to gather information from users about disability friendly facilities.
+## Developers
+
+PPLapanganTembak
+1. [Adzkia Aisyah Afrah Hardian](https://gitlab.cs.ui.ac.id/adzkia.aisyah)
+2. [Agnes Handoko](https://gitlab.cs.ui.ac.id/agneshandoko)
+3. [Fakhira Devina](https://gitlab.cs.ui.ac.id/hiradevina)
+4. [Faza Siti Sabira Prakoso](https://gitlab.cs.ui.ac.id/fazasabirappl)
+5. [Firriyal bin Yahya](https://gitlab.cs.ui.ac.id/feriyalbinyahya)
+
+PoiPoLeGan
+1. [Bimo Iman Smartadi](https://gitlab.cs.ui.ac.id/bimo.iman)
+2. [Bayukanta Iqbal Gunawan](https://gitlab.cs.ui.ac.id/Bayukanta)
+3. [Dzaky Noor Hasyim](https://gitlab.cs.ui.ac.id/NoorHasyim)
+4. [Muhammad Abdurrahman](https://gitlab.cs.ui.ac.id/muhammad.abdurrahman71)
+5. [Usman Sidiq](https://gitlab.cs.ui.ac.id/usman.sidiq71)
+
+
+
+## Table of Content
+
+* Install
+* Running Development Mode
+
+## Install
+The front end side uses Flutter, for installing please head to the [official documentation of Flutter](https://flutter.dev/docs/get-started/install)
+
+Make sure you already installed everything to work with Flutter with command:
+```bash
+flutter doctor -v
+```
+
+Install all the package dependencies in `pubspec.yaml`
+```bash
+flutter pub get
+```
+Get your [Maps API Key](https://developers.google.com/maps/documentation/android-sdk/get-api-key) and put the key on `android/local.properties`
+```bash
+MAPS_API_KEY=Bu***************
+```
+
+## Running Development Mode
+Run the app using the development flavor
+```bash
+flutter run -t lib/main_dev.dart
+```
+## Building Models with JsonSerializable
+Jadi abis get dari API, jsonnya di map ke models biar rapih.
+1. Tulis ada field apa aja dari jsonnya (bisa liat contoh yang di models/lokasi.dart)
+2. bagian 'part of {nama models}.g.dart' itu harus ditulis di model yg mau dibuat. di awal emang merah, tapi biarin aja
+3. kalo semua field udah di tulis, run
+```bash
+flutter pub run build_runner build
+```
+4. nanti akan ke build file {nama models}.g.dart, yang di nomor 2 merah harusnya udah gak merah lagi
+
+## Passing Data with BLoC
+Udah ada contohnya di /bloc (implementasi di screen nya ada di page/pencarian/pencarian.dart)
+Bisa baca [disini](https://itnext.io/flutter-handling-your-network-api-calls-like-a-boss-936eef296547) sebagai panduannya
\ No newline at end of file
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..5246b3eccb66a25b9f81e3d3f65636a86a444e8e
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,5 @@
+include: package:pedantic/analysis_options.yaml
+
+analyzer:
+ exclude:
+ - "**/*.g.dart"
\ No newline at end of file
diff --git a/android/.settings/org.eclipse.buildship.core.prefs b/android/.settings/org.eclipse.buildship.core.prefs
index e8895216fd3c0c3af4c4522334775f41b7deb42e..7ce47463d1b3c98baee08f1b6cd5b5fe5c375ddc 100644
--- a/android/.settings/org.eclipse.buildship.core.prefs
+++ b/android/.settings/org.eclipse.buildship.core.prefs
@@ -1,2 +1,13 @@
+arguments=
+auto.sync=false
+build.scans.enabled=false
+connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
+gradle.user.home=
+java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home
+jvm.arguments=
+offline.mode=false
+override.workspace.settings=true
+show.console.view=true
+show.executions.view=true
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 3429514798da079f2d4097ca77bbe6274d7e1931..191a87db47db43b4c6e8ddf24d24a53afb03aa97 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -21,9 +21,13 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
+def localPropertyApiToken = localProperties.getProperty("MAPS_API_KEY")
+def systemEnvApiToken = System.getenv('MAPS_API_KEY')
+
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
+def MAPS_API_KEY = localPropertyApiToken != null ? localPropertyApiToken : systemEnvApiToken
android {
compileSdkVersion 28
@@ -44,12 +48,13 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ manifestPlaceholders = [MAPS_API_KEY: MAPS_API_KEY]
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
- // Signing with the debug keys for now, so `flutter run --release` works.
+ // Signing with the debug keys for now, so flutter run --release works.
signingConfig signingConfigs.debug
}
}
@@ -64,4 +69,4 @@ dependencies {
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
-}
+}
\ No newline at end of file
diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml
index 38838990d69858f983edbee6e8acf5a32c10ef0a..eac51190b63296f719b720b468a0f4f39846afba 100644
--- a/android/app/src/debug/AndroidManifest.xml
+++ b/android/app/src/debug/AndroidManifest.xml
@@ -4,4 +4,5 @@
to allow setting breakpoints, to provide hot reload, etc.
-->
+
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index 4b8980cbbfc8130d30a97caab2d260e5ae7ce461..6782f488f66280a2a535ddcd63842c11e2fdde0b 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -8,7 +8,7 @@
+ android:icon="@mipmap/launcher_icon">
+
diff --git a/android/app/src/main/res/mipmap-hdpi/launcher_icon.png b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..77d7fa183cfe94bec5e53f3f8f634ff1ef422884
Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/launcher_icon.png b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..c83fa7614bc85964ca364e966dda34f61fa97248
Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..a31c0801ba39b64f67346a05c88aee3681541bb3
Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..efec05dd687ab7ebc29c34da5270650ca42d2812
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/launcher_icon.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..214f1299f3e68381d9db562d339fd6648d8f7892
Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/launcher_icon.png differ
diff --git a/android/build.gradle b/android/build.gradle
index 3100ad2d55532e58ed44b53dd3c2a04c5bcaf160..6f110de1f2998db83a12f1904667881a7f470604 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -8,6 +8,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ classpath 'com.google.gms:google-services:4.2.0'
}
}
@@ -17,7 +18,6 @@ allprojects {
jcenter()
}
}
-
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
@@ -28,4 +28,4 @@ subprojects {
task clean(type: Delete) {
delete rootProject.buildDir
-}
+}
\ No newline at end of file
diff --git a/android/gradle.properties b/android/gradle.properties
index 38c8d4544ff1c4419409796aa6c1caee2c262ff7..28276e2ce4a982395bef4f2ee1878f64cc6f0f42 100644
--- a/android/gradle.properties
+++ b/android/gradle.properties
@@ -2,3 +2,6 @@ org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
+android.enableJetifier=true
+android.useAndroidX=true
+org.gradle.jvmargs=-Xmx1536M
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index 296b146b7318dd58663296dbb7555df9ff328ec2..63ab3ae08f9e4c3ddbbac64e0c3aadee390f7c22 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
diff --git a/android/settings_aar.gradle b/android/settings_aar.gradle
new file mode 100644
index 0000000000000000000000000000000000000000..e7b4def49cb53d9aa04228dd3edb14c9e635e003
--- /dev/null
+++ b/android/settings_aar.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/assets/icon/2x/current_loc.png b/assets/icon/2x/current_loc.png
new file mode 100644
index 0000000000000000000000000000000000000000..1c55a3058fc5c1429bac6949380435d055b2c689
Binary files /dev/null and b/assets/icon/2x/current_loc.png differ
diff --git a/assets/icon/2x/icon_launcher.png b/assets/icon/2x/icon_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..2c188192f166ed99579ec79c664074e12fd25e99
Binary files /dev/null and b/assets/icon/2x/icon_launcher.png differ
diff --git a/assets/icon/3x/current_loc.png b/assets/icon/3x/current_loc.png
new file mode 100644
index 0000000000000000000000000000000000000000..930d897dceee528d3c2b13135718a712246099f8
Binary files /dev/null and b/assets/icon/3x/current_loc.png differ
diff --git a/assets/icon/3x/icon_launcher.png b/assets/icon/3x/icon_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..cf5be9783e1ab2b8561990ea143d0082d4183eb8
Binary files /dev/null and b/assets/icon/3x/icon_launcher.png differ
diff --git a/assets/icon/current_loc.png b/assets/icon/current_loc.png
new file mode 100644
index 0000000000000000000000000000000000000000..08fc2db183a39b330b1526f39c681d9518b67539
Binary files /dev/null and b/assets/icon/current_loc.png differ
diff --git a/assets/icon/icon_launcher.png b/assets/icon/icon_launcher.png
new file mode 100644
index 0000000000000000000000000000000000000000..7c82fa986afdb49514350a6e24dbb1998727f9be
Binary files /dev/null and b/assets/icon/icon_launcher.png differ
diff --git a/assets/icon/loc.png b/assets/icon/loc.png
new file mode 100644
index 0000000000000000000000000000000000000000..a7c8787a3af5b53f89978d11d8af32d2a032697f
Binary files /dev/null and b/assets/icon/loc.png differ
diff --git a/assets/images/disabletoilet.jpg b/assets/images/disabletoilet.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..74ce1ac58fd215c325a41b25404e6b3e05712ea3
Binary files /dev/null and b/assets/images/disabletoilet.jpg differ
diff --git a/assets/images/margocity.jpg b/assets/images/margocity.jpg
new file mode 100644
index 0000000000000000000000000000000000000000..af9bc7e0b559cb8d63d8a12e60cd03b01783e315
Binary files /dev/null and b/assets/images/margocity.jpg differ
diff --git a/assets/logo/google.png b/assets/logo/google.png
new file mode 100644
index 0000000000000000000000000000000000000000..2ef869d64c542bfa652312d35e2fea1757456558
Binary files /dev/null and b/assets/logo/google.png differ
diff --git a/assets/logo/google.svg b/assets/logo/google.svg
new file mode 100644
index 0000000000000000000000000000000000000000..7f1d5e497be41367280aece388d69ab4c999aab1
--- /dev/null
+++ b/assets/logo/google.svg
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+]>
+
diff --git a/ios/Flutter/Debug.xcconfig b/ios/Flutter/Debug.xcconfig
index 592ceee85b89bd111b779db6116b130509ab6d4b..e8efba114687be7d0e4e5d026a31f5efd04d20bf 100644
--- a/ios/Flutter/Debug.xcconfig
+++ b/ios/Flutter/Debug.xcconfig
@@ -1 +1,2 @@
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
diff --git a/ios/Flutter/Release.xcconfig b/ios/Flutter/Release.xcconfig
index 592ceee85b89bd111b779db6116b130509ab6d4b..399e9340e6f617f68676161ad4a64edcbe483115 100644
--- a/ios/Flutter/Release.xcconfig
+++ b/ios/Flutter/Release.xcconfig
@@ -1 +1,2 @@
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
diff --git a/ios/Podfile b/ios/Podfile
new file mode 100644
index 0000000000000000000000000000000000000000..b30a428b5e77ede0fd1d2cb7009f930e42d8def1
--- /dev/null
+++ b/ios/Podfile
@@ -0,0 +1,90 @@
+# Uncomment this line to define a global platform for your project
+# platform :ios, '9.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 parse_KV_file(file, separator='=')
+ file_abs_path = File.expand_path(file)
+ if !File.exists? file_abs_path
+ return [];
+ end
+ generated_key_values = {}
+ skip_line_start_symbols = ["#", "/"]
+ File.foreach(file_abs_path) do |line|
+ next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
+ plugin = line.split(pattern=separator)
+ if plugin.length == 2
+ podname = plugin[0].strip()
+ path = plugin[1].strip()
+ podpath = File.expand_path("#{path}", file_abs_path)
+ generated_key_values[podname] = podpath
+ else
+ puts "Invalid plugin specification: #{line}"
+ end
+ end
+ generated_key_values
+end
+
+target 'Runner' do
+ use_frameworks!
+ use_modular_headers!
+
+ # Flutter Pod
+
+ copied_flutter_dir = File.join(__dir__, 'Flutter')
+ copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
+ copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
+ unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
+ # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
+ # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
+ # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
+
+ generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
+ unless File.exist?(generated_xcode_build_settings_path)
+ raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
+ end
+ generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
+ cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
+
+ unless File.exist?(copied_framework_path)
+ FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
+ end
+ unless File.exist?(copied_podspec_path)
+ FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
+ end
+ end
+
+ # Keep pod path relative so it can be checked into Podfile.lock.
+ pod 'Flutter', :path => 'Flutter'
+
+ # Plugin Pods
+
+ # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
+ # referring to absolute paths on developers' machines.
+ system('rm -rf .symlinks')
+ system('mkdir -p .symlinks/plugins')
+ plugin_pods = parse_KV_file('../.flutter-plugins')
+ plugin_pods.each do |name, path|
+ symlink = File.join('.symlinks', 'plugins', name)
+ File.symlink(path, symlink)
+ pod name, :path => File.join(symlink, 'ios')
+ end
+end
+
+# Prevent Cocoapods from embedding a second Flutter framework and causing an error with the new Xcode build system.
+install! 'cocoapods', :disable_input_output_paths => true
+
+post_install do |installer|
+ installer.pods_project.targets.each do |target|
+ target.build_configurations.each do |config|
+ config.build_settings['ENABLE_BITCODE'] = 'NO'
+ end
+ end
+end
diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj
index b0b73cb408abdca327f4490f43bcaa3d8985e9d7..e6fbe067943bc4bdfa163df12b63f83ad2c499ee 100644
--- a/ios/Runner.xcodeproj/project.pbxproj
+++ b/ios/Runner.xcodeproj/project.pbxproj
@@ -17,6 +17,7 @@
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 */; };
+ A713680F956827CC800E5882 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 608DBD9F25B5A1E158194D12 /* Pods_Runner.framework */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -37,11 +38,14 @@
/* 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 = ""; };
+ 27B4326A6F124C13099D180A /* 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 = ""; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; };
+ 608DBD9F25B5A1E158194D12 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
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 = ""; };
+ 94561A220A1B4EFA7831E0FC /* 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 = ""; };
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 = ""; };
9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; };
@@ -50,6 +54,7 @@
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 = ""; };
+ F7D6823AE5698B88142C285E /* 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 = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -59,12 +64,24 @@
files = (
9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
+ A713680F956827CC800E5882 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
+ 829932E47EADAEFD209551C7 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 94561A220A1B4EFA7831E0FC /* Pods-Runner.debug.xcconfig */,
+ F7D6823AE5698B88142C285E /* Pods-Runner.release.xcconfig */,
+ 27B4326A6F124C13099D180A /* Pods-Runner.profile.xcconfig */,
+ );
+ name = Pods;
+ path = Pods;
+ sourceTree = "";
+ };
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
@@ -84,6 +101,8 @@
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
+ 829932E47EADAEFD209551C7 /* Pods */,
+ F0491B426155A7C9E1ADB1A7 /* Frameworks */,
);
sourceTree = "";
};
@@ -118,6 +137,14 @@
name = "Supporting Files";
sourceTree = "";
};
+ F0491B426155A7C9E1ADB1A7 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 608DBD9F25B5A1E158194D12 /* Pods_Runner.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -125,12 +152,15 @@
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
+ 45875E25277A3BB7443A1483 /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+ A6A877344DE185CEA8904842 /* [CP] Embed Pods Frameworks */,
+ 17BFDE4BCED4D29A440D5CB6 /* [CP] Copy Pods Resources */,
);
buildRules = (
);
@@ -189,6 +219,21 @@
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
+ 17BFDE4BCED4D29A440D5CB6 /* [CP] Copy Pods Resources */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "[CP] Copy Pods Resources";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -203,6 +248,28 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
};
+ 45875E25277A3BB7443A1483 /* [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;
+ };
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -217,6 +284,21 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
+ A6A877344DE185CEA8904842 /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
diff --git a/ios/Runner.xcworkspace/contents.xcworkspacedata b/ios/Runner.xcworkspace/contents.xcworkspacedata
index 1d526a16ed0f1cd0c2409d848bf489b93fefa3b2..21a3cc14c74e969ab1548274a8512ebfecc40f78 100644
--- a/ios/Runner.xcworkspace/contents.xcworkspacedata
+++ b/ios/Runner.xcworkspace/contents.xcworkspacedata
@@ -4,4 +4,7 @@
+
+
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
index dc9ada4725e9b0ddb1deab583e5b5102493aa332..300ae2f80ad2814cc466704e147c06059e78e345 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
index 28c6bf03016f6c994b70f38d1b7346e5831b531f..ada4b7fe4d79380d3e1dae5a73fc2fee19c833a7 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
index 2ccbfd967d9697cd4b83225558af2911e9571c9b..8eea4dd22c0f64e7e2e729c1bf4429e382c01287 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
index f091b6b0bca859a3f474b03065bef75ba58a9e4c..9d8723cce631060e3706563d92eed7a599334f5e 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
index 4cde12118dda48d71e01fcb589a74d069c5d7cb5..1eacd7844cd572c44122b00b633ff674b09f3ced 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
index d0ef06e7edb86cdfe0d15b4b0d98334a86163658..d7c6ebbeb3447d068bc1740d810dc31400202935 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
index dcdc2306c28505ebc0b6c3a359c4d252bf626b9f..11656b43ffd81643db2f44232753f5734558448c 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
index 2ccbfd967d9697cd4b83225558af2911e9571c9b..8eea4dd22c0f64e7e2e729c1bf4429e382c01287 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
index c8f9ed8f5cee1c98386d13b17e89f719e83555b2..b23aabf9ee96e2e82b91c7cd3b8af95e39079d59 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
index a6d6b8609df07bf62e5100a53a01510388bd2b22..7bb01ba0916c018d6b493da8b33167bed53a08b1 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
new file mode 100644
index 0000000000000000000000000000000000000000..2dbb06f0c78bc1d593744c560c79a902218b7ab5
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
new file mode 100644
index 0000000000000000000000000000000000000000..a2cc47629e4fc439af429f37995d8fa3785f3ece
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
new file mode 100644
index 0000000000000000000000000000000000000000..e292b43465108f58c1c77f37bd77be4967009a33
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
new file mode 100644
index 0000000000000000000000000000000000000000..d877aba55fc7f9500f2377807f4b55dee73974d3
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
index a6d6b8609df07bf62e5100a53a01510388bd2b22..7bb01ba0916c018d6b493da8b33167bed53a08b1 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
index 75b2d164a5a98e212cca15ea7bf2ab5de5108680..e35743855f7dd22f7aba64ae49f5fd72bb0e7c45 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
new file mode 100644
index 0000000000000000000000000000000000000000..77d7fa183cfe94bec5e53f3f8f634ff1ef422884
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
new file mode 100644
index 0000000000000000000000000000000000000000..efec05dd687ab7ebc29c34da5270650ca42d2812
Binary files /dev/null and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
index c4df70d39da7941ef3f6dcb7f06a192d8dcb308d..4dbd42d651705769af62603611dfccc3b46cb768 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
index 6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac..837710082fe7d5b9a57fbcfe87c56b999a8893a3 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
diff --git a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
index d0e1f58536026aebc4f1f70e481f6993c9ff088d..d67bc9485fe151a679841955dc61a110f4f37e0d 100644
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index a59339f96fd8e242ff675f7614e9e0694560cf00..cabde0c6aab2c1ee612e96a4065549e071e9235f 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -41,5 +41,12 @@
UIViewControllerBasedStatusBarAppearance
+
+ NSPhotoLibraryUsageDescription
+ Need to upload image
+ NSCameraUsageDescription
+ Need to upload image
+ NSMicrophoneUsageDescription
+ Need to upload image
diff --git a/lib/app.dart b/lib/app.dart
new file mode 100644
index 0000000000000000000000000000000000000000..8cad8a1b11de7af4dda03c2d73420a241d262d5c
--- /dev/null
+++ b/lib/app.dart
@@ -0,0 +1,17 @@
+import 'package:flutter/material.dart';
+import 'package:ppl_disabilitas/page/dashboard/dashboard.dart';
+
+class BisaGo extends StatelessWidget {
+ @override
+ Widget build(BuildContext context) {
+ return MaterialApp(
+ title: 'bisaGo',
+ theme: ThemeData(
+ fontFamily: 'Muli',
+ backgroundColor: Colors.white,
+ ),
+ home: Dashboard(),
+
+ );
+ }
+}
diff --git a/lib/bloc/KomentarBloc.dart b/lib/bloc/KomentarBloc.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0e98647f7509444ebde5124847ed5dc1221590d5
--- /dev/null
+++ b/lib/bloc/KomentarBloc.dart
@@ -0,0 +1,73 @@
+import 'dart:async';
+
+import 'package:ppl_disabilitas/model/komentar.dart';
+import 'package:ppl_disabilitas/network/data/network_model.dart';
+import 'package:ppl_disabilitas/repository/KomentarRepository.dart';
+
+class KomentarBloc {
+ KomentarRepository _komentarRepository;
+ StreamController _komentarListController;
+ List allKomentarFromApi;
+
+ StreamSink> get komentarListSink =>
+ _komentarListController.sink;
+ Stream> get komentarListStream =>
+ _komentarListController.stream;
+
+ KomentarBloc(String namaLokasi) {
+ _komentarListController = StreamController>();
+ _komentarRepository = KomentarRepository();
+ fetchKomentarList(namaLokasi);
+ }
+
+ fetchKomentarList(String namaLokasi) async {
+ komentarListSink.add(NetworkModel.loading('Getting Komentar'));
+ try {
+ KomentarList komentarListResponse =
+ await _komentarRepository.fetchKomentar(namaLokasi);
+ allKomentarFromApi = List.from(komentarListResponse.allKomentar);
+
+ komentarListSink.add(NetworkModel.completed(komentarListResponse));
+ } catch (e) {
+ komentarListSink.add(NetworkModel.error(e.toString()));
+ print("$e");
+ }
+ }
+
+ filterKomentarList(String tag, bool value, List currentList) {
+ if (value) {
+ for (var komentar in allKomentarFromApi) {
+ if (komentar.tag.contains(tag)) {
+ currentList.add(komentar);
+ }
+ }
+ } else {
+ currentList.removeWhere((komentar) => komentar.tag.contains(tag));
+ }
+ komentarListSink.add(NetworkModel.completed(KomentarList(currentList)));
+ }
+
+ sortKomentarList(int option, List currentList) {
+ if (option == 0) {
+ currentList.sort((next_komentar, prev_komentar) =>
+ prev_komentar.date_time.compareTo(next_komentar.date_time));
+ } else if (option == 1) {
+ currentList.sort((next_komentar, prev_komentar) =>
+ (prev_komentar.like + prev_komentar.dislike)
+ .compareTo(next_komentar.like + next_komentar.dislike));
+ } else if (option == 2) {
+ currentList.sort((next_komentar, prev_komentar) =>
+ prev_komentar.like.compareTo(next_komentar.like));
+ }
+ komentarListSink.add(NetworkModel.completed(KomentarList(currentList)));
+ }
+
+ resetKomentarList() {
+ komentarListSink
+ .add(NetworkModel.completed(KomentarList(allKomentarFromApi)));
+ }
+
+ dispose() {
+ _komentarListController?.close();
+ }
+}
diff --git a/lib/bloc/KomentarPostingBloc.dart b/lib/bloc/KomentarPostingBloc.dart
new file mode 100644
index 0000000000000000000000000000000000000000..c909cfbcf1bd89f578f555e67e740bc88a38d57b
--- /dev/null
+++ b/lib/bloc/KomentarPostingBloc.dart
@@ -0,0 +1,54 @@
+import 'dart:async';
+import 'package:ppl_disabilitas/model/komentarPosting.dart';
+import 'package:ppl_disabilitas/network/data/network_model.dart';
+import 'package:ppl_disabilitas/repository/KomentarPostingRepository.dart';
+
+class KomentarPostingBloc {
+ KomentarPostingRepository _komentarPostingRepository;
+ StreamController _komentarPostingListController;
+ List allKomentarPositngFromApi;
+
+ StreamSink> get komentarPostingListSink =>
+ _komentarPostingListController.sink;
+ Stream> get komentarPostingListStream =>
+ _komentarPostingListController.stream;
+
+
+
+ KomentarPostingBloc(String namaLokasi, int id) {
+ _komentarPostingListController = StreamController>();
+ _komentarPostingRepository = KomentarPostingRepository();
+ fetchKomentarPostingList(namaLokasi,id);
+ }
+
+ fetchKomentarPostingList(String namaLokasi,int id) async {
+ komentarPostingListSink.add(NetworkModel.loading('Getting Komentar'));
+ try {
+ KomentarPostingList komentarPostingListResponse =
+ await _komentarPostingRepository.fetchKomentarPosting(namaLokasi,id);
+ allKomentarPositngFromApi = List.from(komentarPostingListResponse.allKomentar);
+
+ komentarPostingListSink.add(NetworkModel.completed(komentarPostingListResponse));
+ } catch (e) {
+ komentarPostingListSink.add(NetworkModel.error(e.toString()));
+ print("$e");
+ }
+ }
+
+ addKomentarPost(String namaLokasi, int id, Map data) async {
+ // var response = _komentarPostingRepository.addKomentarPosting(namaLokasi, id, data);
+ // if(response.data['response'] == 'komentar added'){
+ // return true;
+ // }
+ // return false;
+ }
+
+ resetKomentarPostingList() {
+ komentarPostingListSink
+ .add(NetworkModel.completed(KomentarPostingList(allKomentarPositngFromApi)));
+ }
+
+ dispose() {
+ _komentarPostingListController?.close();
+ }
+}
diff --git a/lib/bloc/LokasiResponseBloc.dart b/lib/bloc/LokasiResponseBloc.dart
new file mode 100644
index 0000000000000000000000000000000000000000..401a8a05d2ce032e86ec7e3908de9a52de44f005
--- /dev/null
+++ b/lib/bloc/LokasiResponseBloc.dart
@@ -0,0 +1,60 @@
+import 'dart:async';
+
+import 'package:ppl_disabilitas/model/lokasi.dart';
+import 'package:ppl_disabilitas/network/data/network_model.dart';
+import 'package:ppl_disabilitas/repository/LokasiRepository.dart';
+
+class LokasiResponseBloc {
+ StreamController _recentSearchController;
+ LokasiRepository _lokasiRepository;
+ StreamController _lokasiListController;
+
+ StreamSink> get recentSearchSink =>
+ _recentSearchController.sink;
+ Stream> get recentSearchStream =>
+ _recentSearchController.stream;
+
+ StreamSink> get lokasiListSink =>
+ _lokasiListController.sink;
+ Stream> get lokasiListStream =>
+ _lokasiListController.stream;
+
+ LokasiResponseBloc() {
+ _lokasiListController =
+ StreamController>();
+ _recentSearchController = StreamController>();
+ _lokasiRepository = LokasiRepository();
+ fetchLokasiList();
+ fetchRecentSearch();
+ }
+
+ fetchLokasiList() async {
+ lokasiListSink.add(NetworkModel.loading('Getting Locations'));
+ try {
+ final lokasiListResponse =
+ await _lokasiRepository.fetchLokasi();
+ lokasiListSink.add(NetworkModel.completed(lokasiListResponse));
+ } catch (e) {
+ lokasiListSink.add(NetworkModel.error(e.toString()));
+ }
+ }
+
+ fetchRecentSearch() async {
+ recentSearchSink.add(NetworkModel.loading('Getting Recent Search'));
+ try {
+ final recentSearchData = await _lokasiRepository.fetchRecentSearch();
+ recentSearchSink.add(NetworkModel.completed(recentSearchData));
+ } catch (e) {
+ recentSearchSink.add(NetworkModel.error(e.toString()));
+ }
+ }
+
+ saveRecentSearch(Lokasi search) async {
+ await _lokasiRepository.saveRecentSearch(search);
+ }
+
+ dispose() {
+ _recentSearchController?.close();
+ _lokasiListController?.close();
+ }
+}
diff --git a/lib/bloc/SekolahBloc.dart b/lib/bloc/SekolahBloc.dart
new file mode 100644
index 0000000000000000000000000000000000000000..423a78f4c44f92652ce7bee0d2e83012854bd2d1
--- /dev/null
+++ b/lib/bloc/SekolahBloc.dart
@@ -0,0 +1,83 @@
+import 'dart:async';
+
+import 'package:ppl_disabilitas/model/sekolah.dart';
+import 'package:ppl_disabilitas/network/data/network_model.dart';
+import 'package:ppl_disabilitas/repository/SekolahRepository.dart';
+
+class SekolahBloc {
+ SekolahRepository _sekolahRepository;
+ StreamController _sekolahListController;
+ List allSekolahFromApi;
+
+ StreamSink> get sekolahListSink =>
+ _sekolahListController.sink;
+ Stream> get sekolahListStream =>
+ _sekolahListController.stream;
+
+ SekolahBloc() {
+ _sekolahListController = StreamController>();
+ _sekolahRepository = SekolahRepository();
+ fetchSekolahList();
+ }
+
+ fetchSekolahList() async {
+ sekolahListSink.add(NetworkModel.loading('Getting Sekolah'));
+ try {
+ SekolahList sekolahListResponse = await _sekolahRepository.fetchSekolah();
+ allSekolahFromApi = List.from(sekolahListResponse.allSekolah);
+ sekolahListSink.add(NetworkModel.completed(sekolahListResponse));
+ } catch (e) {
+ sekolahListSink.add(NetworkModel.error(e.toString()));
+ print("$e");
+ }
+ }
+
+ filterbyKecamatan(
+ String kecamatan, bool value, List currentList) {
+ if (value) {
+ for (var sekolah in allSekolahFromApi) {
+ if (sekolah.alamat.toLowerCase().contains(kecamatan.toLowerCase())) {
+ currentList.add(sekolah);
+ }
+ }
+ } else {
+ currentList.removeWhere((sekolah) =>
+ sekolah.alamat.toLowerCase().contains(kecamatan.toLowerCase()));
+ }
+ sekolahListSink.add(NetworkModel.completed(SekolahList(currentList)));
+ }
+
+ filterbyKategoriSekolah(
+ String kategori, bool val, List currentList) {
+ if (val) {
+ for (var sekolah in allSekolahFromApi) {
+ if (sekolah.jenis_sekolah.contains(kategori)) {
+ currentList.add(sekolah);
+ }
+ }
+ } else {
+ currentList.removeWhere((sekolah) =>
+ sekolah.jenis_sekolah.contains(kategori));
+ }
+ sekolahListSink.add(NetworkModel.completed(SekolahList(currentList)));
+ }
+
+ filterbyTingkatSekolah(
+ String tingkatSekolah, bool val, List currentList) {
+ if (val) {
+ for (var sekolah in allSekolahFromApi) {
+ if (sekolah.name.toLowerCase().startsWith(tingkatSekolah.toLowerCase())) {
+ currentList.add(sekolah);
+ }
+ }
+ } else {
+ currentList.removeWhere((sekolah) =>
+ sekolah.name.toLowerCase().startsWith(tingkatSekolah.toLowerCase()));
+ }
+ sekolahListSink.add(NetworkModel.completed(SekolahList(currentList)));
+ }
+
+ dispose() {
+ _sekolahListController?.close();
+ }
+}
diff --git a/lib/component/ImageHolder.dart b/lib/component/ImageHolder.dart
new file mode 100644
index 0000000000000000000000000000000000000000..ca0dbd0a813e3ed781ee5c1beb6fb5521e65e532
--- /dev/null
+++ b/lib/component/ImageHolder.dart
@@ -0,0 +1,23 @@
+import 'package:cached_network_image/cached_network_image.dart';
+import 'package:flutter/material.dart';
+
+class ImageHolder extends StatelessWidget {
+ final String url;
+ ImageHolder({@required this.url});
+ @override
+ Widget build(BuildContext context) {
+ return CachedNetworkImage(
+ imageUrl: url,
+ imageBuilder: (context, imageProvider) => Container(
+ decoration: BoxDecoration(
+ borderRadius: BorderRadius.circular(20),
+ image: DecorationImage(image: imageProvider, fit: BoxFit.fill)),
+ ),
+ placeholder: (context, _) =>
+ const Center(child: CircularProgressIndicator()),
+ errorWidget: (context, url, error) => Container(
+ child: Center(child: Text('Failed to load images'),),
+ ),
+ );
+ }
+}
diff --git a/lib/component/bisago_appbar.dart b/lib/component/bisago_appbar.dart
new file mode 100644
index 0000000000000000000000000000000000000000..2ad2fcf7ee2cb75bd5f46a80b98a869c2977a00b
--- /dev/null
+++ b/lib/component/bisago_appbar.dart
@@ -0,0 +1,33 @@
+import 'package:flutter/material.dart';
+import 'package:ppl_disabilitas/config/styles.dart';
+
+class BisaGoAppBar extends StatelessWidget implements PreferredSizeWidget {
+ final String title;
+ BisaGoAppBar({this.title = 'bisaGo', Key key}) : super(key: key);
+ @override
+ final Size preferredSize = const Size.fromHeight(55);
+ @override
+ Widget build(BuildContext context) {
+ return AppBar(
+ elevation: 15,
+ centerTitle: true,
+ backgroundColor: greenPrimary,
+ title: Row(
+ mainAxisAlignment: MainAxisAlignment.center,
+ mainAxisSize: MainAxisSize.min,
+ children: [
+ Padding(
+ padding: EdgeInsets.all(doubleSpace),
+ child: Text(
+ title,
+ style: TextStyle(
+ fontSize: 25,
+ fontFamily: 'Comfortaa',
+ fontWeight: FontWeight.w800),
+ ),
+ )
+ ],
+ ),
+ );
+ }
+}
diff --git a/lib/component/bisago_drawer.dart b/lib/component/bisago_drawer.dart
new file mode 100644
index 0000000000000000000000000000000000000000..e46799e21515813befb9d1621e69fe7a78c855e8
--- /dev/null
+++ b/lib/component/bisago_drawer.dart
@@ -0,0 +1,160 @@
+import 'package:flutter/material.dart';
+import 'package:ppl_disabilitas/config/styles.dart';
+import 'package:ppl_disabilitas/page/login/login.dart';
+import 'package:shared_preferences/shared_preferences.dart';
+
+class BisaGoDrawer extends StatelessWidget {
+ final List