├── .ci ├── Dockerfile.x86 └── config.ini ├── .cirrus.yml ├── .gitignore ├── .travis.yml ├── README.md ├── flutter_app ├── .gitignore ├── .metadata ├── README.md ├── android │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── flutterapp │ │ │ │ └── MainActivity.java │ │ │ └── res │ │ │ ├── drawable │ │ │ └── launch_background.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ └── settings.gradle ├── ios │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ └── contents.xcworkspacedata │ └── Runner │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── main.m ├── lib │ └── main.dart ├── pubspec.yaml ├── test │ └── widget_test.dart └── test_driver │ └── main_test.dart └── script └── android-wait-for-emulator.sh /.ci/Dockerfile.x86: -------------------------------------------------------------------------------- 1 | FROM cirrusci/flutter:stable 2 | 3 | ENV EMULATOR_API_LEVEL=28 ABI="default;x86" EMULATOR_NAME='test' 4 | 5 | #RUN sudo apt-get update && \ 6 | # sudo apt-get install -y imagemagick && \ 7 | # sudo rm -rf /var/lib/apt/lists/* 8 | 9 | RUN sdkmanager --update && sdkmanager "system-images;android-$EMULATOR_API_LEVEL;$ABI" 10 | 11 | RUN echo no | avdmanager create avd -n $EMULATOR_NAME -k "system-images;android-$EMULATOR_API_LEVEL;$ABI" 12 | 13 | #ADD .ci/config.ini $HOME/.android/avd/$EMULATOR_NAME.avd/config.ini 14 | -------------------------------------------------------------------------------- /.ci/config.ini: -------------------------------------------------------------------------------- 1 | hw.lcd.width=1440 2 | hw.lcd.height=2560 3 | hw.device.name=Nexus 6P 4 | hw.device.manufacturer=Google 5 | avd.ini.displayname=Nexus 6P API 28 -------------------------------------------------------------------------------- /.cirrus.yml: -------------------------------------------------------------------------------- 1 | # Run android emulator on accelerated intel CPU 2 | # or on emulated ARM CPU. 3 | # Includes test. 4 | 5 | # +-----------+--------------------+--------------------+ 6 | # | API Level | Code Name | Android OS version | 7 | # +-----------+--------------------+--------------------+ 8 | # | 29 | 10 | 10 | 9 | # | 28 | Pie | 9 | 10 | # | 27 | Oreo | 8.1 | 11 | # | 26 | Oreo | (dropped ARM) 8.0 | 12 | # | 25 | Nougat | 7.1 | 13 | # | 24 | Nougat | 7.0 | 14 | # | 23 | Marshmallow | 6.0 | 15 | # | 22 | Lollipop | 5.1 | 16 | # | 21 | Lollipop | 5.0 | 17 | # | 20 | Not released | | 18 | # | 19 | Kitkat | 4.4 | 19 | # | 18 | Jellybean | 4.3 | 20 | # | 17 | Jellybean | 4.2 | 21 | # | 16 | Jellybean | 4.1 | 22 | # | 15 | Ice Cream Sandwich | 4.0 | 23 | # | 14 | Not Released | | 24 | # | 13 | Not Released | | 25 | # | 12 | Not Released | | 26 | # | 11 | Not Released | | 27 | # | 10 | Gingerbread | 2.3 | 28 | # +-----------+--------------------+--------------------+ 29 | # "https://en.wikipedia.org/wiki/Android_(operating_system)#Platform_information" 30 | # Note: Flutter supports down to API 16 31 | 32 | timeout_in: 15m 33 | 34 | # matrix of APIxABIxGOO 35 | # (see "sdkmanager --list --verbose| grep ^system-images" for full list) 36 | task: 37 | matrix: 38 | - name: accel, playstore, 29-25 39 | container: 40 | image: cirrusci/flutter:latest 41 | cpu: 4 42 | memory: 10G 43 | kvm: true 44 | env: 45 | matrix: 46 | - API: 29 47 | - API: 28 48 | - API: 27 49 | - API: 26 50 | - API: 25 51 | matrix: 52 | - ABI: x86_64 53 | - ABI: x86 54 | matrix: 55 | - GOO: default 56 | - GOO: google_apis 57 | - GOO: google_apis_playstore 58 | - name: accel, no playstore, 24-21 59 | container: 60 | image: cirrusci/flutter:latest 61 | cpu: 4 62 | memory: 10G 63 | kvm: true 64 | env: 65 | matrix: 66 | - API: 24 67 | - API: 23 68 | - API: 22 69 | - API: 21 70 | matrix: 71 | - ABI: x86_64 72 | - ABI: x86 73 | matrix: 74 | - GOO: default 75 | - GOO: google_apis 76 | - name: accel, x86, 19-16 77 | container: 78 | image: cirrusci/flutter:latest 79 | cpu: 4 80 | memory: 10G 81 | kvm: true 82 | env: 83 | matrix: 84 | - API: 19 85 | - API: 18 86 | - API: 17 87 | - API: 16 88 | ABI: x86 89 | matrix: 90 | - GOO: default 91 | - GOO: google_apis 92 | - name: no accel, ARM, 25-24 93 | container: 94 | image: cirrusci/flutter:latest 95 | cpu: 4 96 | memory: 10G 97 | env: 98 | matrix: 99 | - API: 25 100 | - API: 24 101 | matrix: 102 | - ABI: armeabi-v7a 103 | - ABI: arm64-v8a 104 | matrix: 105 | - GOO: default 106 | - GOO: google_apis 107 | - name: no accel, ARM, 23-16 108 | container: 109 | image: cirrusci/flutter:latest 110 | cpu: 4 111 | memory: 10G 112 | env: 113 | matrix: 114 | - API: 23 115 | - API: 22 116 | - API: 21 117 | - API: 19 118 | - API: 18 119 | - API: 17 120 | - API: 16 121 | ABI: armeabi-v7a 122 | matrix: 123 | - GOO: default 124 | - GOO: google_apis 125 | # remove unsupported jobs from job matrix 126 | only_if: ($API != "27" || $ABI != "x86_64" || $GOO != "google_apis_playstore") && ($API != "27" || $ABI != "x86_64" || $GOO != "google_apis") && ($API != "26" || $ABI != "x86_64" || $GOO != "google_apis_playstore") && ($API != "25" || $ABI != "x86_64" || $GOO != "google_apis_playstore") && ($API != "24" || $ABI != "x86_64" || $GOO != "google_apis_playstore") && ($API != "24" || $ABI != "x86" || $GOO != "google_apis_playstore") && ($API != "25" || $ABI != "armeabi-v7a" || $GOO != "default") && ($API != "25" || $ABI != "arm64-v8a" || $GOO != "default") 127 | # jobs that are flaky or fail consistently 128 | allow_failures: ($API == "29" && $ABI == "x86_64" && $GOO == "google_apis_playstore") || ($API == "29" && $ABI == "x86" && $GOO == "google_apis_playstore") || ($API == "29" && $ABI == "x86" && $GOO == "google_apis") || ($API == "29" && $ABI == "x86_64" && $GOO == "google_apis") || ($API == "29" && $ABI == "x86_64" && $GOO == "default") || ($API == "29" && $ABI == "x86" && $GOO == "default") || ($API == "28" && $ABI == "x86_64" && $GOO == "google_apis_playstore") || ($API == "28" && $ABI == "x86" && $GOO == "google_apis_playstore") || ($API == "28" && $ABI == "x86" && $GOO == "google_apis") || ($API == "26" && $ABI == "x86" && $GOO == "default") || ($API == "25" && $ABI == "x86" && $GOO == "google_apis_playstore") || ($API == "25" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "25" && $ABI == "arm64-v8a" && $GOO == "google_apis") || ($API == "24" && $ABI == "x86" && $GOO == "google_apis") || ($API == "24" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "24" && $ABI == "arm64-v8a" && $GOO == "google_apis") || ($API == "24" && $ABI == "armeabi-v7a" && $GOO == "default") || ($API == "24" && $ABI == "arm64-v8a" && $GOO == "default") || ($API == "23" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "23" && $ABI == "armeabi-v7a" && $GOO == "default") || ($API == "22" && $ABI == "x86_64" && $GOO == "default") || ($API == "22" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "21" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "19" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "19" && $ABI == "armeabi-v7a" && $GOO == "default") || ($API == "18" && $ABI == "x86" && $GOO == "google_apis") || ($API == "18" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "17" && $ABI == "x86" && $GOO == "google_apis") || ($API == "17" && $ABI == "x86" && $GOO == "default") || ($API == "16" && $ABI == "x86" && $GOO == "google_apis") || ($API == "16" && $ABI == "x86" && $GOO == "default") || ($API == "16" && $ABI == "armeabi-v7a" && $GOO == "google_apis") || ($API == "16" && $ABI == "armeabi-v7a" && $GOO == "default") 129 | fix_kvm_script: 130 | - | 131 | if [[ $ABI =~ "x86" ]]; then 132 | sudo chown cirrus:cirrus /dev/kvm 133 | fi 134 | # set_timezone_script: 135 | # set timezone to avoid emulator warning 136 | # - date 137 | # - echo "US/Pacific" | sudo tee /etc/timezone 138 | # - sudo dpkg-reconfigure --frontend noninteractive tzdata 139 | # - export DEBIAN_FRONTEND=noninteractive 140 | # - sudo ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime 141 | # - sudo apt-get install -y tzdata 142 | # - sudo dpkg-reconfigure --frontend noninteractive tzdata 143 | # - date 144 | 145 | install_emulator_script: 146 | - sdkmanager "system-images;android-$API;$GOO;$ABI" > /dev/null 147 | create_emulator_script: 148 | - echo no | avdmanager --verbose create avd --force -n test -k "system-images;android-$API;$GOO;$ABI" 149 | pin_arm_emulator_script: 150 | - | 151 | if [[ $ABI =~ "arm" ]]; then 152 | # Download a pinned version of the emulator since default version can cause issues 153 | ${ANDROID_HOME}/emulator/emulator -version 154 | emulator_version=5264690 # 29.2.1.0 (build_id 5889189) ==> 28.0.23.0 (build_id 5264690) 155 | # sudo apt-get install -y libunwind8 libc++1 156 | curl -fo emulator.zip "https://dl.google.com/android/repository/emulator-linux-$emulator_version.zip" 157 | rm -rf "${ANDROID_HOME}/emulator" 158 | unzip -q emulator.zip -d "${ANDROID_HOME}" 159 | rm -f emulator.zip 160 | # install build tools and platforms for arm (to allow emulator to run) 161 | sdkmanager "build-tools;25.0.2" "platforms;android-25" > /dev/null 162 | fi 163 | - ${ANDROID_HOME}/emulator/emulator -version 164 | start_emulator_background_script: 165 | - EMU_PARAMS=" 166 | -avd test 167 | -verbose 168 | -no-window 169 | -no-audio 170 | " 171 | - | 172 | EMU_COMMAND=emulator 173 | if [[ $ABI =~ "x86" ]]; then 174 | EMU_COMMAND="emulator-headless" 175 | else 176 | # emulate graphics if running on ARM 177 | EMU_PARAMS="${EMU_PARAMS} -gpu swiftshader" 178 | fi 179 | - ${ANDROID_HOME}/emulator/${EMU_COMMAND} ${EMU_PARAMS} 180 | wait_for_emulator_script: 181 | - ./script/android-wait-for-emulator.sh 182 | doctor_script: flutter doctor -v 183 | test_script: 184 | - export PATH="$PATH":"$HOME/.pub-cache/bin" 185 | - cd flutter_app 186 | - flutter drive lib/main.dart || flutter drive lib/main.dart 187 | pub_cache: 188 | folder: ~/.pub-cache -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # Run android emulator on accelerated intel CPU 2 | # or on emulated ARM CPU. 3 | # Includes test. 4 | 5 | # +-----------+--------------------+--------------------+ 6 | # | API Level | Code Name | Android OS version | 7 | # +-----------+--------------------+--------------------+ 8 | # | 29 | 10 | 10 | 9 | # | 28 | Pie | 9 | 10 | # | 27 | Oreo | 8.1 | 11 | # | 26 | Oreo | (dropped ARM) 8.0 | 12 | # | 25 | Nougat | 7.1 | 13 | # | 24 | Nougat | 7.0 | 14 | # | 23 | Marshmallow | 6.0 | 15 | # | 22 | Lollipop | 5.1 | 16 | # | 21 | Lollipop | 5.0 | 17 | # | 20 | Not released | | 18 | # | 19 | Kitkat | 4.4 | 19 | # | 18 | Jellybean | 4.3 | 20 | # | 17 | Jellybean | 4.2 | 21 | # | 16 | Jellybean | 4.1 | 22 | # | 15 | Ice Cream Sandwich | 4.0 | 23 | # | 14 | Not Released | | 24 | # | 13 | Not Released | | 25 | # | 12 | Not Released | | 26 | # | 11 | Not Released | | 27 | # | 10 | Gingerbread | 2.3 | 28 | # +-----------+--------------------+--------------------+ 29 | # "https://en.wikipedia.org/wiki/Android_(operating_system)#Platform_information" 30 | # Note: Flutter supports down to API 16 31 | 32 | language: generic 33 | dist: bionic 34 | 35 | # specify global envs and jobs 36 | env: 37 | global: 38 | - ANDROID_TOOLS=4333796 # android-28 39 | - ANDROID_HOME=${HOME}/android-sdk 40 | - GRAVIS="https://raw.githubusercontent.com/DanySK/Gravis-CI/master/" 41 | - JDK="1.8" # the JDK used for running tests 42 | - TOOLS=${ANDROID_HOME}/tools 43 | # PATH order is incredibly important. e.g. the 'emulator' script exists in more than one place! 44 | - PATH=${ANDROID_HOME}:${ANDROID_HOME}/emulator:${TOOLS}:${TOOLS}/bin:${ANDROID_HOME}/platform-tools:${PATH} 45 | - FLUTTER_CHANNEL=stable 46 | - FLUTTER_VERSION=1.9.1+hotfix.6-${FLUTTER_CHANNEL} 47 | - FLUTTER_HOME=${HOME}/flutter 48 | - PATH=${HOME}/.pub-cache/bin:${PATH} 49 | - PATH=${FLUTTER_HOME}/bin:${FLUTTER_HOME}/bin/cache/dart-sdk/bin:${PATH} 50 | 51 | # matrix of APIxABIxGOO 52 | # (see "sdkmanager --list --verbose| grep ^system-images" for full list) 53 | jobs: 54 | - API=29 ABI=x86_64 GOO=google_apis_playstore 55 | - API=29 ABI=x86 GOO=google_apis_playstore 56 | - API=29 ABI=x86_64 GOO=google_apis 57 | - API=29 ABI=x86 GOO=google_apis 58 | - API=29 ABI=x86_64 GOO=default 59 | - API=29 ABI=x86 GOO=default 60 | 61 | - API=28 ABI=x86_64 GOO=google_apis_playstore 62 | - API=28 ABI=x86 GOO=google_apis_playstore 63 | - API=28 ABI=x86_64 GOO=google_apis 64 | - API=28 ABI=x86 GOO=google_apis 65 | - API=28 ABI=x86_64 GOO=default 66 | - API=28 ABI=x86 GOO=default 67 | 68 | - API=27 ABI=x86 GOO=google_apis_playstore 69 | - API=27 ABI=x86 GOO=google_apis 70 | - API=27 ABI=x86_64 GOO=default 71 | - API=27 ABI=x86 GOO=default 72 | 73 | - API=26 ABI=x86 GOO=google_apis_playstore 74 | - API=26 ABI=x86_64 GOO=google_apis 75 | - API=26 ABI=x86 GOO=google_apis 76 | - API=26 ABI=x86_64 GOO=default 77 | - API=26 ABI=x86 GOO=default 78 | 79 | - API=25 ABI=x86 GOO=google_apis_playstore 80 | - API=25 ABI=x86_64 GOO=google_apis 81 | - API=25 ABI=x86 GOO=google_apis 82 | - API=25 ABI=x86_64 GOO=default 83 | - API=25 ABI=x86 GOO=default 84 | - API=25 ABI=armeabi-v7a GOO=google_apis 85 | - API=25 ABI=arm64-v8a GOO=google_apis 86 | 87 | - API=24 ABI=x86_64 GOO=google_apis 88 | - API=24 ABI=x86 GOO=google_apis 89 | - API=24 ABI=armeabi-v7a GOO=google_apis 90 | - API=24 ABI=arm64-v8a GOO=google_apis 91 | - API=24 ABI=x86_64 GOO=default 92 | - API=24 ABI=x86 GOO=default 93 | - API=24 ABI=armeabi-v7a GOO=default 94 | - API=24 ABI=arm64-v8a GOO=default 95 | 96 | - API=23 ABI=x86_64 GOO=google_apis 97 | - API=23 ABI=x86 GOO=google_apis 98 | - API=23 ABI=armeabi-v7a GOO=google_apis 99 | - API=23 ABI=x86_64 GOO=default 100 | - API=23 ABI=x86 GOO=default 101 | - API=23 ABI=armeabi-v7a GOO=default 102 | 103 | - API=22 ABI=x86_64 GOO=google_apis 104 | - API=22 ABI=x86 GOO=google_apis 105 | - API=22 ABI=armeabi-v7a GOO=google_apis 106 | - API=22 ABI=x86_64 GOO=default 107 | - API=22 ABI=x86 GOO=default 108 | - API=22 ABI=armeabi-v7a GOO=default 109 | 110 | - API=21 ABI=x86_64 GOO=google_apis 111 | - API=21 ABI=x86 GOO=google_apis 112 | - API=21 ABI=armeabi-v7a GOO=google_apis 113 | - API=21 ABI=x86_64 GOO=default 114 | - API=21 ABI=x86 GOO=default 115 | - API=21 ABI=armeabi-v7a GOO=default 116 | 117 | # API=20 -- not released 118 | 119 | - API=19 ABI=x86 GOO=google_apis 120 | - API=19 ABI=x86 GOO=default 121 | - API=19 ABI=armeabi-v7a GOO=google_apis 122 | - API=19 ABI=armeabi-v7a GOO=default 123 | 124 | - API=18 ABI=x86 GOO=google_apis 125 | - API=18 ABI=x86 GOO=default 126 | - API=18 ABI=armeabi-v7a GOO=google_apis 127 | - API=18 ABI=armeabi-v7a GOO=default 128 | 129 | - API=17 ABI=x86 GOO=google_apis 130 | - API=17 ABI=x86 GOO=default 131 | - API=17 ABI=armeabi-v7a GOO=google_apis 132 | - API=17 ABI=armeabi-v7a GOO=default 133 | 134 | - API=16 ABI=x86 GOO=google_apis 135 | - API=16 ABI=x86 GOO=default 136 | - API=16 ABI=armeabi-v7a GOO=google_apis 137 | - API=16 ABI=armeabi-v7a GOO=default 138 | 139 | # API=15 -- not supported by flutter 140 | # API=14 -- not released 141 | # API=13 -- not released 142 | # API=12 -- not released 143 | # API=11 -- not released 144 | # API=10 -- not supported by flutter 145 | 146 | jobs: 147 | fast_finish: true 148 | # jobs that are flakey or fail consistently 149 | allow_failures: 150 | - env: API=29 ABI=x86_64 GOO=google_apis_playstore # flutter driver: "No devices found." 151 | - env: API=29 ABI=x86 GOO=google_apis_playstore # flutter doctor: device offline 152 | - env: API=29 ABI=x86_64 GOO=google_apis # flutter drive: "Bad state: No element" 153 | - env: API=29 ABI=x86 GOO=google_apis # DriverError: Failed to fulfill GetHealth due to remote error 154 | - env: API=29 ABI=x86_64 GOO=default # hangs while resolving gradle dependencies, etc... 155 | - env: API=29 ABI=x86 GOO=default # hangs while resolving dependencies 156 | 157 | - env: API=28 ABI=x86_64 GOO=google_apis_playstore # flutter driver hangs 158 | - env: API=28 ABI=x86 GOO=google_apis_playstore # flutter driver hangs 159 | - env: API=28 ABI=x86 GOO=google_apis # DriverError: Failed to fulfill GetHealth due to remote error 160 | 161 | - env: API=26 ABI=x86 GOO=google_apis_playstore # hangs after installing apk 162 | - env: API=26 ABI=x86 GOO=google_apis # hangs during assembleDebug and resolving dependencies 163 | - env: API=26 ABI=x86 GOO=default # emulator hangs 164 | 165 | - env: API=25 ABI=x86 GOO=google_apis_playstore # hangs after installing apk 166 | - env: API=25 ABI=armeabi-v7a GOO=google_apis # flutter drive reports "apk: Can't find service: package" 167 | - env: API=25 ABI=arm64-v8a GOO=google_apis # Timeout (600 seconds) reached; failed to start emulator 168 | 169 | - env: API=24 ABI=x86 GOO=google_apis # flutter driver hangs after resolving gradle dependencies 170 | - env: API=24 ABI=armeabi-v7a GOO=google_apis # hangs during Installing build/app/outputs/apk/app.apk... 171 | - env: API=24 ABI=arm64-v8a GOO=google_apis # Timeout (600 seconds) reached; failed to start emulator 172 | - env: API=24 ABI=armeabi-v7a GOO=default # hangs after installing apk 173 | - env: API=24 ABI=arm64-v8a GOO=default # Timeout (600 seconds) reached; failed to start emulator 174 | 175 | - env: API=23 ABI=armeabi-v7a GOO=google_apis # hangs during Installing build/app/outputs/apk/app.apk... 176 | - env: API=23 ABI=armeabi-v7a GOO=default # hangs after installing apk 177 | 178 | - env: API=22 ABI=x86_64 GOO=google_apis # hangs during gradle assemble 179 | - env: API=22 ABI=armeabi-v7a GOO=google_apis # hangs after installing apk 180 | - env: API=22 ABI=x86_64 GOO=default # flutter drive hangs during installation of apk 181 | 182 | - env: API=21 ABI=armeabi-v7a GOO=google_apis # Timeout (600 seconds) reached; failed to start emulator 183 | - env: API=21 ABI=armeabi-v7a GOO=default # hangs before test starts 184 | 185 | - env: API=19 ABI=armeabi-v7a GOO=google_apis # hangs after installing apk 186 | - env: API=19 ABI=armeabi-v7a GOO=default # hangs on Installing build/app/outputs/apk/app.apk... 187 | 188 | - env: API=18 ABI=x86 GOO=google_apis # hangs during test 189 | - env: API=18 ABI=x86 GOO=default # hangs during flutter doctor 190 | - env: API=18 ABI=armeabi-v7a GOO=google_apis # flutter driver: incorrect success after installing apk 191 | 192 | - env: API=17 ABI=x86 GOO=google_apis # FlutterDriver: It is taking an unusually long time to connect to the VM... 193 | - env: API=17 ABI=x86 GOO=default # FlutterDriver: It is taking an unusually long time to connect to the VM... 194 | 195 | - env: API=16 ABI=x86 GOO=google_apis # FlutterDriver: It is taking an unusually long time to connect to the VM... 196 | - env: API=16 ABI=x86 GOO=default # FlutterDriver: It is taking an unusually long time to connect to the VM... 197 | - env: API=16 ABI=armeabi-v7a GOO=google_apis # hangs after installing apk 198 | - env: API=16 ABI=armeabi-v7a GOO=default # hangs after installing apk 199 | 200 | before_install: 201 | - java -version 202 | 203 | # Set up KVM 204 | - sudo apt-get -y --no-install-recommends install bridge-utils libpulse0 libvirt-bin qemu-kvm virtinst ubuntu-vm-builder > /dev/null 205 | # add travis user to groups 206 | - sudo adduser $USER libvirt 207 | - sudo adduser $USER kvm 208 | 209 | # Set up JDK 8 for Android SDK 210 | - curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh 211 | - export TARGET_JDK="${JDK}" 212 | - JDK="1.8" # used when running sdkmanager 213 | - source ~/.install-jdk-travis.sh 214 | 215 | # Set up Android SDK 216 | - wget -q "https://dl.google.com/android/repository/sdk-tools-linux-$ANDROID_TOOLS.zip" -O android-sdk-tools.zip 217 | - unzip -q android-sdk-tools.zip -d ${ANDROID_HOME} 218 | - rm android-sdk-tools.zip 219 | 220 | # Avoid harmless sdkmanager warning 221 | - mkdir ~/.android 222 | - echo 'count=0' > ~/.android/repositories.cfg 223 | 224 | # Accept licenses before installing components, no need to echo y for each component 225 | - yes | sdkmanager --licenses >/dev/null 226 | 227 | install: 228 | # Download SDK tools 229 | - sdkmanager "platform-tools" >/dev/null 230 | - sdkmanager "tools" >/dev/null # A second time per Travis docs, gets latest versions 231 | - sdkmanager "build-tools;28.0.3" >/dev/null # Implicit gradle dependency - gradle drives changes 232 | - sdkmanager "platforms;android-$API" >/dev/null # We need the API of the emulator we will run 233 | - sdkmanager "platforms;android-28" >/dev/null # We need the API of the current compileSdkVersion from gradle.properties - 234 | 235 | - sdkmanager "emulator" >/dev/null 236 | - | 237 | if [[ $ABI =~ "arm" ]]; then 238 | # Download a pinned version of the emulator since default version can cause issues 239 | ${ANDROID_HOME}/emulator/emulator -version 240 | emulator_version=5264690 # 29.2.1.0 (build_id 5889189) ==> 28.0.23.0 (build_id 5264690) 241 | # sudo apt-get install -y libunwind8 libc++1 242 | curl -fo emulator.zip "https://dl.google.com/android/repository/emulator-linux-$emulator_version.zip" 243 | rm -rf "${ANDROID_HOME}/emulator" 244 | unzip -q emulator.zip -d "${ANDROID_HOME}" 245 | rm -f emulator.zip 246 | # install build tools and platforms for arm (to allow emulator to run) 247 | sdkmanager "build-tools;25.0.2" "platforms;android-25" > /dev/null 248 | fi 249 | - ${ANDROID_HOME}/emulator/emulator -version 250 | 251 | - sdkmanager "extras;android;m2repository" >/dev/null 252 | - sdkmanager "system-images;android-$API;$GOO;$ABI" >/dev/null # install system images for emulator 253 | 254 | # Create an Android emulator 255 | # - echo no | avdmanager --verbose create avd --force -n test -k "system-images;android-$API;$GOO;$ABI" -c 10M 256 | - echo no | avdmanager --verbose create avd --force -n test -k "system-images;android-$API;$GOO;$ABI" 257 | # - EMU_PARAMS=" 258 | # -verbose 259 | # -no-snapshot 260 | # -no-window 261 | # -no-audio 262 | # -no-boot-anim 263 | # -camera-back none 264 | # -camera-front none 265 | # -selinux permissive 266 | # -qemu -m 2048" 267 | - EMU_PARAMS=" 268 | -avd test 269 | -verbose 270 | -no-window 271 | -no-audio 272 | " 273 | - EMU_COMMAND="emulator" 274 | - | 275 | if [[ $ABI =~ "x86" ]]; then 276 | EMU_COMMAND="emulator-headless" 277 | else 278 | # emulate graphics if running on ARM 279 | EMU_PARAMS="${EMU_PARAMS} -gpu swiftshader" 280 | fi 281 | # This double "sudo" monstrosity is used to have Travis execute the 282 | # emulator with its new group permissions and help preserve the rule 283 | # of least privilege. 284 | - sudo -E sudo -u $USER -E bash -c "${ANDROID_HOME}/emulator/${EMU_COMMAND} ${EMU_PARAMS} &" 285 | 286 | # install flutter (while emulator is starting) 287 | - sudo apt-get install -y --no-install-recommends lib32stdc++6 libstdc++6 > /dev/null 288 | - wget --quiet --output-document=flutter.tar.xz https://storage.googleapis.com/flutter_infra/releases/${FLUTTER_CHANNEL}/linux/flutter_linux_v${FLUTTER_VERSION}.tar.xz 289 | - tar xf flutter.tar.xz -C $(dirname ${FLUTTER_HOME}) 290 | - rm flutter.tar.xz 291 | 292 | # Switch back to our target JDK version to build and run tests 293 | - JDK="${TARGET_JDK}" 294 | - source ~/.install-jdk-travis.sh 295 | 296 | - flutter doctor -v 297 | 298 | before_script: 299 | # wait for emulator to finish startup 300 | - ./script/android-wait-for-emulator.sh 301 | # unlock screen 302 | - adb shell input keyevent 82 & 303 | 304 | script: 305 | - cd flutter_app 306 | - flutter pub get 307 | # run test with retries 308 | - flutter driver lib/main.dart || flutter driver lib/main.dart || flutter driver lib/main.dart 309 | 310 | #before_cache: 311 | # - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock 312 | # - curl "${GRAVIS}.clean_gradle_cache.sh" --output ~/.clean_gradle_cache.sh 313 | # - bash ~/.clean_gradle_cache.sh 314 | # 315 | #cache: 316 | # directories: 317 | # - $HOME/.gradle/caches/ 318 | # - $HOME/.gradle/wrapper/ 319 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/mmcc007/test_emulators.svg?branch=master)](https://travis-ci.org/mmcc007/test_emulators) 2 | [![Build Status](https://api.cirrus-ci.com/github/mmcc007/test_emulators.svg)](https://cirrus-ci.com/github/mmcc007/test_emulators) 3 | 4 | # Test Android Emulators on Travis 5 | 6 | Update: see [article](https://medium.com/@nocnoc/android-emulators-in-thcloud-f39e11c15bfa) on Medium (out-of-date since accelerated Intel CPUs now available). 7 | 8 | This project shows emulators running on accelerated Intel CPUs and on emulated ARM CPUs on travis with their run times. 9 | 10 | Click on the travis and cirrus badges to find out the time it takes to run an android test on an emulator. 11 | 12 | Note: there are many emulator configurations that have not been tried. 13 | 14 | 15 | ## Issues and Pull Requests 16 | Feel free to submit an issue or a PR if you find more emulators that run on travis. 17 | -------------------------------------------------------------------------------- /flutter_app/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.lock 4 | *.log 5 | *.pyc 6 | *.swp 7 | .DS_Store 8 | .atom/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # Visual Studio Code related 20 | .vscode/ 21 | 22 | # Flutter/Dart/Pub related 23 | **/doc/api/ 24 | .dart_tool/ 25 | .flutter-plugins 26 | .packages 27 | .pub-cache/ 28 | .pub/ 29 | build/ 30 | 31 | # Android related 32 | **/android/**/gradle-wrapper.jar 33 | **/android/.gradle 34 | **/android/captures/ 35 | **/android/gradlew 36 | **/android/gradlew.bat 37 | **/android/local.properties 38 | **/android/**/GeneratedPluginRegistrant.java 39 | 40 | # iOS/XCode related 41 | **/ios/**/*.mode1v3 42 | **/ios/**/*.mode2v3 43 | **/ios/**/*.moved-aside 44 | **/ios/**/*.pbxuser 45 | **/ios/**/*.perspectivev3 46 | **/ios/**/*sync/ 47 | **/ios/**/.sconsign.dblite 48 | **/ios/**/.tags* 49 | **/ios/**/.vagrant/ 50 | **/ios/**/DerivedData/ 51 | **/ios/**/Icon? 52 | **/ios/**/Pods/ 53 | **/ios/**/.symlinks/ 54 | **/ios/**/profile 55 | **/ios/**/xcuserdata 56 | **/ios/.generated/ 57 | **/ios/Flutter/App.framework 58 | **/ios/Flutter/Flutter.framework 59 | **/ios/Flutter/Generated.xcconfig 60 | **/ios/Flutter/app.flx 61 | **/ios/Flutter/app.zip 62 | **/ios/Flutter/flutter_assets/ 63 | **/ios/ServiceDefinitions.json 64 | **/ios/Runner/GeneratedPluginRegistrant.* 65 | 66 | # Exceptions to above rules. 67 | !**/ios/**/default.mode1v3 68 | !**/ios/**/default.mode2v3 69 | !**/ios/**/default.pbxuser 70 | !**/ios/**/default.perspectivev3 71 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 72 | -------------------------------------------------------------------------------- /flutter_app/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 5391447fae6209bb21a89e6a5a6583cac1af9b4b 8 | channel: unknown 9 | 10 | project_type: app 11 | -------------------------------------------------------------------------------- /flutter_app/README.md: -------------------------------------------------------------------------------- 1 | # flutter_app 2 | 3 | A new Flutter project. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.io/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.io/docs/cookbook) 13 | 14 | For help getting started with Flutter, view our 15 | [online documentation](https://flutter.io/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /flutter_app/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 26 | 27 | android { 28 | compileSdkVersion 27 29 | 30 | lintOptions { 31 | disable 'InvalidPackage' 32 | } 33 | 34 | defaultConfig { 35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 36 | applicationId "com.example.flutterapp" 37 | minSdkVersion 16 38 | targetSdkVersion 27 39 | versionCode flutterVersionCode.toInteger() 40 | versionName flutterVersionName 41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 42 | } 43 | 44 | buildTypes { 45 | release { 46 | // TODO: Add your own signing config for the release build. 47 | // Signing with the debug keys for now, so `flutter run --release` works. 48 | signingConfig signingConfigs.debug 49 | } 50 | } 51 | } 52 | 53 | flutter { 54 | source '../..' 55 | } 56 | 57 | dependencies { 58 | testImplementation 'junit:junit:4.12' 59 | androidTestImplementation 'com.android.support.test:runner:1.0.2' 60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 61 | } 62 | -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 15 | 19 | 26 | 30 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/java/com/example/flutterapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.flutterapp; 2 | 3 | import android.os.Bundle; 4 | import io.flutter.app.FlutterActivity; 5 | import io.flutter.plugins.GeneratedPluginRegistrant; 6 | 7 | public class MainActivity extends FlutterActivity { 8 | @Override 9 | protected void onCreate(Bundle savedInstanceState) { 10 | super.onCreate(savedInstanceState); 11 | GeneratedPluginRegistrant.registerWith(this); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /flutter_app/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8 | 9 | -------------------------------------------------------------------------------- /flutter_app/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:3.2.1' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | jcenter() 16 | } 17 | } 18 | 19 | rootProject.buildDir = '../build' 20 | subprojects { 21 | project.buildDir = "${rootProject.buildDir}/${project.name}" 22 | } 23 | subprojects { 24 | project.evaluationDependsOn(':app') 25 | } 26 | 27 | task clean(type: Delete) { 28 | delete rootProject.buildDir 29 | } 30 | -------------------------------------------------------------------------------- /flutter_app/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | -------------------------------------------------------------------------------- /flutter_app/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip 7 | -------------------------------------------------------------------------------- /flutter_app/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() 4 | 5 | def plugins = new Properties() 6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') 7 | if (pluginsFile.exists()) { 8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } 9 | } 10 | 11 | plugins.each { name, path -> 12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() 13 | include ":$name" 14 | project(":$name").projectDir = pluginDirectory 15 | } 16 | -------------------------------------------------------------------------------- /flutter_app/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 8.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /flutter_app/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /flutter_app/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Generated.xcconfig" 2 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 11 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */ = {isa = PBXBuildFile; fileRef = 2D5378251FAA1A9400D5DBA9 /* flutter_assets */; }; 12 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 13 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; }; 14 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 15 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; }; 16 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 17 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; }; 18 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; }; 19 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; }; 20 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 21 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 22 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXCopyFilesBuildPhase section */ 26 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = { 27 | isa = PBXCopyFilesBuildPhase; 28 | buildActionMask = 2147483647; 29 | dstPath = ""; 30 | dstSubfolderSpec = 10; 31 | files = ( 32 | 3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */, 33 | 9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */, 34 | ); 35 | name = "Embed Frameworks"; 36 | runOnlyForDeploymentPostprocessing = 0; 37 | }; 38 | /* End PBXCopyFilesBuildPhase section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 42 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 43 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = flutter_assets; path = Flutter/flutter_assets; sourceTree = SOURCE_ROOT; }; 44 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 45 | 3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = ""; }; 46 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; 47 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 48 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 49 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; 50 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; 51 | 9740EEBA1CF902C7004384FC /* Flutter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Flutter.framework; path = Flutter/Flutter.framework; sourceTree = ""; }; 52 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 54 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 55 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 56 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 57 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 97C146EB1CF9000F007C117D /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */, 66 | 3B80C3941E831B6300D905FE /* App.framework in Frameworks */, 67 | ); 68 | runOnlyForDeploymentPostprocessing = 0; 69 | }; 70 | /* End PBXFrameworksBuildPhase section */ 71 | 72 | /* Begin PBXGroup section */ 73 | 9740EEB11CF90186004384FC /* Flutter */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 2D5378251FAA1A9400D5DBA9 /* flutter_assets */, 77 | 3B80C3931E831B6300D905FE /* App.framework */, 78 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, 79 | 9740EEBA1CF902C7004384FC /* Flutter.framework */, 80 | 9740EEB21CF90195004384FC /* Debug.xcconfig */, 81 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, 82 | 9740EEB31CF90195004384FC /* Generated.xcconfig */, 83 | ); 84 | name = Flutter; 85 | sourceTree = ""; 86 | }; 87 | 97C146E51CF9000F007C117D = { 88 | isa = PBXGroup; 89 | children = ( 90 | 9740EEB11CF90186004384FC /* Flutter */, 91 | 97C146F01CF9000F007C117D /* Runner */, 92 | 97C146EF1CF9000F007C117D /* Products */, 93 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */, 94 | ); 95 | sourceTree = ""; 96 | }; 97 | 97C146EF1CF9000F007C117D /* Products */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 97C146EE1CF9000F007C117D /* Runner.app */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 97C146F01CF9000F007C117D /* Runner */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */, 109 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */, 110 | 97C146FA1CF9000F007C117D /* Main.storyboard */, 111 | 97C146FD1CF9000F007C117D /* Assets.xcassets */, 112 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, 113 | 97C147021CF9000F007C117D /* Info.plist */, 114 | 97C146F11CF9000F007C117D /* Supporting Files */, 115 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, 116 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, 117 | ); 118 | path = Runner; 119 | sourceTree = ""; 120 | }; 121 | 97C146F11CF9000F007C117D /* Supporting Files */ = { 122 | isa = PBXGroup; 123 | children = ( 124 | 97C146F21CF9000F007C117D /* main.m */, 125 | ); 126 | name = "Supporting Files"; 127 | sourceTree = ""; 128 | }; 129 | /* End PBXGroup section */ 130 | 131 | /* Begin PBXNativeTarget section */ 132 | 97C146ED1CF9000F007C117D /* Runner */ = { 133 | isa = PBXNativeTarget; 134 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; 135 | buildPhases = ( 136 | 9740EEB61CF901F6004384FC /* Run Script */, 137 | 97C146EA1CF9000F007C117D /* Sources */, 138 | 97C146EB1CF9000F007C117D /* Frameworks */, 139 | 97C146EC1CF9000F007C117D /* Resources */, 140 | 9705A1C41CF9048500538489 /* Embed Frameworks */, 141 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 142 | ); 143 | buildRules = ( 144 | ); 145 | dependencies = ( 146 | ); 147 | name = Runner; 148 | productName = Runner; 149 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */; 150 | productType = "com.apple.product-type.application"; 151 | }; 152 | /* End PBXNativeTarget section */ 153 | 154 | /* Begin PBXProject section */ 155 | 97C146E61CF9000F007C117D /* Project object */ = { 156 | isa = PBXProject; 157 | attributes = { 158 | LastUpgradeCheck = 0910; 159 | ORGANIZATIONNAME = "The Chromium Authors"; 160 | TargetAttributes = { 161 | 97C146ED1CF9000F007C117D = { 162 | CreatedOnToolsVersion = 7.3.1; 163 | }; 164 | }; 165 | }; 166 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; 167 | compatibilityVersion = "Xcode 3.2"; 168 | developmentRegion = English; 169 | hasScannedForEncodings = 0; 170 | knownRegions = ( 171 | en, 172 | Base, 173 | ); 174 | mainGroup = 97C146E51CF9000F007C117D; 175 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */; 176 | projectDirPath = ""; 177 | projectRoot = ""; 178 | targets = ( 179 | 97C146ED1CF9000F007C117D /* Runner */, 180 | ); 181 | }; 182 | /* End PBXProject section */ 183 | 184 | /* Begin PBXResourcesBuildPhase section */ 185 | 97C146EC1CF9000F007C117D /* Resources */ = { 186 | isa = PBXResourcesBuildPhase; 187 | buildActionMask = 2147483647; 188 | files = ( 189 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 190 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, 191 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */, 192 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 193 | 2D5378261FAA1A9400D5DBA9 /* flutter_assets in Resources */, 194 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, 195 | ); 196 | runOnlyForDeploymentPostprocessing = 0; 197 | }; 198 | /* End PBXResourcesBuildPhase section */ 199 | 200 | /* Begin PBXShellScriptBuildPhase section */ 201 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { 202 | isa = PBXShellScriptBuildPhase; 203 | buildActionMask = 2147483647; 204 | files = ( 205 | ); 206 | inputPaths = ( 207 | ); 208 | name = "Thin Binary"; 209 | outputPaths = ( 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | shellPath = /bin/sh; 213 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin"; 214 | }; 215 | 9740EEB61CF901F6004384FC /* Run Script */ = { 216 | isa = PBXShellScriptBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | ); 220 | inputPaths = ( 221 | ); 222 | name = "Run Script"; 223 | outputPaths = ( 224 | ); 225 | runOnlyForDeploymentPostprocessing = 0; 226 | shellPath = /bin/sh; 227 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; 228 | }; 229 | /* End PBXShellScriptBuildPhase section */ 230 | 231 | /* Begin PBXSourcesBuildPhase section */ 232 | 97C146EA1CF9000F007C117D /* Sources */ = { 233 | isa = PBXSourcesBuildPhase; 234 | buildActionMask = 2147483647; 235 | files = ( 236 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */, 237 | 97C146F31CF9000F007C117D /* main.m in Sources */, 238 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, 239 | ); 240 | runOnlyForDeploymentPostprocessing = 0; 241 | }; 242 | /* End PBXSourcesBuildPhase section */ 243 | 244 | /* Begin PBXVariantGroup section */ 245 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = { 246 | isa = PBXVariantGroup; 247 | children = ( 248 | 97C146FB1CF9000F007C117D /* Base */, 249 | ); 250 | name = Main.storyboard; 251 | sourceTree = ""; 252 | }; 253 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { 254 | isa = PBXVariantGroup; 255 | children = ( 256 | 97C147001CF9000F007C117D /* Base */, 257 | ); 258 | name = LaunchScreen.storyboard; 259 | sourceTree = ""; 260 | }; 261 | /* End PBXVariantGroup section */ 262 | 263 | /* Begin XCBuildConfiguration section */ 264 | 249021D3217E4FDB00AE95B9 /* Profile */ = { 265 | isa = XCBuildConfiguration; 266 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 267 | buildSettings = { 268 | ALWAYS_SEARCH_USER_PATHS = NO; 269 | CLANG_ANALYZER_NONNULL = YES; 270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 271 | CLANG_CXX_LIBRARY = "libc++"; 272 | CLANG_ENABLE_MODULES = YES; 273 | CLANG_ENABLE_OBJC_ARC = YES; 274 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 275 | CLANG_WARN_BOOL_CONVERSION = YES; 276 | CLANG_WARN_COMMA = YES; 277 | CLANG_WARN_CONSTANT_CONVERSION = YES; 278 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 279 | CLANG_WARN_EMPTY_BODY = YES; 280 | CLANG_WARN_ENUM_CONVERSION = YES; 281 | CLANG_WARN_INFINITE_RECURSION = YES; 282 | CLANG_WARN_INT_CONVERSION = YES; 283 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 284 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 285 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 286 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 287 | CLANG_WARN_STRICT_PROTOTYPES = YES; 288 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 289 | CLANG_WARN_UNREACHABLE_CODE = YES; 290 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 291 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 292 | COPY_PHASE_STRIP = NO; 293 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 294 | ENABLE_NS_ASSERTIONS = NO; 295 | ENABLE_STRICT_OBJC_MSGSEND = YES; 296 | GCC_C_LANGUAGE_STANDARD = gnu99; 297 | GCC_NO_COMMON_BLOCKS = YES; 298 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 299 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 300 | GCC_WARN_UNDECLARED_SELECTOR = YES; 301 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 302 | GCC_WARN_UNUSED_FUNCTION = YES; 303 | GCC_WARN_UNUSED_VARIABLE = YES; 304 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 305 | MTL_ENABLE_DEBUG_INFO = NO; 306 | SDKROOT = iphoneos; 307 | TARGETED_DEVICE_FAMILY = "1,2"; 308 | VALIDATE_PRODUCT = YES; 309 | }; 310 | name = Profile; 311 | }; 312 | 249021D4217E4FDB00AE95B9 /* Profile */ = { 313 | isa = XCBuildConfiguration; 314 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 315 | buildSettings = { 316 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 317 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 318 | DEVELOPMENT_TEAM = S8QB4VV633; 319 | ENABLE_BITCODE = NO; 320 | FRAMEWORK_SEARCH_PATHS = ( 321 | "$(inherited)", 322 | "$(PROJECT_DIR)/Flutter", 323 | ); 324 | INFOPLIST_FILE = Runner/Info.plist; 325 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 326 | LIBRARY_SEARCH_PATHS = ( 327 | "$(inherited)", 328 | "$(PROJECT_DIR)/Flutter", 329 | ); 330 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterApp; 331 | PRODUCT_NAME = "$(TARGET_NAME)"; 332 | VERSIONING_SYSTEM = "apple-generic"; 333 | }; 334 | name = Profile; 335 | }; 336 | 97C147031CF9000F007C117D /* Debug */ = { 337 | isa = XCBuildConfiguration; 338 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 339 | buildSettings = { 340 | ALWAYS_SEARCH_USER_PATHS = NO; 341 | CLANG_ANALYZER_NONNULL = YES; 342 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 343 | CLANG_CXX_LIBRARY = "libc++"; 344 | CLANG_ENABLE_MODULES = YES; 345 | CLANG_ENABLE_OBJC_ARC = YES; 346 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 347 | CLANG_WARN_BOOL_CONVERSION = YES; 348 | CLANG_WARN_COMMA = YES; 349 | CLANG_WARN_CONSTANT_CONVERSION = YES; 350 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 351 | CLANG_WARN_EMPTY_BODY = YES; 352 | CLANG_WARN_ENUM_CONVERSION = YES; 353 | CLANG_WARN_INFINITE_RECURSION = YES; 354 | CLANG_WARN_INT_CONVERSION = YES; 355 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 356 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 357 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 358 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 359 | CLANG_WARN_STRICT_PROTOTYPES = YES; 360 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 361 | CLANG_WARN_UNREACHABLE_CODE = YES; 362 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 363 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 364 | COPY_PHASE_STRIP = NO; 365 | DEBUG_INFORMATION_FORMAT = dwarf; 366 | ENABLE_STRICT_OBJC_MSGSEND = YES; 367 | ENABLE_TESTABILITY = YES; 368 | GCC_C_LANGUAGE_STANDARD = gnu99; 369 | GCC_DYNAMIC_NO_PIC = NO; 370 | GCC_NO_COMMON_BLOCKS = YES; 371 | GCC_OPTIMIZATION_LEVEL = 0; 372 | GCC_PREPROCESSOR_DEFINITIONS = ( 373 | "DEBUG=1", 374 | "$(inherited)", 375 | ); 376 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 377 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 378 | GCC_WARN_UNDECLARED_SELECTOR = YES; 379 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 380 | GCC_WARN_UNUSED_FUNCTION = YES; 381 | GCC_WARN_UNUSED_VARIABLE = YES; 382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 383 | MTL_ENABLE_DEBUG_INFO = YES; 384 | ONLY_ACTIVE_ARCH = YES; 385 | SDKROOT = iphoneos; 386 | TARGETED_DEVICE_FAMILY = "1,2"; 387 | }; 388 | name = Debug; 389 | }; 390 | 97C147041CF9000F007C117D /* Release */ = { 391 | isa = XCBuildConfiguration; 392 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 393 | buildSettings = { 394 | ALWAYS_SEARCH_USER_PATHS = NO; 395 | CLANG_ANALYZER_NONNULL = YES; 396 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 397 | CLANG_CXX_LIBRARY = "libc++"; 398 | CLANG_ENABLE_MODULES = YES; 399 | CLANG_ENABLE_OBJC_ARC = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 405 | CLANG_WARN_EMPTY_BODY = YES; 406 | CLANG_WARN_ENUM_CONVERSION = YES; 407 | CLANG_WARN_INFINITE_RECURSION = YES; 408 | CLANG_WARN_INT_CONVERSION = YES; 409 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 410 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 412 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 413 | CLANG_WARN_STRICT_PROTOTYPES = YES; 414 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 415 | CLANG_WARN_UNREACHABLE_CODE = YES; 416 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 417 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 418 | COPY_PHASE_STRIP = NO; 419 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 420 | ENABLE_NS_ASSERTIONS = NO; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | GCC_C_LANGUAGE_STANDARD = gnu99; 423 | GCC_NO_COMMON_BLOCKS = YES; 424 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 425 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 426 | GCC_WARN_UNDECLARED_SELECTOR = YES; 427 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 428 | GCC_WARN_UNUSED_FUNCTION = YES; 429 | GCC_WARN_UNUSED_VARIABLE = YES; 430 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 431 | MTL_ENABLE_DEBUG_INFO = NO; 432 | SDKROOT = iphoneos; 433 | TARGETED_DEVICE_FAMILY = "1,2"; 434 | VALIDATE_PRODUCT = YES; 435 | }; 436 | name = Release; 437 | }; 438 | 97C147061CF9000F007C117D /* Debug */ = { 439 | isa = XCBuildConfiguration; 440 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; 441 | buildSettings = { 442 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 443 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 444 | ENABLE_BITCODE = NO; 445 | FRAMEWORK_SEARCH_PATHS = ( 446 | "$(inherited)", 447 | "$(PROJECT_DIR)/Flutter", 448 | ); 449 | INFOPLIST_FILE = Runner/Info.plist; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 451 | LIBRARY_SEARCH_PATHS = ( 452 | "$(inherited)", 453 | "$(PROJECT_DIR)/Flutter", 454 | ); 455 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterApp; 456 | PRODUCT_NAME = "$(TARGET_NAME)"; 457 | VERSIONING_SYSTEM = "apple-generic"; 458 | }; 459 | name = Debug; 460 | }; 461 | 97C147071CF9000F007C117D /* Release */ = { 462 | isa = XCBuildConfiguration; 463 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; 464 | buildSettings = { 465 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 466 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; 467 | ENABLE_BITCODE = NO; 468 | FRAMEWORK_SEARCH_PATHS = ( 469 | "$(inherited)", 470 | "$(PROJECT_DIR)/Flutter", 471 | ); 472 | INFOPLIST_FILE = Runner/Info.plist; 473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 474 | LIBRARY_SEARCH_PATHS = ( 475 | "$(inherited)", 476 | "$(PROJECT_DIR)/Flutter", 477 | ); 478 | PRODUCT_BUNDLE_IDENTIFIER = com.example.flutterApp; 479 | PRODUCT_NAME = "$(TARGET_NAME)"; 480 | VERSIONING_SYSTEM = "apple-generic"; 481 | }; 482 | name = Release; 483 | }; 484 | /* End XCBuildConfiguration section */ 485 | 486 | /* Begin XCConfigurationList section */ 487 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { 488 | isa = XCConfigurationList; 489 | buildConfigurations = ( 490 | 97C147031CF9000F007C117D /* Debug */, 491 | 97C147041CF9000F007C117D /* Release */, 492 | 249021D3217E4FDB00AE95B9 /* Profile */, 493 | ); 494 | defaultConfigurationIsVisible = 0; 495 | defaultConfigurationName = Release; 496 | }; 497 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { 498 | isa = XCConfigurationList; 499 | buildConfigurations = ( 500 | 97C147061CF9000F007C117D /* Debug */, 501 | 97C147071CF9000F007C117D /* Release */, 502 | 249021D4217E4FDB00AE95B9 /* Profile */, 503 | ); 504 | defaultConfigurationIsVisible = 0; 505 | defaultConfigurationName = Release; 506 | }; 507 | /* End XCConfigurationList section */ 508 | }; 509 | rootObject = 97C146E61CF9000F007C117D /* Project object */; 510 | } 511 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 31 | 32 | 33 | 34 | 40 | 41 | 42 | 43 | 44 | 45 | 56 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 75 | 77 | 83 | 84 | 85 | 86 | 88 | 89 | 92 | 93 | 94 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #include "AppDelegate.h" 2 | #include "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mmcc007/test_emulators/dd18714ad6f02115c8d76c3fbb53038024ca1203/flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | flutter_app 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /flutter_app/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /flutter_app/lib/main.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:flutter_driver/driver_extension.dart'; 3 | 4 | void main() { 5 | // Enable integration testing with the Flutter Driver extension. 6 | // See https://flutter.io/testing/ for more info. 7 | enableFlutterDriverExtension(); 8 | runApp(MyApp()); 9 | } 10 | 11 | class MyApp extends StatelessWidget { 12 | // This widget is the root of your application. 13 | @override 14 | Widget build(BuildContext context) { 15 | return MaterialApp( 16 | title: 'Flutter Demo', 17 | theme: ThemeData( 18 | // This is the theme of your application. 19 | // 20 | // Try running your application with "flutter run". You'll see the 21 | // application has a blue toolbar. Then, without quitting the app, try 22 | // changing the primarySwatch below to Colors.green and then invoke 23 | // "hot reload" (press "r" in the console where you ran "flutter run", 24 | // or simply save your changes to "hot reload" in a Flutter IDE). 25 | // Notice that the counter didn't reset back to zero; the application 26 | // is not restarted. 27 | primarySwatch: Colors.blue, 28 | ), 29 | home: MyHomePage(title: 'Flutter Demo Home Page'), 30 | ); 31 | } 32 | } 33 | 34 | class MyHomePage extends StatefulWidget { 35 | MyHomePage({Key key, this.title}) : super(key: key); 36 | 37 | // This widget is the home page of your application. It is stateful, meaning 38 | // that it has a State object (defined below) that contains fields that affect 39 | // how it looks. 40 | 41 | // This class is the configuration for the state. It holds the values (in this 42 | // case the title) provided by the parent (in this case the App widget) and 43 | // used by the build method of the State. Fields in a Widget subclass are 44 | // always marked "final". 45 | 46 | final String title; 47 | 48 | @override 49 | _MyHomePageState createState() => _MyHomePageState(); 50 | } 51 | 52 | class _MyHomePageState extends State { 53 | int _counter = 0; 54 | 55 | void _incrementCounter() { 56 | setState(() { 57 | // This call to setState tells the Flutter framework that something has 58 | // changed in this State, which causes it to rerun the build method below 59 | // so that the display can reflect the updated values. If we changed 60 | // _counter without calling setState(), then the build method would not be 61 | // called again, and so nothing would appear to happen. 62 | _counter++; 63 | }); 64 | } 65 | 66 | @override 67 | Widget build(BuildContext context) { 68 | // This method is rerun every time setState is called, for instance as done 69 | // by the _incrementCounter method above. 70 | // 71 | // The Flutter framework has been optimized to make rerunning build methods 72 | // fast, so that you can just rebuild anything that needs updating rather 73 | // than having to individually change instances of widgets. 74 | return Scaffold( 75 | appBar: AppBar( 76 | // Here we take the value from the MyHomePage object that was created by 77 | // the App.build method, and use it to set our appbar title. 78 | title: Text(widget.title), 79 | ), 80 | body: Center( 81 | // Center is a layout widget. It takes a single child and positions it 82 | // in the middle of the parent. 83 | child: Column( 84 | // Column is also layout widget. It takes a list of children and 85 | // arranges them vertically. By default, it sizes itself to fit its 86 | // children horizontally, and tries to be as tall as its parent. 87 | // 88 | // Invoke "debug painting" (press "p" in the console, choose the 89 | // "Toggle Debug Paint" action from the Flutter Inspector in Android 90 | // Studio, or the "Toggle Debug Paint" command in Visual Studio Code) 91 | // to see the wireframe for each widget. 92 | // 93 | // Column has various properties to control how it sizes itself and 94 | // how it positions its children. Here we use mainAxisAlignment to 95 | // center the children vertically; the main axis here is the vertical 96 | // axis because Columns are vertical (the cross axis would be 97 | // horizontal). 98 | mainAxisAlignment: MainAxisAlignment.center, 99 | children: [ 100 | Text( 101 | 'You have pushed the button this many times:', 102 | ), 103 | Text( 104 | '$_counter', 105 | style: Theme.of(context).textTheme.display1, 106 | ), 107 | ], 108 | ), 109 | ), 110 | floatingActionButton: FloatingActionButton( 111 | onPressed: _incrementCounter, 112 | tooltip: 'Increment', 113 | child: Icon(Icons.add), 114 | ), // This trailing comma makes auto-formatting nicer for build methods. 115 | ); 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /flutter_app/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: flutter_app 2 | description: A new Flutter project. 3 | 4 | # The following defines the version and build number for your application. 5 | # A version number is three numbers separated by dots, like 1.2.43 6 | # followed by an optional build number separated by a +. 7 | # Both the version and the builder number may be overridden in flutter 8 | # build by specifying --build-name and --build-number, respectively. 9 | # Read more about versioning at semver.org. 10 | version: 1.0.0+1 11 | 12 | environment: 13 | sdk: ">=2.0.0-dev.68.0 <3.0.0" 14 | 15 | dependencies: 16 | flutter: 17 | sdk: flutter 18 | 19 | # The following adds the Cupertino Icons font to your application. 20 | # Use with the CupertinoIcons class for iOS style icons. 21 | cupertino_icons: ^0.1.2 22 | 23 | dev_dependencies: 24 | flutter_test: 25 | sdk: flutter 26 | flutter_driver: 27 | sdk: flutter 28 | test: ^1.5.1 29 | 30 | 31 | # For information on the generic Dart part of this file, see the 32 | # following page: https://www.dartlang.org/tools/pub/pubspec 33 | 34 | # The following section is specific to Flutter. 35 | flutter: 36 | 37 | # The following line ensures that the Material Icons font is 38 | # included with your application, so that you can use the icons in 39 | # the material Icons class. 40 | uses-material-design: true 41 | 42 | # To add assets to your application, add an assets section, like this: 43 | # assets: 44 | # - images/a_dot_burr.jpeg 45 | # - images/a_dot_ham.jpeg 46 | 47 | # An image asset can refer to one or more resolution-specific "variants", see 48 | # https://flutter.io/assets-and-images/#resolution-aware. 49 | 50 | # For details regarding adding assets from package dependencies, see 51 | # https://flutter.io/assets-and-images/#from-packages 52 | 53 | # To add custom fonts to your application, add a fonts section here, 54 | # in this "flutter" section. Each entry in this list should have a 55 | # "family" key with the font family name, and a "fonts" key with a 56 | # list giving the asset and other descriptors for the font. For 57 | # example: 58 | # fonts: 59 | # - family: Schyler 60 | # fonts: 61 | # - asset: fonts/Schyler-Regular.ttf 62 | # - asset: fonts/Schyler-Italic.ttf 63 | # style: italic 64 | # - family: Trajan Pro 65 | # fonts: 66 | # - asset: fonts/TrajanPro.ttf 67 | # - asset: fonts/TrajanPro_Bold.ttf 68 | # weight: 700 69 | # 70 | # For details regarding fonts from package dependencies, 71 | # see https://flutter.io/custom-fonts/#from-packages 72 | -------------------------------------------------------------------------------- /flutter_app/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter widget test. 2 | // 3 | // To perform an interaction with a widget in your test, use the WidgetTester 4 | // utility that Flutter provides. For example, you can send tap and scroll 5 | // gestures. You can also use WidgetTester to find child widgets in the widget 6 | // tree, read text, and verify that the values of widget properties are correct. 7 | 8 | import 'package:flutter/material.dart'; 9 | import 'package:flutter_test/flutter_test.dart'; 10 | 11 | import 'package:flutter_app/main.dart'; 12 | 13 | void main() { 14 | testWidgets('Counter increments smoke test', (WidgetTester tester) async { 15 | // Build our app and trigger a frame. 16 | await tester.pumpWidget(MyApp()); 17 | 18 | // Verify that our counter starts at 0. 19 | expect(find.text('0'), findsOneWidget); 20 | expect(find.text('1'), findsNothing); 21 | 22 | // Tap the '+' icon and trigger a frame. 23 | await tester.tap(find.byIcon(Icons.add)); 24 | await tester.pump(); 25 | 26 | // Verify that our counter has incremented. 27 | expect(find.text('0'), findsNothing); 28 | expect(find.text('1'), findsOneWidget); 29 | }); 30 | } 31 | -------------------------------------------------------------------------------- /flutter_app/test_driver/main_test.dart: -------------------------------------------------------------------------------- 1 | // This is a basic Flutter Driver test for the application. A Flutter Driver 2 | // test is an end-to-end test that "drives" your application from another 3 | // process or even from another computer. If you are familiar with 4 | // Selenium/WebDriver for web, Espresso for Android or UI Automation for iOS, 5 | // this is simply Flutter's version of that. 6 | 7 | import 'package:flutter_driver/flutter_driver.dart'; 8 | import 'package:test/test.dart'; 9 | 10 | void main() { 11 | group('end-to-end test', () { 12 | FlutterDriver driver; 13 | 14 | setUpAll(() async { 15 | // Connect to a running Flutter application instance. 16 | driver = await FlutterDriver.connect(); 17 | }); 18 | 19 | tearDownAll(() async { 20 | if (driver != null) 21 | driver.close(); 22 | }); 23 | 24 | test('tap on the floating action button; verify counter', () async { 25 | // Finds the floating action button (fab) to tap on 26 | SerializableFinder fab = find.byTooltip('Increment'); 27 | 28 | // Wait for the floating action button to appear 29 | await driver.waitFor(fab); 30 | 31 | // Tap on the fab 32 | await driver.tap(fab); 33 | 34 | // Wait for text to change to the desired value 35 | await driver.waitFor(find.text('1')); 36 | }); 37 | }); 38 | } 39 | -------------------------------------------------------------------------------- /script/android-wait-for-emulator.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Originally written by Ralf Kistner , but placed in the public domain 4 | 5 | #set -x 6 | set +e 7 | 8 | bootanim="" 9 | failcounter=0 10 | #timeout_in_sec=360 # 6 minutes 11 | timeout_in_sec=600 # 10 minutes 12 | 13 | until [[ "$bootanim" =~ "stopped" ]]; do 14 | bootanim=`adb -e shell getprop init.svc.bootanim 2>&1 &` 15 | #echo bootanim=\`$bootanim\` 16 | if [[ "$bootanim" =~ "device not found" || "$bootanim" =~ "device offline" 17 | || "$bootanim" =~ "running" || "$bootanim" =~ "error: no emulators found" ]]; then 18 | let "failcounter += 1" 19 | echo "Waiting for emulator to start: $failcounter of $timeout_in_sec : status: $bootanim" 20 | if [[ $failcounter -ge timeout_in_sec ]]; then 21 | echo "Timeout ($timeout_in_sec seconds) reached; failed to start emulator" 22 | exit 1 23 | fi 24 | fi 25 | sleep 1 26 | done 27 | 28 | echo "Emulator is ready" --------------------------------------------------------------------------------