Commit 195d6775558ea966b1aad4ef5e5a25c3fde101fd
1 parent
06094aa1
版本升级 OK ----- 目前未使用文字提示更新内容,调取鸿蒙原生检测api判断商城是否有上新
Showing
100 changed files
with
2177 additions
and
34 deletions
Too many changes to show.
To preserve performance only 100 of 100+ files are displayed.
| @@ -4,7 +4,7 @@ import 'package:fluwx/fluwx.dart'; | @@ -4,7 +4,7 @@ import 'package:fluwx/fluwx.dart'; | ||
| 4 | class Constant { | 4 | class Constant { |
| 5 | static const int status_success = 200; //服务器返回成功 | 5 | static const int status_success = 200; //服务器返回成功 |
| 6 | 6 | ||
| 7 | - static const String ohos_app_id = '6917567548342276009'; //服务器返回成功 | 7 | + static const String ohos_app_id = '6917567548342276009'; // |
| 8 | 8 | ||
| 9 | /** | 9 | /** |
| 10 | * | 10 | * |
| @@ -309,16 +309,32 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | @@ -309,16 +309,32 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { | ||
| 309 | if (widget.initialIndex == 0 || | 309 | if (widget.initialIndex == 0 || |
| 310 | widget.initialIndex == 1 && needRefreshTemp == false) return; | 310 | widget.initialIndex == 1 && needRefreshTemp == false) return; |
| 311 | // _initNotification(); | 311 | // _initNotification(); |
| 312 | - Future.delayed(Duration(minutes: 3), () { | 312 | + Future.delayed(Duration(minutes: 3), () async { |
| 313 | //30000 | 313 | //30000 |
| 314 | // ContactModel.getInstance().uploadLocalContact(context); | 314 | // ContactModel.getInstance().uploadLocalContact(context); |
| 315 | - UserModel usermodel = Provider.of<UserModel>(context, listen: false); | 315 | + if (Platform.isIOS || Platform.isAndroid) { |
| 316 | + UserModel usermodel = Provider.of<UserModel>(context, listen: false); | ||
| 317 | + | ||
| 318 | + if (needUpdate && !usermodel.downLoading) { | ||
| 319 | + UpdateModelMy updateModel = new UpdateModelMy(); | ||
| 320 | + updateModel.checkUpdate(context, (version) { | ||
| 321 | + updateModel.showUpdateDialog(context, version); | ||
| 322 | + }, showToast: false); | ||
| 323 | + } | ||
| 324 | + } else if (Platform.isOhos) { | ||
| 325 | + //鸿蒙检测是否有更新 | ||
| 326 | + bool newVersion = await Utils.checkUpdateOhos(); | ||
| 327 | + if (newVersion) { | ||
| 328 | + //弹窗提示 | ||
| 329 | + DialogUtil.cupertinoAlertDialog(context, | ||
| 330 | + textAlign: TextAlign.left, | ||
| 331 | + content: '有新版本上线啦~', | ||
| 332 | + rTitle: '去更新', rCallback: () async { | ||
| 333 | + //跳转鸿蒙商城 | ||
| 316 | 334 | ||
| 317 | - if (needUpdate && !usermodel.downLoading) { | ||
| 318 | - UpdateModelMy updateModel = new UpdateModelMy(); | ||
| 319 | - updateModel.checkUpdate(context, (version) { | ||
| 320 | - updateModel.showUpdateDialog(context, version); | ||
| 321 | - }, showToast: false); | 335 | + Utils.launchAppGallery(); |
| 336 | + }); | ||
| 337 | + } | ||
| 322 | } | 338 | } |
| 323 | }); | 339 | }); |
| 324 | 340 |
| 1 | import 'dart:convert'; | 1 | import 'dart:convert'; |
| 2 | +import 'dart:io'; | ||
| 2 | 3 | ||
| 3 | import 'package:common_utils/common_utils.dart'; | 4 | import 'package:common_utils/common_utils.dart'; |
| 4 | import 'package:flutter/material.dart'; | 5 | import 'package:flutter/material.dart'; |
| 6 | +import 'package:flutter/services.dart'; | ||
| 5 | import 'package:flutter_app_update/azhon_app_update.dart'; | 7 | import 'package:flutter_app_update/azhon_app_update.dart'; |
| 6 | // import 'package:flutter_ex_widget/ex_text.dart'; | 8 | // import 'package:flutter_ex_widget/ex_text.dart'; |
| 7 | import 'package:flutter_screenutil/flutter_screenutil.dart'; | 9 | import 'package:flutter_screenutil/flutter_screenutil.dart'; |
| @@ -361,15 +363,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | @@ -361,15 +363,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | ||
| 361 | } | 363 | } |
| 362 | 364 | ||
| 363 | //检查版本更新 | 365 | //检查版本更新 |
| 364 | - checkUpdate() { | ||
| 365 | - UpdateModelMy updateModel = new UpdateModelMy(); | ||
| 366 | - updateModel.checkUpdate(context, (version) { | ||
| 367 | - _version = version; | ||
| 368 | - setState(() { | ||
| 369 | - newVersion = true; | ||
| 370 | - }); | ||
| 371 | - // updateModel.showUpdateDialog(context, version); | ||
| 372 | - }, showToast: false); | 366 | + checkUpdate() async { |
| 367 | + if (Platform.isIOS || Platform.isAndroid) { | ||
| 368 | + UpdateModelMy updateModel = new UpdateModelMy(); | ||
| 369 | + updateModel.checkUpdate(context, (version) { | ||
| 370 | + _version = version; | ||
| 371 | + setState(() { | ||
| 372 | + newVersion = true; | ||
| 373 | + }); | ||
| 374 | + // updateModel.showUpdateDialog(context, version); | ||
| 375 | + }, showToast: false); | ||
| 376 | + } else if (Platform.isOhos) { | ||
| 377 | + newVersion = await Utils.checkUpdateOhos(); | ||
| 378 | + setState(() {}); | ||
| 379 | + } | ||
| 373 | } | 380 | } |
| 374 | 381 | ||
| 375 | getSellerVersion() async { | 382 | getSellerVersion() async { |
| @@ -1777,20 +1784,40 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | @@ -1777,20 +1784,40 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { | ||
| 1777 | VEmptyView(48), | 1784 | VEmptyView(48), |
| 1778 | InkWell( | 1785 | InkWell( |
| 1779 | onTap: () async { | 1786 | onTap: () async { |
| 1780 | - UserModel usermodel = | ||
| 1781 | - Provider.of<UserModel>(context, | ||
| 1782 | - listen: false); | ||
| 1783 | - if (usermodel.downLoading) { | ||
| 1784 | - Utils.showToast("正在后台下载新版本…"); | ||
| 1785 | - return; | ||
| 1786 | - } | ||
| 1787 | - if (newVersion) { | ||
| 1788 | - UpdateModelMy updateModel = | ||
| 1789 | - new UpdateModelMy(); | ||
| 1790 | - updateModel.showUpdateDialog( | ||
| 1791 | - context, _version); | ||
| 1792 | - } else { | ||
| 1793 | - Utils.showToast("当前已是最新版本"); | 1787 | + if (Platform.isIOS || Platform.isAndroid) { |
| 1788 | + UserModel usermodel = | ||
| 1789 | + Provider.of<UserModel>(context, | ||
| 1790 | + listen: false); | ||
| 1791 | + if (usermodel.downLoading) { | ||
| 1792 | + Utils.showToast("正在后台下载新版本…"); | ||
| 1793 | + return; | ||
| 1794 | + } | ||
| 1795 | + if (newVersion) { | ||
| 1796 | + UpdateModelMy updateModel = | ||
| 1797 | + new UpdateModelMy(); | ||
| 1798 | + updateModel.showUpdateDialog( | ||
| 1799 | + context, _version); | ||
| 1800 | + } else { | ||
| 1801 | + Utils.showToast("当前已是最新版本"); | ||
| 1802 | + } | ||
| 1803 | + } else if (Platform.isOhos) { | ||
| 1804 | + if (newVersion) { | ||
| 1805 | + // UpdateModelMy updateModel = | ||
| 1806 | + // new UpdateModelMy(); | ||
| 1807 | + // updateModel.showUpdateDialog( | ||
| 1808 | + // context, _version); | ||
| 1809 | + | ||
| 1810 | + DialogUtil.cupertinoAlertDialog(context, | ||
| 1811 | + textAlign: TextAlign.left, | ||
| 1812 | + content: '有新版本上线啦~', | ||
| 1813 | + rTitle: '去更新', rCallback: () async { | ||
| 1814 | + //跳转鸿蒙商城 | ||
| 1815 | + | ||
| 1816 | + Utils.launchAppGallery(); | ||
| 1817 | + }); | ||
| 1818 | + } else { | ||
| 1819 | + Utils.showToast("当前已是最新版本"); | ||
| 1820 | + } | ||
| 1794 | } | 1821 | } |
| 1795 | }, | 1822 | }, |
| 1796 | child: Row( | 1823 | child: Row( |
| @@ -177,9 +177,14 @@ class UpdateModelMy { | @@ -177,9 +177,14 @@ class UpdateModelMy { | ||
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | + | ||
| 181 | + | ||
| 182 | + | ||
| 180 | Future<void> launchHarmonyAppStore(String appId) async { | 183 | Future<void> launchHarmonyAppStore(String appId) async { |
| 181 | String fileUrl = | 184 | String fileUrl = |
| 182 | 'store://appgallery.huawei.com/app/detail?id=yylx.danmaku.bili'; | 185 | 'store://appgallery.huawei.com/app/detail?id=yylx.danmaku.bili'; |
| 186 | + | ||
| 187 | + | ||
| 183 | String goStore = 'goStore'; | 188 | String goStore = 'goStore'; |
| 184 | final res = await InstallPlugin.install(fileUrl); | 189 | final res = await InstallPlugin.install(fileUrl); |
| 185 | print(res); | 190 | print(res); |
| @@ -281,7 +286,8 @@ class UpdateModelMy { | @@ -281,7 +286,8 @@ class UpdateModelMy { | ||
| 281 | InstallPlugin.gotoAppStore( | 286 | InstallPlugin.gotoAppStore( |
| 282 | "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1510697490"); | 287 | "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1510697490"); |
| 283 | } else if (Platform.isOhos) { | 288 | } else if (Platform.isOhos) { |
| 284 | - launchHarmonyAppStore(Constant.ohos_app_id); | 289 | + // launchHarmonyAppStore(Constant.ohos_app_id); |
| 290 | + // _launchAppGallery(); | ||
| 285 | } | 291 | } |
| 286 | }, | 292 | }, |
| 287 | child: FixedText( | 293 | child: FixedText( |
| @@ -59,11 +59,52 @@ import 'package:path/path.dart' as p; // 导入path包 | @@ -59,11 +59,52 @@ import 'package:path/path.dart' as p; // 导入path包 | ||
| 59 | import 'package:flutter_udid/flutter_udid.dart'; | 59 | import 'package:flutter_udid/flutter_udid.dart'; |
| 60 | // import 'package:package_info/package_info.dart'; | 60 | // import 'package:package_info/package_info.dart'; |
| 61 | import 'package:package_info_plus/package_info_plus.dart'; | 61 | import 'package:package_info_plus/package_info_plus.dart'; |
| 62 | +import 'package:app_update_check_plugin/app_update_check_plugin.dart'; | ||
| 62 | 63 | ||
| 63 | typedef BookTimeSetCallback = void Function(bool needChange); | 64 | typedef BookTimeSetCallback = void Function(bool needChange); |
| 64 | 65 | ||
| 65 | class Utils { | 66 | class Utils { |
| 66 | 67 | ||
| 68 | +static Future<bool> checkUpdateOhos()async{ | ||
| 69 | + // 鸿蒙商城是否有新版本 | ||
| 70 | + final _appUpdateCheckPlugin = AppUpdateCheckPlugin(); | ||
| 71 | + try { | ||
| 72 | + bool hasUpdate = await _appUpdateCheckPlugin.checkAppUpdate(); | ||
| 73 | + if (hasUpdate) { | ||
| 74 | + //跳转应用商城 | ||
| 75 | + | ||
| 76 | + return true; | ||
| 77 | + } else { | ||
| 78 | + | ||
| 79 | + return false; | ||
| 80 | + } | ||
| 81 | + } on PlatformException { | ||
| 82 | + return false; | ||
| 83 | + // platformVersion = 'Failed to get platform version.'; | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + | ||
| 90 | + | ||
| 91 | + // 跳转到华为应用商城更新的方法 | ||
| 92 | +static void launchAppGallery() async{ | ||
| 93 | + final appid =Constant.ohos_app_id; //可以是应用id、也可以是鸿蒙应用包名 | ||
| 94 | + // final url='store://appgallery.huawei.com/app/detail?id=$appid'; | ||
| 95 | + | ||
| 96 | + final url= 'store://appgallery.huawei.com/app/detail?id=com.jd.hm.mall&channelId=LAUNCHERSHARE'; | ||
| 97 | + | ||
| 98 | + | ||
| 99 | + try{ | ||
| 100 | + await launchUrl(Uri.parse(url)); | ||
| 101 | + print('打开成功'); | ||
| 102 | + }catch(err){ | ||
| 103 | + print('打开失败'); | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | +} | ||
| 107 | + | ||
| 67 | 108 | ||
| 68 | 109 | ||
| 69 | 110 |
library/app_update_check_plugin/.gitignore
0 → 100644
| 1 | +# Miscellaneous | ||
| 2 | +*.class | ||
| 3 | +*.log | ||
| 4 | +*.pyc | ||
| 5 | +*.swp | ||
| 6 | +.DS_Store | ||
| 7 | +.atom/ | ||
| 8 | +.buildlog/ | ||
| 9 | +.history | ||
| 10 | +.svn/ | ||
| 11 | +migrate_working_dir/ | ||
| 12 | + | ||
| 13 | +# IntelliJ related | ||
| 14 | +*.iml | ||
| 15 | +*.ipr | ||
| 16 | +*.iws | ||
| 17 | +.idea/ | ||
| 18 | + | ||
| 19 | +# The .vscode folder contains launch configuration and tasks you configure in | ||
| 20 | +# VS Code which you may wish to be included in version control, so this line | ||
| 21 | +# is commented out by default. | ||
| 22 | +#.vscode/ | ||
| 23 | + | ||
| 24 | +# Flutter/Dart/Pub related | ||
| 25 | +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. | ||
| 26 | +/pubspec.lock | ||
| 27 | +**/doc/api/ | ||
| 28 | +.dart_tool/ | ||
| 29 | +build/ |
library/app_update_check_plugin/.metadata
0 → 100644
| 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: "c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd" | ||
| 8 | + channel: "[user-branch]" | ||
| 9 | + | ||
| 10 | +project_type: plugin | ||
| 11 | + | ||
| 12 | +# Tracks metadata for the flutter migrate command | ||
| 13 | +migration: | ||
| 14 | + platforms: | ||
| 15 | + - platform: root | ||
| 16 | + create_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 17 | + base_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 18 | + - platform: android | ||
| 19 | + create_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 20 | + base_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 21 | + - platform: ios | ||
| 22 | + create_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 23 | + base_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 24 | + - platform: ohos | ||
| 25 | + create_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 26 | + base_revision: c4a66f77d0e5047ddf5a1bd353fd3ee9cbfeafcd | ||
| 27 | + | ||
| 28 | + # User provided section | ||
| 29 | + | ||
| 30 | + # List of Local paths (relative to this file) that should be | ||
| 31 | + # ignored by the migrate tool. | ||
| 32 | + # | ||
| 33 | + # Files that are not part of the templates will be ignored by default. | ||
| 34 | + unmanaged_files: | ||
| 35 | + - 'lib/main.dart' | ||
| 36 | + - 'ios/Runner.xcodeproj/project.pbxproj' |
library/app_update_check_plugin/CHANGELOG.md
0 → 100644
library/app_update_check_plugin/LICENSE
0 → 100644
| 1 | +TODO: Add your license here. |
library/app_update_check_plugin/README.md
0 → 100644
| 1 | +# app_update_check_plugin | ||
| 2 | + | ||
| 3 | +A new Flutter plugin project. | ||
| 4 | + | ||
| 5 | +## Getting Started | ||
| 6 | + | ||
| 7 | +This project is a starting point for a Flutter | ||
| 8 | +[plug-in package](https://flutter.dev/developing-packages/), | ||
| 9 | +a specialized package that includes platform-specific implementation code for | ||
| 10 | +Android and/or iOS. | ||
| 11 | + | ||
| 12 | +For help getting started with Flutter development, view the | ||
| 13 | +[online documentation](https://flutter.dev/docs), which offers tutorials, | ||
| 14 | +samples, guidance on mobile development, and a full API reference. | ||
| 15 | + |
| 1 | +group = "com.example.app_update_check_plugin" | ||
| 2 | +version = "1.0-SNAPSHOT" | ||
| 3 | + | ||
| 4 | +buildscript { | ||
| 5 | + ext.kotlin_version = "1.7.10" | ||
| 6 | + repositories { | ||
| 7 | + google() | ||
| 8 | + mavenCentral() | ||
| 9 | + } | ||
| 10 | + | ||
| 11 | + dependencies { | ||
| 12 | + classpath("com.android.tools.build:gradle:7.3.0") | ||
| 13 | + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") | ||
| 14 | + } | ||
| 15 | +} | ||
| 16 | + | ||
| 17 | +allprojects { | ||
| 18 | + repositories { | ||
| 19 | + google() | ||
| 20 | + mavenCentral() | ||
| 21 | + } | ||
| 22 | +} | ||
| 23 | + | ||
| 24 | +apply plugin: "com.android.library" | ||
| 25 | +apply plugin: "kotlin-android" | ||
| 26 | + | ||
| 27 | +android { | ||
| 28 | + if (project.android.hasProperty("namespace")) { | ||
| 29 | + namespace = "com.example.app_update_check_plugin" | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + compileSdk = 34 | ||
| 33 | + | ||
| 34 | + compileOptions { | ||
| 35 | + sourceCompatibility = JavaVersion.VERSION_1_8 | ||
| 36 | + targetCompatibility = JavaVersion.VERSION_1_8 | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + kotlinOptions { | ||
| 40 | + jvmTarget = "1.8" | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + sourceSets { | ||
| 44 | + main.java.srcDirs += "src/main/kotlin" | ||
| 45 | + test.java.srcDirs += "src/test/kotlin" | ||
| 46 | + } | ||
| 47 | + | ||
| 48 | + defaultConfig { | ||
| 49 | + minSdk = 21 | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + dependencies { | ||
| 53 | + testImplementation("org.jetbrains.kotlin:kotlin-test") | ||
| 54 | + testImplementation("org.mockito:mockito-core:5.0.0") | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + testOptions { | ||
| 58 | + unitTests.all { | ||
| 59 | + useJUnitPlatform() | ||
| 60 | + | ||
| 61 | + testLogging { | ||
| 62 | + events "passed", "skipped", "failed", "standardOut", "standardError" | ||
| 63 | + outputs.upToDateWhen {false} | ||
| 64 | + showStandardStreams = true | ||
| 65 | + } | ||
| 66 | + } | ||
| 67 | + } | ||
| 68 | +} |
| 1 | +rootProject.name = 'app_update_check_plugin' |
| 1 | +package com.example.app_update_check_plugin | ||
| 2 | + | ||
| 3 | +import androidx.annotation.NonNull | ||
| 4 | + | ||
| 5 | +import io.flutter.embedding.engine.plugins.FlutterPlugin | ||
| 6 | +import io.flutter.plugin.common.MethodCall | ||
| 7 | +import io.flutter.plugin.common.MethodChannel | ||
| 8 | +import io.flutter.plugin.common.MethodChannel.MethodCallHandler | ||
| 9 | +import io.flutter.plugin.common.MethodChannel.Result | ||
| 10 | + | ||
| 11 | +/** AppUpdateCheckPlugin */ | ||
| 12 | +class AppUpdateCheckPlugin: FlutterPlugin, MethodCallHandler { | ||
| 13 | + /// The MethodChannel that will the communication between Flutter and native Android | ||
| 14 | + /// | ||
| 15 | + /// This local reference serves to register the plugin with the Flutter Engine and unregister it | ||
| 16 | + /// when the Flutter Engine is detached from the Activity | ||
| 17 | + private lateinit var channel : MethodChannel | ||
| 18 | + | ||
| 19 | + override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) { | ||
| 20 | + channel = MethodChannel(flutterPluginBinding.binaryMessenger, "app_update_check_plugin") | ||
| 21 | + channel.setMethodCallHandler(this) | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + override fun onMethodCall(call: MethodCall, result: Result) { | ||
| 25 | + if (call.method == "getPlatformVersion") { | ||
| 26 | + result.success("Android ${android.os.Build.VERSION.RELEASE}") | ||
| 27 | + } else { | ||
| 28 | + result.notImplemented() | ||
| 29 | + } | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) { | ||
| 33 | + channel.setMethodCallHandler(null) | ||
| 34 | + } | ||
| 35 | +} |
| 1 | +package com.example.app_update_check_plugin | ||
| 2 | + | ||
| 3 | +import io.flutter.plugin.common.MethodCall | ||
| 4 | +import io.flutter.plugin.common.MethodChannel | ||
| 5 | +import kotlin.test.Test | ||
| 6 | +import org.mockito.Mockito | ||
| 7 | + | ||
| 8 | +/* | ||
| 9 | + * This demonstrates a simple unit test of the Kotlin portion of this plugin's implementation. | ||
| 10 | + * | ||
| 11 | + * Once you have built the plugin's example app, you can run these tests from the command | ||
| 12 | + * line by running `./gradlew testDebugUnitTest` in the `example/android/` directory, or | ||
| 13 | + * you can run them directly from IDEs that support JUnit such as Android Studio. | ||
| 14 | + */ | ||
| 15 | + | ||
| 16 | +internal class AppUpdateCheckPluginTest { | ||
| 17 | + @Test | ||
| 18 | + fun onMethodCall_getPlatformVersion_returnsExpectedValue() { | ||
| 19 | + val plugin = AppUpdateCheckPlugin() | ||
| 20 | + | ||
| 21 | + val call = MethodCall("getPlatformVersion", null) | ||
| 22 | + val mockResult: MethodChannel.Result = Mockito.mock(MethodChannel.Result::class.java) | ||
| 23 | + plugin.onMethodCall(call, mockResult) | ||
| 24 | + | ||
| 25 | + Mockito.verify(mockResult).success("Android " + android.os.Build.VERSION.RELEASE) | ||
| 26 | + } | ||
| 27 | +} |
| 1 | +# Miscellaneous | ||
| 2 | +*.class | ||
| 3 | +*.log | ||
| 4 | +*.pyc | ||
| 5 | +*.swp | ||
| 6 | +.DS_Store | ||
| 7 | +.atom/ | ||
| 8 | +.buildlog/ | ||
| 9 | +.history | ||
| 10 | +.svn/ | ||
| 11 | +migrate_working_dir/ | ||
| 12 | + | ||
| 13 | +# IntelliJ related | ||
| 14 | +*.iml | ||
| 15 | +*.ipr | ||
| 16 | +*.iws | ||
| 17 | +.idea/ | ||
| 18 | + | ||
| 19 | +# The .vscode folder contains launch configuration and tasks you configure in | ||
| 20 | +# VS Code which you may wish to be included in version control, so this line | ||
| 21 | +# is commented out by default. | ||
| 22 | +#.vscode/ | ||
| 23 | + | ||
| 24 | +# Flutter/Dart/Pub related | ||
| 25 | +**/doc/api/ | ||
| 26 | +**/ios/Flutter/.last_build_id | ||
| 27 | +.dart_tool/ | ||
| 28 | +.flutter-plugins | ||
| 29 | +.flutter-plugins-dependencies | ||
| 30 | +.pub-cache/ | ||
| 31 | +.pub/ | ||
| 32 | +/build/ | ||
| 33 | + | ||
| 34 | +# Symbolication related | ||
| 35 | +app.*.symbols | ||
| 36 | + | ||
| 37 | +# Obfuscation related | ||
| 38 | +app.*.map.json | ||
| 39 | + | ||
| 40 | +# Android Studio will place build artifacts here | ||
| 41 | +/android/app/debug | ||
| 42 | +/android/app/profile | ||
| 43 | +/android/app/release |
| 1 | +# app_update_check_plugin_example | ||
| 2 | + | ||
| 3 | +Demonstrates how to use the app_update_check_plugin plugin. | ||
| 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://docs.flutter.dev/get-started/codelab) | ||
| 12 | +- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) | ||
| 13 | + | ||
| 14 | +For help getting started with Flutter development, view the | ||
| 15 | +[online documentation](https://docs.flutter.dev/), which offers tutorials, | ||
| 16 | +samples, guidance on mobile development, and a full API reference. |
| 1 | +# This file configures the analyzer, which statically analyzes Dart code to | ||
| 2 | +# check for errors, warnings, and lints. | ||
| 3 | +# | ||
| 4 | +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled | ||
| 5 | +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be | ||
| 6 | +# invoked from the command line by running `flutter analyze`. | ||
| 7 | + | ||
| 8 | +# The following line activates a set of recommended lints for Flutter apps, | ||
| 9 | +# packages, and plugins designed to encourage good coding practices. | ||
| 10 | +include: package:flutter_lints/flutter.yaml | ||
| 11 | + | ||
| 12 | +linter: | ||
| 13 | + # The lint rules applied to this project can be customized in the | ||
| 14 | + # section below to disable rules from the `package:flutter_lints/flutter.yaml` | ||
| 15 | + # included above or to enable additional rules. A list of all available lints | ||
| 16 | + # and their documentation is published at https://dart.dev/lints. | ||
| 17 | + # | ||
| 18 | + # Instead of disabling a lint rule for the entire project in the | ||
| 19 | + # section below, it can also be suppressed for a single line of code | ||
| 20 | + # or a specific dart file by using the `// ignore: name_of_lint` and | ||
| 21 | + # `// ignore_for_file: name_of_lint` syntax on the line or in the file | ||
| 22 | + # producing the lint. | ||
| 23 | + rules: | ||
| 24 | + # avoid_print: false # Uncomment to disable the `avoid_print` rule | ||
| 25 | + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule | ||
| 26 | + | ||
| 27 | +# Additional information about this file can be found at | ||
| 28 | +# https://dart.dev/guides/language/analysis-options |
| 1 | +gradle-wrapper.jar | ||
| 2 | +/.gradle | ||
| 3 | +/captures/ | ||
| 4 | +/gradlew | ||
| 5 | +/gradlew.bat | ||
| 6 | +/local.properties | ||
| 7 | +GeneratedPluginRegistrant.java | ||
| 8 | + | ||
| 9 | +# Remember to never publicly share your keystore. | ||
| 10 | +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app | ||
| 11 | +key.properties | ||
| 12 | +**/*.keystore | ||
| 13 | +**/*.jks |
| 1 | +plugins { | ||
| 2 | + id "com.android.application" | ||
| 3 | + id "kotlin-android" | ||
| 4 | + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. | ||
| 5 | + id "dev.flutter.flutter-gradle-plugin" | ||
| 6 | +} | ||
| 7 | + | ||
| 8 | +def localProperties = new Properties() | ||
| 9 | +def localPropertiesFile = rootProject.file("local.properties") | ||
| 10 | +if (localPropertiesFile.exists()) { | ||
| 11 | + localPropertiesFile.withReader("UTF-8") { reader -> | ||
| 12 | + localProperties.load(reader) | ||
| 13 | + } | ||
| 14 | +} | ||
| 15 | + | ||
| 16 | +def flutterVersionCode = localProperties.getProperty("flutter.versionCode") | ||
| 17 | +if (flutterVersionCode == null) { | ||
| 18 | + flutterVersionCode = "1" | ||
| 19 | +} | ||
| 20 | + | ||
| 21 | +def flutterVersionName = localProperties.getProperty("flutter.versionName") | ||
| 22 | +if (flutterVersionName == null) { | ||
| 23 | + flutterVersionName = "1.0" | ||
| 24 | +} | ||
| 25 | + | ||
| 26 | +android { | ||
| 27 | + namespace = "com.example.app_update_check_plugin_example" | ||
| 28 | + compileSdk = flutter.compileSdkVersion | ||
| 29 | + ndkVersion = flutter.ndkVersion | ||
| 30 | + | ||
| 31 | + compileOptions { | ||
| 32 | + sourceCompatibility = JavaVersion.VERSION_1_8 | ||
| 33 | + targetCompatibility = JavaVersion.VERSION_1_8 | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + defaultConfig { | ||
| 37 | + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | ||
| 38 | + applicationId = "com.example.app_update_check_plugin_example" | ||
| 39 | + // You can update the following values to match your application needs. | ||
| 40 | + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. | ||
| 41 | + minSdk = flutter.minSdkVersion | ||
| 42 | + targetSdk = flutter.targetSdkVersion | ||
| 43 | + versionCode = flutterVersionCode.toInteger() | ||
| 44 | + versionName = flutterVersionName | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + buildTypes { | ||
| 48 | + release { | ||
| 49 | + // TODO: Add your own signing config for the release build. | ||
| 50 | + // Signing with the debug keys for now, so `flutter run --release` works. | ||
| 51 | + signingConfig = signingConfigs.debug | ||
| 52 | + } | ||
| 53 | + } | ||
| 54 | +} | ||
| 55 | + | ||
| 56 | +flutter { | ||
| 57 | + source = "../.." | ||
| 58 | +} |
| 1 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 2 | + <!-- The INTERNET permission is required for development. Specifically, | ||
| 3 | + the Flutter tool needs it to communicate with the running application | ||
| 4 | + to allow setting breakpoints, to provide hot reload, etc. | ||
| 5 | + --> | ||
| 6 | + <uses-permission android:name="android.permission.INTERNET"/> | ||
| 7 | +</manifest> |
| 1 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 2 | + <application | ||
| 3 | + android:label="app_update_check_plugin_example" | ||
| 4 | + android:name="${applicationName}" | ||
| 5 | + android:icon="@mipmap/ic_launcher"> | ||
| 6 | + <activity | ||
| 7 | + android:name=".MainActivity" | ||
| 8 | + android:exported="true" | ||
| 9 | + android:launchMode="singleTop" | ||
| 10 | + android:taskAffinity="" | ||
| 11 | + android:theme="@style/LaunchTheme" | ||
| 12 | + android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" | ||
| 13 | + android:hardwareAccelerated="true" | ||
| 14 | + android:windowSoftInputMode="adjustResize"> | ||
| 15 | + <!-- Specifies an Android theme to apply to this Activity as soon as | ||
| 16 | + the Android process has started. This theme is visible to the user | ||
| 17 | + while the Flutter UI initializes. After that, this theme continues | ||
| 18 | + to determine the Window background behind the Flutter UI. --> | ||
| 19 | + <meta-data | ||
| 20 | + android:name="io.flutter.embedding.android.NormalTheme" | ||
| 21 | + android:resource="@style/NormalTheme" | ||
| 22 | + /> | ||
| 23 | + <intent-filter> | ||
| 24 | + <action android:name="android.intent.action.MAIN"/> | ||
| 25 | + <category android:name="android.intent.category.LAUNCHER"/> | ||
| 26 | + </intent-filter> | ||
| 27 | + </activity> | ||
| 28 | + <!-- Don't delete the meta-data below. | ||
| 29 | + This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> | ||
| 30 | + <meta-data | ||
| 31 | + android:name="flutterEmbedding" | ||
| 32 | + android:value="2" /> | ||
| 33 | + </application> | ||
| 34 | + <!-- Required to query activities that can process text, see: | ||
| 35 | + https://developer.android.com/training/package-visibility and | ||
| 36 | + https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT. | ||
| 37 | + | ||
| 38 | + In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> | ||
| 39 | + <queries> | ||
| 40 | + <intent> | ||
| 41 | + <action android:name="android.intent.action.PROCESS_TEXT"/> | ||
| 42 | + <data android:mimeType="text/plain"/> | ||
| 43 | + </intent> | ||
| 44 | + </queries> | ||
| 45 | +</manifest> |
library/app_update_check_plugin/example/android/app/src/main/res/drawable-v21/launch_background.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<!-- Modify this file to customize your launch splash screen --> | ||
| 3 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 4 | + <item android:drawable="?android:colorBackground" /> | ||
| 5 | + | ||
| 6 | + <!-- You can insert your own image assets here --> | ||
| 7 | + <!-- <item> | ||
| 8 | + <bitmap | ||
| 9 | + android:gravity="center" | ||
| 10 | + android:src="@mipmap/launch_image" /> | ||
| 11 | + </item> --> | ||
| 12 | +</layer-list> |
library/app_update_check_plugin/example/android/app/src/main/res/drawable/launch_background.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<!-- Modify this file to customize your launch splash screen --> | ||
| 3 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 4 | + <item android:drawable="@android:color/white" /> | ||
| 5 | + | ||
| 6 | + <!-- You can insert your own image assets here --> | ||
| 7 | + <!-- <item> | ||
| 8 | + <bitmap | ||
| 9 | + android:gravity="center" | ||
| 10 | + android:src="@mipmap/launch_image" /> | ||
| 11 | + </item> --> | ||
| 12 | +</layer-list> |
library/app_update_check_plugin/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
0 → 100644
544 Bytes
library/app_update_check_plugin/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
0 → 100644
442 Bytes
library/app_update_check_plugin/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
0 → 100644
721 Bytes
library/app_update_check_plugin/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
0 → 100644
1.01 KB
library/app_update_check_plugin/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
0 → 100644
1.41 KB
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<resources> | ||
| 3 | + <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on --> | ||
| 4 | + <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar"> | ||
| 5 | + <!-- Show a splash screen on the activity. Automatically removed when | ||
| 6 | + the Flutter engine draws its first frame --> | ||
| 7 | + <item name="android:windowBackground">@drawable/launch_background</item> | ||
| 8 | + </style> | ||
| 9 | + <!-- Theme applied to the Android Window as soon as the process has started. | ||
| 10 | + This theme determines the color of the Android Window while your | ||
| 11 | + Flutter UI initializes, as well as behind your Flutter UI while its | ||
| 12 | + running. | ||
| 13 | + | ||
| 14 | + This Theme is only used starting with V2 of Flutter's Android embedding. --> | ||
| 15 | + <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar"> | ||
| 16 | + <item name="android:windowBackground">?android:colorBackground</item> | ||
| 17 | + </style> | ||
| 18 | +</resources> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<resources> | ||
| 3 | + <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off --> | ||
| 4 | + <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar"> | ||
| 5 | + <!-- Show a splash screen on the activity. Automatically removed when | ||
| 6 | + the Flutter engine draws its first frame --> | ||
| 7 | + <item name="android:windowBackground">@drawable/launch_background</item> | ||
| 8 | + </style> | ||
| 9 | + <!-- Theme applied to the Android Window as soon as the process has started. | ||
| 10 | + This theme determines the color of the Android Window while your | ||
| 11 | + Flutter UI initializes, as well as behind your Flutter UI while its | ||
| 12 | + running. | ||
| 13 | + | ||
| 14 | + This Theme is only used starting with V2 of Flutter's Android embedding. --> | ||
| 15 | + <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar"> | ||
| 16 | + <item name="android:windowBackground">?android:colorBackground</item> | ||
| 17 | + </style> | ||
| 18 | +</resources> |
| 1 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 2 | + <!-- The INTERNET permission is required for development. Specifically, | ||
| 3 | + the Flutter tool needs it to communicate with the running application | ||
| 4 | + to allow setting breakpoints, to provide hot reload, etc. | ||
| 5 | + --> | ||
| 6 | + <uses-permission android:name="android.permission.INTERNET"/> | ||
| 7 | +</manifest> |
| 1 | +allprojects { | ||
| 2 | + repositories { | ||
| 3 | + google() | ||
| 4 | + mavenCentral() | ||
| 5 | + } | ||
| 6 | +} | ||
| 7 | + | ||
| 8 | +rootProject.buildDir = "../build" | ||
| 9 | +subprojects { | ||
| 10 | + project.buildDir = "${rootProject.buildDir}/${project.name}" | ||
| 11 | +} | ||
| 12 | +subprojects { | ||
| 13 | + project.evaluationDependsOn(":app") | ||
| 14 | +} | ||
| 15 | + | ||
| 16 | +tasks.register("clean", Delete) { | ||
| 17 | + delete rootProject.buildDir | ||
| 18 | +} |
| 1 | +pluginManagement { | ||
| 2 | + def flutterSdkPath = { | ||
| 3 | + def properties = new Properties() | ||
| 4 | + file("local.properties").withInputStream { properties.load(it) } | ||
| 5 | + def flutterSdkPath = properties.getProperty("flutter.sdk") | ||
| 6 | + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" | ||
| 7 | + return flutterSdkPath | ||
| 8 | + }() | ||
| 9 | + | ||
| 10 | + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") | ||
| 11 | + | ||
| 12 | + repositories { | ||
| 13 | + google() | ||
| 14 | + mavenCentral() | ||
| 15 | + gradlePluginPortal() | ||
| 16 | + } | ||
| 17 | +} | ||
| 18 | + | ||
| 19 | +plugins { | ||
| 20 | + id "dev.flutter.flutter-plugin-loader" version "1.0.0" | ||
| 21 | + id "com.android.application" version "7.3.0" apply false | ||
| 22 | + id "org.jetbrains.kotlin.android" version "1.7.10" apply false | ||
| 23 | +} | ||
| 24 | + | ||
| 25 | +include ":app" |
| 1 | +// This is a basic Flutter integration test. | ||
| 2 | +// | ||
| 3 | +// Since integration tests run in a full Flutter application, they can interact | ||
| 4 | +// with the host side of a plugin implementation, unlike Dart unit tests. | ||
| 5 | +// | ||
| 6 | +// For more information about Flutter integration tests, please see | ||
| 7 | +// https://docs.flutter.dev/cookbook/testing/integration/introduction | ||
| 8 | + | ||
| 9 | + | ||
| 10 | +import 'package:flutter_test/flutter_test.dart'; | ||
| 11 | +import 'package:integration_test/integration_test.dart'; | ||
| 12 | + | ||
| 13 | +import 'package:app_update_check_plugin/app_update_check_plugin.dart'; | ||
| 14 | + | ||
| 15 | +void main() { | ||
| 16 | + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); | ||
| 17 | + | ||
| 18 | + testWidgets('getPlatformVersion test', (WidgetTester tester) async { | ||
| 19 | + final AppUpdateCheckPlugin plugin = AppUpdateCheckPlugin(); | ||
| 20 | + final String? version = await plugin.getPlatformVersion(); | ||
| 21 | + // The version string depends on the host platform running the test, so | ||
| 22 | + // just assert that some non-empty string is returned. | ||
| 23 | + expect(version?.isNotEmpty, true); | ||
| 24 | + }); | ||
| 25 | +} |
| 1 | +**/dgph | ||
| 2 | +*.mode1v3 | ||
| 3 | +*.mode2v3 | ||
| 4 | +*.moved-aside | ||
| 5 | +*.pbxuser | ||
| 6 | +*.perspectivev3 | ||
| 7 | +**/*sync/ | ||
| 8 | +.sconsign.dblite | ||
| 9 | +.tags* | ||
| 10 | +**/.vagrant/ | ||
| 11 | +**/DerivedData/ | ||
| 12 | +Icon? | ||
| 13 | +**/Pods/ | ||
| 14 | +**/.symlinks/ | ||
| 15 | +profile | ||
| 16 | +xcuserdata | ||
| 17 | +**/.generated/ | ||
| 18 | +Flutter/App.framework | ||
| 19 | +Flutter/Flutter.framework | ||
| 20 | +Flutter/Flutter.podspec | ||
| 21 | +Flutter/Generated.xcconfig | ||
| 22 | +Flutter/ephemeral/ | ||
| 23 | +Flutter/app.flx | ||
| 24 | +Flutter/app.zip | ||
| 25 | +Flutter/flutter_assets/ | ||
| 26 | +Flutter/flutter_export_environment.sh | ||
| 27 | +ServiceDefinitions.json | ||
| 28 | +Runner/GeneratedPluginRegistrant.* | ||
| 29 | + | ||
| 30 | +# Exceptions to above rules. | ||
| 31 | +!default.mode1v3 | ||
| 32 | +!default.mode2v3 | ||
| 33 | +!default.pbxuser | ||
| 34 | +!default.perspectivev3 |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 3 | +<plist version="1.0"> | ||
| 4 | +<dict> | ||
| 5 | + <key>CFBundleDevelopmentRegion</key> | ||
| 6 | + <string>en</string> | ||
| 7 | + <key>CFBundleExecutable</key> | ||
| 8 | + <string>App</string> | ||
| 9 | + <key>CFBundleIdentifier</key> | ||
| 10 | + <string>io.flutter.flutter.app</string> | ||
| 11 | + <key>CFBundleInfoDictionaryVersion</key> | ||
| 12 | + <string>6.0</string> | ||
| 13 | + <key>CFBundleName</key> | ||
| 14 | + <string>App</string> | ||
| 15 | + <key>CFBundlePackageType</key> | ||
| 16 | + <string>FMWK</string> | ||
| 17 | + <key>CFBundleShortVersionString</key> | ||
| 18 | + <string>1.0</string> | ||
| 19 | + <key>CFBundleSignature</key> | ||
| 20 | + <string>????</string> | ||
| 21 | + <key>CFBundleVersion</key> | ||
| 22 | + <string>1.0</string> | ||
| 23 | + <key>MinimumOSVersion</key> | ||
| 24 | + <string>12.0</string> | ||
| 25 | +</dict> | ||
| 26 | +</plist> |
| 1 | +# Uncomment this line to define a global platform for your project | ||
| 2 | +# platform :ios, '12.0' | ||
| 3 | + | ||
| 4 | +# CocoaPods analytics sends network stats synchronously affecting flutter build latency. | ||
| 5 | +ENV['COCOAPODS_DISABLE_STATS'] = 'true' | ||
| 6 | + | ||
| 7 | +project 'Runner', { | ||
| 8 | + 'Debug' => :debug, | ||
| 9 | + 'Profile' => :release, | ||
| 10 | + 'Release' => :release, | ||
| 11 | +} | ||
| 12 | + | ||
| 13 | +def flutter_root | ||
| 14 | + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) | ||
| 15 | + unless File.exist?(generated_xcode_build_settings_path) | ||
| 16 | + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" | ||
| 17 | + end | ||
| 18 | + | ||
| 19 | + File.foreach(generated_xcode_build_settings_path) do |line| | ||
| 20 | + matches = line.match(/FLUTTER_ROOT\=(.*)/) | ||
| 21 | + return matches[1].strip if matches | ||
| 22 | + end | ||
| 23 | + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" | ||
| 24 | +end | ||
| 25 | + | ||
| 26 | +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) | ||
| 27 | + | ||
| 28 | +flutter_ios_podfile_setup | ||
| 29 | + | ||
| 30 | +target 'Runner' do | ||
| 31 | + use_frameworks! | ||
| 32 | + use_modular_headers! | ||
| 33 | + | ||
| 34 | + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) | ||
| 35 | + target 'RunnerTests' do | ||
| 36 | + inherit! :search_paths | ||
| 37 | + end | ||
| 38 | +end | ||
| 39 | + | ||
| 40 | +post_install do |installer| | ||
| 41 | + installer.pods_project.targets.each do |target| | ||
| 42 | + flutter_additional_ios_build_settings(target) | ||
| 43 | + end | ||
| 44 | +end |
| 1 | +// !$*UTF8*$! | ||
| 2 | +{ | ||
| 3 | + archiveVersion = 1; | ||
| 4 | + classes = { | ||
| 5 | + }; | ||
| 6 | + objectVersion = 54; | ||
| 7 | + objects = { | ||
| 8 | + | ||
| 9 | +/* Begin PBXBuildFile section */ | ||
| 10 | + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; | ||
| 11 | + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; }; | ||
| 12 | + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; | ||
| 13 | + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; | ||
| 14 | + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; | ||
| 15 | + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; | ||
| 16 | + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; | ||
| 17 | +/* End PBXBuildFile section */ | ||
| 18 | + | ||
| 19 | +/* Begin PBXContainerItemProxy section */ | ||
| 20 | + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = { | ||
| 21 | + isa = PBXContainerItemProxy; | ||
| 22 | + containerPortal = 97C146E61CF9000F007C117D /* Project object */; | ||
| 23 | + proxyType = 1; | ||
| 24 | + remoteGlobalIDString = 97C146ED1CF9000F007C117D; | ||
| 25 | + remoteInfo = Runner; | ||
| 26 | + }; | ||
| 27 | +/* End PBXContainerItemProxy section */ | ||
| 28 | + | ||
| 29 | +/* Begin PBXCopyFilesBuildPhase section */ | ||
| 30 | + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { | ||
| 31 | + isa = PBXCopyFilesBuildPhase; | ||
| 32 | + buildActionMask = 2147483647; | ||
| 33 | + dstPath = ""; | ||
| 34 | + dstSubfolderSpec = 10; | ||
| 35 | + files = ( | ||
| 36 | + ); | ||
| 37 | + name = "Embed Frameworks"; | ||
| 38 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 39 | + }; | ||
| 40 | +/* End PBXCopyFilesBuildPhase section */ | ||
| 41 | + | ||
| 42 | +/* Begin PBXFileReference section */ | ||
| 43 | + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; }; | ||
| 44 | + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; }; | ||
| 45 | + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; }; | ||
| 46 | + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 47 | + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; }; | ||
| 48 | + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; }; | ||
| 49 | + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; | ||
| 50 | + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; }; | ||
| 51 | + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; }; | ||
| 52 | + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; }; | ||
| 53 | + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
| 54 | + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | ||
| 55 | + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; | ||
| 56 | + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | ||
| 57 | + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
| 58 | +/* End PBXFileReference section */ | ||
| 59 | + | ||
| 60 | +/* Begin PBXFrameworksBuildPhase section */ | ||
| 61 | + 97C146EB1CF9000F007C117D /* Frameworks */ = { | ||
| 62 | + isa = PBXFrameworksBuildPhase; | ||
| 63 | + buildActionMask = 2147483647; | ||
| 64 | + files = ( | ||
| 65 | + ); | ||
| 66 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 67 | + }; | ||
| 68 | +/* End PBXFrameworksBuildPhase section */ | ||
| 69 | + | ||
| 70 | +/* Begin PBXGroup section */ | ||
| 71 | + 331C8082294A63A400263BE5 /* RunnerTests */ = { | ||
| 72 | + isa = PBXGroup; | ||
| 73 | + children = ( | ||
| 74 | + 331C807B294A618700263BE5 /* RunnerTests.swift */, | ||
| 75 | + ); | ||
| 76 | + path = RunnerTests; | ||
| 77 | + sourceTree = "<group>"; | ||
| 78 | + }; | ||
| 79 | + 9740EEB11CF90186004384FC /* Flutter */ = { | ||
| 80 | + isa = PBXGroup; | ||
| 81 | + children = ( | ||
| 82 | + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, | ||
| 83 | + 9740EEB21CF90195004384FC /* Debug.xcconfig */, | ||
| 84 | + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, | ||
| 85 | + 9740EEB31CF90195004384FC /* Generated.xcconfig */, | ||
| 86 | + ); | ||
| 87 | + name = Flutter; | ||
| 88 | + sourceTree = "<group>"; | ||
| 89 | + }; | ||
| 90 | + 97C146E51CF9000F007C117D = { | ||
| 91 | + isa = PBXGroup; | ||
| 92 | + children = ( | ||
| 93 | + 9740EEB11CF90186004384FC /* Flutter */, | ||
| 94 | + 97C146F01CF9000F007C117D /* Runner */, | ||
| 95 | + 97C146EF1CF9000F007C117D /* Products */, | ||
| 96 | + 331C8082294A63A400263BE5 /* RunnerTests */, | ||
| 97 | + ); | ||
| 98 | + sourceTree = "<group>"; | ||
| 99 | + }; | ||
| 100 | + 97C146EF1CF9000F007C117D /* Products */ = { | ||
| 101 | + isa = PBXGroup; | ||
| 102 | + children = ( | ||
| 103 | + 97C146EE1CF9000F007C117D /* Runner.app */, | ||
| 104 | + 331C8081294A63A400263BE5 /* RunnerTests.xctest */, | ||
| 105 | + ); | ||
| 106 | + name = Products; | ||
| 107 | + sourceTree = "<group>"; | ||
| 108 | + }; | ||
| 109 | + 97C146F01CF9000F007C117D /* Runner */ = { | ||
| 110 | + isa = PBXGroup; | ||
| 111 | + children = ( | ||
| 112 | + 97C146FA1CF9000F007C117D /* Main.storyboard */, | ||
| 113 | + 97C146FD1CF9000F007C117D /* Assets.xcassets */, | ||
| 114 | + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, | ||
| 115 | + 97C147021CF9000F007C117D /* Info.plist */, | ||
| 116 | + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, | ||
| 117 | + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, | ||
| 118 | + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, | ||
| 119 | + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, | ||
| 120 | + ); | ||
| 121 | + path = Runner; | ||
| 122 | + sourceTree = "<group>"; | ||
| 123 | + }; | ||
| 124 | +/* End PBXGroup section */ | ||
| 125 | + | ||
| 126 | +/* Begin PBXNativeTarget section */ | ||
| 127 | + 331C8080294A63A400263BE5 /* RunnerTests */ = { | ||
| 128 | + isa = PBXNativeTarget; | ||
| 129 | + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */; | ||
| 130 | + buildPhases = ( | ||
| 131 | + 331C807D294A63A400263BE5 /* Sources */, | ||
| 132 | + 331C807F294A63A400263BE5 /* Resources */, | ||
| 133 | + ); | ||
| 134 | + buildRules = ( | ||
| 135 | + ); | ||
| 136 | + dependencies = ( | ||
| 137 | + 331C8086294A63A400263BE5 /* PBXTargetDependency */, | ||
| 138 | + ); | ||
| 139 | + name = RunnerTests; | ||
| 140 | + productName = RunnerTests; | ||
| 141 | + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */; | ||
| 142 | + productType = "com.apple.product-type.bundle.unit-test"; | ||
| 143 | + }; | ||
| 144 | + 97C146ED1CF9000F007C117D /* Runner */ = { | ||
| 145 | + isa = PBXNativeTarget; | ||
| 146 | + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; | ||
| 147 | + buildPhases = ( | ||
| 148 | + 9740EEB61CF901F6004384FC /* Run Script */, | ||
| 149 | + 97C146EA1CF9000F007C117D /* Sources */, | ||
| 150 | + 97C146EB1CF9000F007C117D /* Frameworks */, | ||
| 151 | + 97C146EC1CF9000F007C117D /* Resources */, | ||
| 152 | + 9705A1C41CF9048500538489 /* Embed Frameworks */, | ||
| 153 | + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, | ||
| 154 | + ); | ||
| 155 | + buildRules = ( | ||
| 156 | + ); | ||
| 157 | + dependencies = ( | ||
| 158 | + ); | ||
| 159 | + name = Runner; | ||
| 160 | + productName = Runner; | ||
| 161 | + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; | ||
| 162 | + productType = "com.apple.product-type.application"; | ||
| 163 | + }; | ||
| 164 | +/* End PBXNativeTarget section */ | ||
| 165 | + | ||
| 166 | +/* Begin PBXProject section */ | ||
| 167 | + 97C146E61CF9000F007C117D /* Project object */ = { | ||
| 168 | + isa = PBXProject; | ||
| 169 | + attributes = { | ||
| 170 | + BuildIndependentTargetsInParallel = YES; | ||
| 171 | + LastUpgradeCheck = 1510; | ||
| 172 | + ORGANIZATIONNAME = ""; | ||
| 173 | + TargetAttributes = { | ||
| 174 | + 331C8080294A63A400263BE5 = { | ||
| 175 | + CreatedOnToolsVersion = 14.0; | ||
| 176 | + TestTargetID = 97C146ED1CF9000F007C117D; | ||
| 177 | + }; | ||
| 178 | + 97C146ED1CF9000F007C117D = { | ||
| 179 | + CreatedOnToolsVersion = 7.3.1; | ||
| 180 | + LastSwiftMigration = 1100; | ||
| 181 | + }; | ||
| 182 | + }; | ||
| 183 | + }; | ||
| 184 | + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; | ||
| 185 | + compatibilityVersion = "Xcode 9.3"; | ||
| 186 | + developmentRegion = en; | ||
| 187 | + hasScannedForEncodings = 0; | ||
| 188 | + knownRegions = ( | ||
| 189 | + en, | ||
| 190 | + Base, | ||
| 191 | + ); | ||
| 192 | + mainGroup = 97C146E51CF9000F007C117D; | ||
| 193 | + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; | ||
| 194 | + projectDirPath = ""; | ||
| 195 | + projectRoot = ""; | ||
| 196 | + targets = ( | ||
| 197 | + 97C146ED1CF9000F007C117D /* Runner */, | ||
| 198 | + 331C8080294A63A400263BE5 /* RunnerTests */, | ||
| 199 | + ); | ||
| 200 | + }; | ||
| 201 | +/* End PBXProject section */ | ||
| 202 | + | ||
| 203 | +/* Begin PBXResourcesBuildPhase section */ | ||
| 204 | + 331C807F294A63A400263BE5 /* Resources */ = { | ||
| 205 | + isa = PBXResourcesBuildPhase; | ||
| 206 | + buildActionMask = 2147483647; | ||
| 207 | + files = ( | ||
| 208 | + ); | ||
| 209 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 210 | + }; | ||
| 211 | + 97C146EC1CF9000F007C117D /* Resources */ = { | ||
| 212 | + isa = PBXResourcesBuildPhase; | ||
| 213 | + buildActionMask = 2147483647; | ||
| 214 | + files = ( | ||
| 215 | + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, | ||
| 216 | + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, | ||
| 217 | + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, | ||
| 218 | + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, | ||
| 219 | + ); | ||
| 220 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 221 | + }; | ||
| 222 | +/* End PBXResourcesBuildPhase section */ | ||
| 223 | + | ||
| 224 | +/* Begin PBXShellScriptBuildPhase section */ | ||
| 225 | + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { | ||
| 226 | + isa = PBXShellScriptBuildPhase; | ||
| 227 | + alwaysOutOfDate = 1; | ||
| 228 | + buildActionMask = 2147483647; | ||
| 229 | + files = ( | ||
| 230 | + ); | ||
| 231 | + inputPaths = ( | ||
| 232 | + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", | ||
| 233 | + ); | ||
| 234 | + name = "Thin Binary"; | ||
| 235 | + outputPaths = ( | ||
| 236 | + ); | ||
| 237 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 238 | + shellPath = /bin/sh; | ||
| 239 | + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; | ||
| 240 | + }; | ||
| 241 | + 9740EEB61CF901F6004384FC /* Run Script */ = { | ||
| 242 | + isa = PBXShellScriptBuildPhase; | ||
| 243 | + alwaysOutOfDate = 1; | ||
| 244 | + buildActionMask = 2147483647; | ||
| 245 | + files = ( | ||
| 246 | + ); | ||
| 247 | + inputPaths = ( | ||
| 248 | + ); | ||
| 249 | + name = "Run Script"; | ||
| 250 | + outputPaths = ( | ||
| 251 | + ); | ||
| 252 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 253 | + shellPath = /bin/sh; | ||
| 254 | + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; | ||
| 255 | + }; | ||
| 256 | +/* End PBXShellScriptBuildPhase section */ | ||
| 257 | + | ||
| 258 | +/* Begin PBXSourcesBuildPhase section */ | ||
| 259 | + 331C807D294A63A400263BE5 /* Sources */ = { | ||
| 260 | + isa = PBXSourcesBuildPhase; | ||
| 261 | + buildActionMask = 2147483647; | ||
| 262 | + files = ( | ||
| 263 | + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */, | ||
| 264 | + ); | ||
| 265 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 266 | + }; | ||
| 267 | + 97C146EA1CF9000F007C117D /* Sources */ = { | ||
| 268 | + isa = PBXSourcesBuildPhase; | ||
| 269 | + buildActionMask = 2147483647; | ||
| 270 | + files = ( | ||
| 271 | + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, | ||
| 272 | + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, | ||
| 273 | + ); | ||
| 274 | + runOnlyForDeploymentPostprocessing = 0; | ||
| 275 | + }; | ||
| 276 | +/* End PBXSourcesBuildPhase section */ | ||
| 277 | + | ||
| 278 | +/* Begin PBXTargetDependency section */ | ||
| 279 | + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = { | ||
| 280 | + isa = PBXTargetDependency; | ||
| 281 | + target = 97C146ED1CF9000F007C117D /* Runner */; | ||
| 282 | + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */; | ||
| 283 | + }; | ||
| 284 | +/* End PBXTargetDependency section */ | ||
| 285 | + | ||
| 286 | +/* Begin PBXVariantGroup section */ | ||
| 287 | + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { | ||
| 288 | + isa = PBXVariantGroup; | ||
| 289 | + children = ( | ||
| 290 | + 97C146FB1CF9000F007C117D /* Base */, | ||
| 291 | + ); | ||
| 292 | + name = Main.storyboard; | ||
| 293 | + sourceTree = "<group>"; | ||
| 294 | + }; | ||
| 295 | + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { | ||
| 296 | + isa = PBXVariantGroup; | ||
| 297 | + children = ( | ||
| 298 | + 97C147001CF9000F007C117D /* Base */, | ||
| 299 | + ); | ||
| 300 | + name = LaunchScreen.storyboard; | ||
| 301 | + sourceTree = "<group>"; | ||
| 302 | + }; | ||
| 303 | +/* End PBXVariantGroup section */ | ||
| 304 | + | ||
| 305 | +/* Begin XCBuildConfiguration section */ | ||
| 306 | + 249021D3217E4FDB00AE95B9 /* Profile */ = { | ||
| 307 | + isa = XCBuildConfiguration; | ||
| 308 | + buildSettings = { | ||
| 309 | + ALWAYS_SEARCH_USER_PATHS = NO; | ||
| 310 | + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; | ||
| 311 | + CLANG_ANALYZER_NONNULL = YES; | ||
| 312 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | ||
| 313 | + CLANG_CXX_LIBRARY = "libc++"; | ||
| 314 | + CLANG_ENABLE_MODULES = YES; | ||
| 315 | + CLANG_ENABLE_OBJC_ARC = YES; | ||
| 316 | + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | ||
| 317 | + CLANG_WARN_BOOL_CONVERSION = YES; | ||
| 318 | + CLANG_WARN_COMMA = YES; | ||
| 319 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
| 320 | + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; | ||
| 321 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | ||
| 322 | + CLANG_WARN_EMPTY_BODY = YES; | ||
| 323 | + CLANG_WARN_ENUM_CONVERSION = YES; | ||
| 324 | + CLANG_WARN_INFINITE_RECURSION = YES; | ||
| 325 | + CLANG_WARN_INT_CONVERSION = YES; | ||
| 326 | + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | ||
| 327 | + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | ||
| 328 | + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | ||
| 329 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | ||
| 330 | + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | ||
| 331 | + CLANG_WARN_STRICT_PROTOTYPES = YES; | ||
| 332 | + CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
| 333 | + CLANG_WARN_UNREACHABLE_CODE = YES; | ||
| 334 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
| 335 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
| 336 | + COPY_PHASE_STRIP = NO; | ||
| 337 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | ||
| 338 | + ENABLE_NS_ASSERTIONS = NO; | ||
| 339 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
| 340 | + ENABLE_USER_SCRIPT_SANDBOXING = NO; | ||
| 341 | + GCC_C_LANGUAGE_STANDARD = gnu99; | ||
| 342 | + GCC_NO_COMMON_BLOCKS = YES; | ||
| 343 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | ||
| 344 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
| 345 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | ||
| 346 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
| 347 | + GCC_WARN_UNUSED_FUNCTION = YES; | ||
| 348 | + GCC_WARN_UNUSED_VARIABLE = YES; | ||
| 349 | + IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
| 350 | + MTL_ENABLE_DEBUG_INFO = NO; | ||
| 351 | + SDKROOT = iphoneos; | ||
| 352 | + SUPPORTED_PLATFORMS = iphoneos; | ||
| 353 | + TARGETED_DEVICE_FAMILY = "1,2"; | ||
| 354 | + VALIDATE_PRODUCT = YES; | ||
| 355 | + }; | ||
| 356 | + name = Profile; | ||
| 357 | + }; | ||
| 358 | + 249021D4217E4FDB00AE95B9 /* Profile */ = { | ||
| 359 | + isa = XCBuildConfiguration; | ||
| 360 | + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; | ||
| 361 | + buildSettings = { | ||
| 362 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| 363 | + CLANG_ENABLE_MODULES = YES; | ||
| 364 | + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; | ||
| 365 | + DEVELOPMENT_TEAM = 8J59HM8B82; | ||
| 366 | + ENABLE_BITCODE = NO; | ||
| 367 | + INFOPLIST_FILE = Runner/Info.plist; | ||
| 368 | + LD_RUNPATH_SEARCH_PATHS = ( | ||
| 369 | + "$(inherited)", | ||
| 370 | + "@executable_path/Frameworks", | ||
| 371 | + ); | ||
| 372 | + PRODUCT_BUNDLE_IDENTIFIER = com.example.appUpdateCheckPluginExample; | ||
| 373 | + PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| 374 | + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||
| 375 | + SWIFT_VERSION = 5.0; | ||
| 376 | + VERSIONING_SYSTEM = "apple-generic"; | ||
| 377 | + }; | ||
| 378 | + name = Profile; | ||
| 379 | + }; | ||
| 380 | + 331C8088294A63A400263BE5 /* Debug */ = { | ||
| 381 | + isa = XCBuildConfiguration; | ||
| 382 | + buildSettings = { | ||
| 383 | + BUNDLE_LOADER = "$(TEST_HOST)"; | ||
| 384 | + CODE_SIGN_STYLE = Automatic; | ||
| 385 | + CURRENT_PROJECT_VERSION = 1; | ||
| 386 | + GENERATE_INFOPLIST_FILE = YES; | ||
| 387 | + MARKETING_VERSION = 1.0; | ||
| 388 | + PRODUCT_BUNDLE_IDENTIFIER = com.example.appUpdateCheckPluginExample.RunnerTests; | ||
| 389 | + PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| 390 | + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; | ||
| 391 | + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
| 392 | + SWIFT_VERSION = 5.0; | ||
| 393 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; | ||
| 394 | + }; | ||
| 395 | + name = Debug; | ||
| 396 | + }; | ||
| 397 | + 331C8089294A63A400263BE5 /* Release */ = { | ||
| 398 | + isa = XCBuildConfiguration; | ||
| 399 | + buildSettings = { | ||
| 400 | + BUNDLE_LOADER = "$(TEST_HOST)"; | ||
| 401 | + CODE_SIGN_STYLE = Automatic; | ||
| 402 | + CURRENT_PROJECT_VERSION = 1; | ||
| 403 | + GENERATE_INFOPLIST_FILE = YES; | ||
| 404 | + MARKETING_VERSION = 1.0; | ||
| 405 | + PRODUCT_BUNDLE_IDENTIFIER = com.example.appUpdateCheckPluginExample.RunnerTests; | ||
| 406 | + PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| 407 | + SWIFT_VERSION = 5.0; | ||
| 408 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; | ||
| 409 | + }; | ||
| 410 | + name = Release; | ||
| 411 | + }; | ||
| 412 | + 331C808A294A63A400263BE5 /* Profile */ = { | ||
| 413 | + isa = XCBuildConfiguration; | ||
| 414 | + buildSettings = { | ||
| 415 | + BUNDLE_LOADER = "$(TEST_HOST)"; | ||
| 416 | + CODE_SIGN_STYLE = Automatic; | ||
| 417 | + CURRENT_PROJECT_VERSION = 1; | ||
| 418 | + GENERATE_INFOPLIST_FILE = YES; | ||
| 419 | + MARKETING_VERSION = 1.0; | ||
| 420 | + PRODUCT_BUNDLE_IDENTIFIER = com.example.appUpdateCheckPluginExample.RunnerTests; | ||
| 421 | + PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| 422 | + SWIFT_VERSION = 5.0; | ||
| 423 | + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; | ||
| 424 | + }; | ||
| 425 | + name = Profile; | ||
| 426 | + }; | ||
| 427 | + 97C147031CF9000F007C117D /* Debug */ = { | ||
| 428 | + isa = XCBuildConfiguration; | ||
| 429 | + buildSettings = { | ||
| 430 | + ALWAYS_SEARCH_USER_PATHS = NO; | ||
| 431 | + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; | ||
| 432 | + CLANG_ANALYZER_NONNULL = YES; | ||
| 433 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | ||
| 434 | + CLANG_CXX_LIBRARY = "libc++"; | ||
| 435 | + CLANG_ENABLE_MODULES = YES; | ||
| 436 | + CLANG_ENABLE_OBJC_ARC = YES; | ||
| 437 | + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | ||
| 438 | + CLANG_WARN_BOOL_CONVERSION = YES; | ||
| 439 | + CLANG_WARN_COMMA = YES; | ||
| 440 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
| 441 | + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; | ||
| 442 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | ||
| 443 | + CLANG_WARN_EMPTY_BODY = YES; | ||
| 444 | + CLANG_WARN_ENUM_CONVERSION = YES; | ||
| 445 | + CLANG_WARN_INFINITE_RECURSION = YES; | ||
| 446 | + CLANG_WARN_INT_CONVERSION = YES; | ||
| 447 | + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | ||
| 448 | + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | ||
| 449 | + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | ||
| 450 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | ||
| 451 | + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | ||
| 452 | + CLANG_WARN_STRICT_PROTOTYPES = YES; | ||
| 453 | + CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
| 454 | + CLANG_WARN_UNREACHABLE_CODE = YES; | ||
| 455 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
| 456 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
| 457 | + COPY_PHASE_STRIP = NO; | ||
| 458 | + DEBUG_INFORMATION_FORMAT = dwarf; | ||
| 459 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
| 460 | + ENABLE_TESTABILITY = YES; | ||
| 461 | + ENABLE_USER_SCRIPT_SANDBOXING = NO; | ||
| 462 | + GCC_C_LANGUAGE_STANDARD = gnu99; | ||
| 463 | + GCC_DYNAMIC_NO_PIC = NO; | ||
| 464 | + GCC_NO_COMMON_BLOCKS = YES; | ||
| 465 | + GCC_OPTIMIZATION_LEVEL = 0; | ||
| 466 | + GCC_PREPROCESSOR_DEFINITIONS = ( | ||
| 467 | + "DEBUG=1", | ||
| 468 | + "$(inherited)", | ||
| 469 | + ); | ||
| 470 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | ||
| 471 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
| 472 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | ||
| 473 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
| 474 | + GCC_WARN_UNUSED_FUNCTION = YES; | ||
| 475 | + GCC_WARN_UNUSED_VARIABLE = YES; | ||
| 476 | + IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
| 477 | + MTL_ENABLE_DEBUG_INFO = YES; | ||
| 478 | + ONLY_ACTIVE_ARCH = YES; | ||
| 479 | + SDKROOT = iphoneos; | ||
| 480 | + TARGETED_DEVICE_FAMILY = "1,2"; | ||
| 481 | + }; | ||
| 482 | + name = Debug; | ||
| 483 | + }; | ||
| 484 | + 97C147041CF9000F007C117D /* Release */ = { | ||
| 485 | + isa = XCBuildConfiguration; | ||
| 486 | + buildSettings = { | ||
| 487 | + ALWAYS_SEARCH_USER_PATHS = NO; | ||
| 488 | + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; | ||
| 489 | + CLANG_ANALYZER_NONNULL = YES; | ||
| 490 | + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | ||
| 491 | + CLANG_CXX_LIBRARY = "libc++"; | ||
| 492 | + CLANG_ENABLE_MODULES = YES; | ||
| 493 | + CLANG_ENABLE_OBJC_ARC = YES; | ||
| 494 | + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | ||
| 495 | + CLANG_WARN_BOOL_CONVERSION = YES; | ||
| 496 | + CLANG_WARN_COMMA = YES; | ||
| 497 | + CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
| 498 | + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; | ||
| 499 | + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | ||
| 500 | + CLANG_WARN_EMPTY_BODY = YES; | ||
| 501 | + CLANG_WARN_ENUM_CONVERSION = YES; | ||
| 502 | + CLANG_WARN_INFINITE_RECURSION = YES; | ||
| 503 | + CLANG_WARN_INT_CONVERSION = YES; | ||
| 504 | + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | ||
| 505 | + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; | ||
| 506 | + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | ||
| 507 | + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | ||
| 508 | + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | ||
| 509 | + CLANG_WARN_STRICT_PROTOTYPES = YES; | ||
| 510 | + CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
| 511 | + CLANG_WARN_UNREACHABLE_CODE = YES; | ||
| 512 | + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
| 513 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | ||
| 514 | + COPY_PHASE_STRIP = NO; | ||
| 515 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | ||
| 516 | + ENABLE_NS_ASSERTIONS = NO; | ||
| 517 | + ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
| 518 | + ENABLE_USER_SCRIPT_SANDBOXING = NO; | ||
| 519 | + GCC_C_LANGUAGE_STANDARD = gnu99; | ||
| 520 | + GCC_NO_COMMON_BLOCKS = YES; | ||
| 521 | + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | ||
| 522 | + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
| 523 | + GCC_WARN_UNDECLARED_SELECTOR = YES; | ||
| 524 | + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
| 525 | + GCC_WARN_UNUSED_FUNCTION = YES; | ||
| 526 | + GCC_WARN_UNUSED_VARIABLE = YES; | ||
| 527 | + IPHONEOS_DEPLOYMENT_TARGET = 12.0; | ||
| 528 | + MTL_ENABLE_DEBUG_INFO = NO; | ||
| 529 | + SDKROOT = iphoneos; | ||
| 530 | + SUPPORTED_PLATFORMS = iphoneos; | ||
| 531 | + SWIFT_COMPILATION_MODE = wholemodule; | ||
| 532 | + SWIFT_OPTIMIZATION_LEVEL = "-O"; | ||
| 533 | + TARGETED_DEVICE_FAMILY = "1,2"; | ||
| 534 | + VALIDATE_PRODUCT = YES; | ||
| 535 | + }; | ||
| 536 | + name = Release; | ||
| 537 | + }; | ||
| 538 | + 97C147061CF9000F007C117D /* Debug */ = { | ||
| 539 | + isa = XCBuildConfiguration; | ||
| 540 | + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; | ||
| 541 | + buildSettings = { | ||
| 542 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| 543 | + CLANG_ENABLE_MODULES = YES; | ||
| 544 | + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; | ||
| 545 | + DEVELOPMENT_TEAM = 8J59HM8B82; | ||
| 546 | + ENABLE_BITCODE = NO; | ||
| 547 | + INFOPLIST_FILE = Runner/Info.plist; | ||
| 548 | + LD_RUNPATH_SEARCH_PATHS = ( | ||
| 549 | + "$(inherited)", | ||
| 550 | + "@executable_path/Frameworks", | ||
| 551 | + ); | ||
| 552 | + PRODUCT_BUNDLE_IDENTIFIER = com.example.appUpdateCheckPluginExample; | ||
| 553 | + PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| 554 | + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||
| 555 | + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
| 556 | + SWIFT_VERSION = 5.0; | ||
| 557 | + VERSIONING_SYSTEM = "apple-generic"; | ||
| 558 | + }; | ||
| 559 | + name = Debug; | ||
| 560 | + }; | ||
| 561 | + 97C147071CF9000F007C117D /* Release */ = { | ||
| 562 | + isa = XCBuildConfiguration; | ||
| 563 | + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; | ||
| 564 | + buildSettings = { | ||
| 565 | + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
| 566 | + CLANG_ENABLE_MODULES = YES; | ||
| 567 | + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; | ||
| 568 | + DEVELOPMENT_TEAM = 8J59HM8B82; | ||
| 569 | + ENABLE_BITCODE = NO; | ||
| 570 | + INFOPLIST_FILE = Runner/Info.plist; | ||
| 571 | + LD_RUNPATH_SEARCH_PATHS = ( | ||
| 572 | + "$(inherited)", | ||
| 573 | + "@executable_path/Frameworks", | ||
| 574 | + ); | ||
| 575 | + PRODUCT_BUNDLE_IDENTIFIER = com.example.appUpdateCheckPluginExample; | ||
| 576 | + PRODUCT_NAME = "$(TARGET_NAME)"; | ||
| 577 | + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; | ||
| 578 | + SWIFT_VERSION = 5.0; | ||
| 579 | + VERSIONING_SYSTEM = "apple-generic"; | ||
| 580 | + }; | ||
| 581 | + name = Release; | ||
| 582 | + }; | ||
| 583 | +/* End XCBuildConfiguration section */ | ||
| 584 | + | ||
| 585 | +/* Begin XCConfigurationList section */ | ||
| 586 | + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = { | ||
| 587 | + isa = XCConfigurationList; | ||
| 588 | + buildConfigurations = ( | ||
| 589 | + 331C8088294A63A400263BE5 /* Debug */, | ||
| 590 | + 331C8089294A63A400263BE5 /* Release */, | ||
| 591 | + 331C808A294A63A400263BE5 /* Profile */, | ||
| 592 | + ); | ||
| 593 | + defaultConfigurationIsVisible = 0; | ||
| 594 | + defaultConfigurationName = Release; | ||
| 595 | + }; | ||
| 596 | + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { | ||
| 597 | + isa = XCConfigurationList; | ||
| 598 | + buildConfigurations = ( | ||
| 599 | + 97C147031CF9000F007C117D /* Debug */, | ||
| 600 | + 97C147041CF9000F007C117D /* Release */, | ||
| 601 | + 249021D3217E4FDB00AE95B9 /* Profile */, | ||
| 602 | + ); | ||
| 603 | + defaultConfigurationIsVisible = 0; | ||
| 604 | + defaultConfigurationName = Release; | ||
| 605 | + }; | ||
| 606 | + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { | ||
| 607 | + isa = XCConfigurationList; | ||
| 608 | + buildConfigurations = ( | ||
| 609 | + 97C147061CF9000F007C117D /* Debug */, | ||
| 610 | + 97C147071CF9000F007C117D /* Release */, | ||
| 611 | + 249021D4217E4FDB00AE95B9 /* Profile */, | ||
| 612 | + ); | ||
| 613 | + defaultConfigurationIsVisible = 0; | ||
| 614 | + defaultConfigurationName = Release; | ||
| 615 | + }; | ||
| 616 | +/* End XCConfigurationList section */ | ||
| 617 | + }; | ||
| 618 | + rootObject = 97C146E61CF9000F007C117D /* Project object */; | ||
| 619 | +} |
library/app_update_check_plugin/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<Scheme | ||
| 3 | + LastUpgradeVersion = "1510" | ||
| 4 | + version = "1.3"> | ||
| 5 | + <BuildAction | ||
| 6 | + parallelizeBuildables = "YES" | ||
| 7 | + buildImplicitDependencies = "YES"> | ||
| 8 | + <BuildActionEntries> | ||
| 9 | + <BuildActionEntry | ||
| 10 | + buildForTesting = "YES" | ||
| 11 | + buildForRunning = "YES" | ||
| 12 | + buildForProfiling = "YES" | ||
| 13 | + buildForArchiving = "YES" | ||
| 14 | + buildForAnalyzing = "YES"> | ||
| 15 | + <BuildableReference | ||
| 16 | + BuildableIdentifier = "primary" | ||
| 17 | + BlueprintIdentifier = "97C146ED1CF9000F007C117D" | ||
| 18 | + BuildableName = "Runner.app" | ||
| 19 | + BlueprintName = "Runner" | ||
| 20 | + ReferencedContainer = "container:Runner.xcodeproj"> | ||
| 21 | + </BuildableReference> | ||
| 22 | + </BuildActionEntry> | ||
| 23 | + </BuildActionEntries> | ||
| 24 | + </BuildAction> | ||
| 25 | + <TestAction | ||
| 26 | + buildConfiguration = "Debug" | ||
| 27 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
| 28 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
| 29 | + shouldUseLaunchSchemeArgsEnv = "YES"> | ||
| 30 | + <MacroExpansion> | ||
| 31 | + <BuildableReference | ||
| 32 | + BuildableIdentifier = "primary" | ||
| 33 | + BlueprintIdentifier = "97C146ED1CF9000F007C117D" | ||
| 34 | + BuildableName = "Runner.app" | ||
| 35 | + BlueprintName = "Runner" | ||
| 36 | + ReferencedContainer = "container:Runner.xcodeproj"> | ||
| 37 | + </BuildableReference> | ||
| 38 | + </MacroExpansion> | ||
| 39 | + <Testables> | ||
| 40 | + <TestableReference | ||
| 41 | + skipped = "NO" | ||
| 42 | + parallelizable = "YES"> | ||
| 43 | + <BuildableReference | ||
| 44 | + BuildableIdentifier = "primary" | ||
| 45 | + BlueprintIdentifier = "331C8080294A63A400263BE5" | ||
| 46 | + BuildableName = "RunnerTests.xctest" | ||
| 47 | + BlueprintName = "RunnerTests" | ||
| 48 | + ReferencedContainer = "container:Runner.xcodeproj"> | ||
| 49 | + </BuildableReference> | ||
| 50 | + </TestableReference> | ||
| 51 | + </Testables> | ||
| 52 | + </TestAction> | ||
| 53 | + <LaunchAction | ||
| 54 | + buildConfiguration = "Debug" | ||
| 55 | + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
| 56 | + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
| 57 | + launchStyle = "0" | ||
| 58 | + useCustomWorkingDirectory = "NO" | ||
| 59 | + ignoresPersistentStateOnLaunch = "NO" | ||
| 60 | + debugDocumentVersioning = "YES" | ||
| 61 | + debugServiceExtension = "internal" | ||
| 62 | + allowLocationSimulation = "YES"> | ||
| 63 | + <BuildableProductRunnable | ||
| 64 | + runnableDebuggingMode = "0"> | ||
| 65 | + <BuildableReference | ||
| 66 | + BuildableIdentifier = "primary" | ||
| 67 | + BlueprintIdentifier = "97C146ED1CF9000F007C117D" | ||
| 68 | + BuildableName = "Runner.app" | ||
| 69 | + BlueprintName = "Runner" | ||
| 70 | + ReferencedContainer = "container:Runner.xcodeproj"> | ||
| 71 | + </BuildableReference> | ||
| 72 | + </BuildableProductRunnable> | ||
| 73 | + </LaunchAction> | ||
| 74 | + <ProfileAction | ||
| 75 | + buildConfiguration = "Profile" | ||
| 76 | + shouldUseLaunchSchemeArgsEnv = "YES" | ||
| 77 | + savedToolIdentifier = "" | ||
| 78 | + useCustomWorkingDirectory = "NO" | ||
| 79 | + debugDocumentVersioning = "YES"> | ||
| 80 | + <BuildableProductRunnable | ||
| 81 | + runnableDebuggingMode = "0"> | ||
| 82 | + <BuildableReference | ||
| 83 | + BuildableIdentifier = "primary" | ||
| 84 | + BlueprintIdentifier = "97C146ED1CF9000F007C117D" | ||
| 85 | + BuildableName = "Runner.app" | ||
| 86 | + BlueprintName = "Runner" | ||
| 87 | + ReferencedContainer = "container:Runner.xcodeproj"> | ||
| 88 | + </BuildableReference> | ||
| 89 | + </BuildableProductRunnable> | ||
| 90 | + </ProfileAction> | ||
| 91 | + <AnalyzeAction | ||
| 92 | + buildConfiguration = "Debug"> | ||
| 93 | + </AnalyzeAction> | ||
| 94 | + <ArchiveAction | ||
| 95 | + buildConfiguration = "Release" | ||
| 96 | + revealArchiveInOrganizer = "YES"> | ||
| 97 | + </ArchiveAction> | ||
| 98 | +</Scheme> |
| 1 | +import Flutter | ||
| 2 | +import UIKit | ||
| 3 | + | ||
| 4 | +@UIApplicationMain | ||
| 5 | +@objc class AppDelegate: FlutterAppDelegate { | ||
| 6 | + override func application( | ||
| 7 | + _ application: UIApplication, | ||
| 8 | + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? | ||
| 9 | + ) -> Bool { | ||
| 10 | + GeneratedPluginRegistrant.register(with: self) | ||
| 11 | + return super.application(application, didFinishLaunchingWithOptions: launchOptions) | ||
| 12 | + } | ||
| 13 | +} |
library/app_update_check_plugin/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
0 → 100644
| 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 | +} |
10.7 KB
295 Bytes
406 Bytes
450 Bytes
282 Bytes
462 Bytes
704 Bytes
406 Bytes
586 Bytes
862 Bytes
862 Bytes
1.63 KB
762 Bytes
1.2 KB
1.38 KB
| 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 | +} |
68 Bytes
68 Bytes
68 Bytes
library/app_update_check_plugin/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
0 → 100644
| 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. |
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | ||
| 3 | + <dependencies> | ||
| 4 | + <deployment identifier="iOS"/> | ||
| 5 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/> | ||
| 6 | + </dependencies> | ||
| 7 | + <scenes> | ||
| 8 | + <!--View Controller--> | ||
| 9 | + <scene sceneID="EHf-IW-A2E"> | ||
| 10 | + <objects> | ||
| 11 | + <viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
| 12 | + <layoutGuides> | ||
| 13 | + <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/> | ||
| 14 | + <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/> | ||
| 15 | + </layoutGuides> | ||
| 16 | + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
| 17 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| 18 | + <subviews> | ||
| 19 | + <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4"> | ||
| 20 | + </imageView> | ||
| 21 | + </subviews> | ||
| 22 | + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
| 23 | + <constraints> | ||
| 24 | + <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/> | ||
| 25 | + <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/> | ||
| 26 | + </constraints> | ||
| 27 | + </view> | ||
| 28 | + </viewController> | ||
| 29 | + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
| 30 | + </objects> | ||
| 31 | + <point key="canvasLocation" x="53" y="375"/> | ||
| 32 | + </scene> | ||
| 33 | + </scenes> | ||
| 34 | + <resources> | ||
| 35 | + <image name="LaunchImage" width="168" height="185"/> | ||
| 36 | + </resources> | ||
| 37 | +</document> |
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| 2 | +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> | ||
| 3 | + <dependencies> | ||
| 4 | + <deployment identifier="iOS"/> | ||
| 5 | + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/> | ||
| 6 | + </dependencies> | ||
| 7 | + <scenes> | ||
| 8 | + <!--Flutter View Controller--> | ||
| 9 | + <scene sceneID="tne-QT-ifu"> | ||
| 10 | + <objects> | ||
| 11 | + <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController"> | ||
| 12 | + <layoutGuides> | ||
| 13 | + <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> | ||
| 14 | + <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> | ||
| 15 | + </layoutGuides> | ||
| 16 | + <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | ||
| 17 | + <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | ||
| 18 | + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| 19 | + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | ||
| 20 | + </view> | ||
| 21 | + </viewController> | ||
| 22 | + <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | ||
| 23 | + </objects> | ||
| 24 | + </scene> | ||
| 25 | + </scenes> | ||
| 26 | +</document> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| 3 | +<plist version="1.0"> | ||
| 4 | +<dict> | ||
| 5 | + <key>CFBundleDevelopmentRegion</key> | ||
| 6 | + <string>$(DEVELOPMENT_LANGUAGE)</string> | ||
| 7 | + <key>CFBundleDisplayName</key> | ||
| 8 | + <string>App Update Check Plugin</string> | ||
| 9 | + <key>CFBundleExecutable</key> | ||
| 10 | + <string>$(EXECUTABLE_NAME)</string> | ||
| 11 | + <key>CFBundleIdentifier</key> | ||
| 12 | + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
| 13 | + <key>CFBundleInfoDictionaryVersion</key> | ||
| 14 | + <string>6.0</string> | ||
| 15 | + <key>CFBundleName</key> | ||
| 16 | + <string>app_update_check_plugin_example</string> | ||
| 17 | + <key>CFBundlePackageType</key> | ||
| 18 | + <string>APPL</string> | ||
| 19 | + <key>CFBundleShortVersionString</key> | ||
| 20 | + <string>$(FLUTTER_BUILD_NAME)</string> | ||
| 21 | + <key>CFBundleSignature</key> | ||
| 22 | + <string>????</string> | ||
| 23 | + <key>CFBundleVersion</key> | ||
| 24 | + <string>$(FLUTTER_BUILD_NUMBER)</string> | ||
| 25 | + <key>LSRequiresIPhoneOS</key> | ||
| 26 | + <true/> | ||
| 27 | + <key>UILaunchStoryboardName</key> | ||
| 28 | + <string>LaunchScreen</string> | ||
| 29 | + <key>UIMainStoryboardFile</key> | ||
| 30 | + <string>Main</string> | ||
| 31 | + <key>UISupportedInterfaceOrientations</key> | ||
| 32 | + <array> | ||
| 33 | + <string>UIInterfaceOrientationPortrait</string> | ||
| 34 | + <string>UIInterfaceOrientationLandscapeLeft</string> | ||
| 35 | + <string>UIInterfaceOrientationLandscapeRight</string> | ||
| 36 | + </array> | ||
| 37 | + <key>UISupportedInterfaceOrientations~ipad</key> | ||
| 38 | + <array> | ||
| 39 | + <string>UIInterfaceOrientationPortrait</string> | ||
| 40 | + <string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
| 41 | + <string>UIInterfaceOrientationLandscapeLeft</string> | ||
| 42 | + <string>UIInterfaceOrientationLandscapeRight</string> | ||
| 43 | + </array> | ||
| 44 | + <key>CADisableMinimumFrameDurationOnPhone</key> | ||
| 45 | + <true/> | ||
| 46 | + <key>UIApplicationSupportsIndirectInputEvents</key> | ||
| 47 | + <true/> | ||
| 48 | +</dict> | ||
| 49 | +</plist> |
| 1 | +#import "GeneratedPluginRegistrant.h" |
| 1 | +import Flutter | ||
| 2 | +import UIKit | ||
| 3 | +import XCTest | ||
| 4 | + | ||
| 5 | +@testable import app_update_check_plugin | ||
| 6 | + | ||
| 7 | +// This demonstrates a simple unit test of the Swift portion of this plugin's implementation. | ||
| 8 | +// | ||
| 9 | +// See https://developer.apple.com/documentation/xctest for more information about using XCTest. | ||
| 10 | + | ||
| 11 | +class RunnerTests: XCTestCase { | ||
| 12 | + | ||
| 13 | + func testGetPlatformVersion() { | ||
| 14 | + let plugin = AppUpdateCheckPlugin() | ||
| 15 | + | ||
| 16 | + let call = FlutterMethodCall(methodName: "getPlatformVersion", arguments: []) | ||
| 17 | + | ||
| 18 | + let resultExpectation = expectation(description: "result block must be called.") | ||
| 19 | + plugin.handle(call) { result in | ||
| 20 | + XCTAssertEqual(result as! String, "iOS " + UIDevice.current.systemVersion) | ||
| 21 | + resultExpectation.fulfill() | ||
| 22 | + } | ||
| 23 | + waitForExpectations(timeout: 1) | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | +} |
| 1 | +import 'package:flutter/material.dart'; | ||
| 2 | +import 'dart:async'; | ||
| 3 | + | ||
| 4 | +import 'package:flutter/services.dart'; | ||
| 5 | +import 'package:app_update_check_plugin/app_update_check_plugin.dart'; | ||
| 6 | + | ||
| 7 | +void main() { | ||
| 8 | + runApp(const MyApp()); | ||
| 9 | +} | ||
| 10 | + | ||
| 11 | +class MyApp extends StatefulWidget { | ||
| 12 | + const MyApp({super.key}); | ||
| 13 | + | ||
| 14 | + @override | ||
| 15 | + State<MyApp> createState() => _MyAppState(); | ||
| 16 | +} | ||
| 17 | + | ||
| 18 | +class _MyAppState extends State<MyApp> { | ||
| 19 | + String _platformVersion = 'Unknown'; | ||
| 20 | + final _appUpdateCheckPlugin = AppUpdateCheckPlugin(); | ||
| 21 | + | ||
| 22 | + @override | ||
| 23 | + void initState() { | ||
| 24 | + super.initState(); | ||
| 25 | + initPlatformState(); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + // Platform messages are asynchronous, so we initialize in an async method. | ||
| 29 | + Future<void> initPlatformState() async { | ||
| 30 | + String platformVersion; | ||
| 31 | + // Platform messages may fail, so we use a try/catch PlatformException. | ||
| 32 | + // We also handle the message potentially returning null. | ||
| 33 | + try { | ||
| 34 | + platformVersion = | ||
| 35 | + await _appUpdateCheckPlugin.getPlatformVersion() ?? 'Unknown platform version'; | ||
| 36 | + } on PlatformException { | ||
| 37 | + platformVersion = 'Failed to get platform version.'; | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + // If the widget was removed from the tree while the asynchronous platform | ||
| 41 | + // message was in flight, we want to discard the reply rather than calling | ||
| 42 | + // setState to update our non-existent appearance. | ||
| 43 | + if (!mounted) return; | ||
| 44 | + | ||
| 45 | + setState(() { | ||
| 46 | + _platformVersion = platformVersion; | ||
| 47 | + }); | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + @override | ||
| 51 | + Widget build(BuildContext context) { | ||
| 52 | + return MaterialApp( | ||
| 53 | + home: Scaffold( | ||
| 54 | + appBar: AppBar( | ||
| 55 | + title: const Text('Plugin example app'), | ||
| 56 | + ), | ||
| 57 | + body: Center( | ||
| 58 | + child: Text('Running on: $_platformVersion\n'), | ||
| 59 | + ), | ||
| 60 | + ), | ||
| 61 | + ); | ||
| 62 | + } | ||
| 63 | +} |
| 1 | +/node_modules | ||
| 2 | +/oh_modules | ||
| 3 | +/local.properties | ||
| 4 | +/.idea | ||
| 5 | +**/build | ||
| 6 | +/.hvigor | ||
| 7 | +.cxx | ||
| 8 | +/.clangd | ||
| 9 | +/.clang-format | ||
| 10 | +/.clang-tidy | ||
| 11 | +**/.test | ||
| 12 | +**/BuildProfile.ets | ||
| 13 | +**/oh-package-lock.json5 | ||
| 14 | +/package.json | ||
| 15 | +/package-lock.json | ||
| 16 | + | ||
| 17 | +**/src/main/resources/rawfile/flutter_assets/ | ||
| 18 | +**/libs/**/libapp.so | ||
| 19 | +**/libs/**/libflutter.so | ||
| 20 | +**/libs/**/libvmservice_snapshot.so |
6.63 KB
| 1 | + | ||
| 2 | +{ | ||
| 3 | + "app": { | ||
| 4 | + "signingConfigs": [], | ||
| 5 | + "products": [ | ||
| 6 | + { | ||
| 7 | + "name": "default", | ||
| 8 | + "signingConfig": "default", | ||
| 9 | + "compatibleSdkVersion": "5.1.0(18)", | ||
| 10 | + "runtimeOS": "HarmonyOS", | ||
| 11 | + } | ||
| 12 | + ], | ||
| 13 | + "buildModeSet": [ | ||
| 14 | + { | ||
| 15 | + "name": "debug" | ||
| 16 | + }, | ||
| 17 | + { | ||
| 18 | + "name": "profile" | ||
| 19 | + }, | ||
| 20 | + { | ||
| 21 | + "name": "release" | ||
| 22 | + } | ||
| 23 | + ] | ||
| 24 | + }, | ||
| 25 | + "modules": [ | ||
| 26 | + { | ||
| 27 | + "name": "entry", | ||
| 28 | + "srcPath": "./entry", | ||
| 29 | + "targets": [ | ||
| 30 | + { | ||
| 31 | + "name": "default", | ||
| 32 | + "applyToProducts": [ | ||
| 33 | + "default" | ||
| 34 | + ] | ||
| 35 | + } | ||
| 36 | + ] | ||
| 37 | + } | ||
| 38 | + ] | ||
| 39 | +} |
| 1 | + | ||
| 2 | +// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. | ||
| 3 | +import { hapTasks } from '@ohos/hvigor-ohos-plugin'; | ||
| 4 | +export default { | ||
| 5 | + system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ | ||
| 6 | + plugins: [] /* Custom plugin to extend the functionality of Hvigor. */ | ||
| 7 | +} |
library/app_update_check_plugin/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets
0 → 100644
| 1 | + | ||
| 2 | +import { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; | ||
| 3 | +import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; | ||
| 4 | + | ||
| 5 | +export default class EntryAbility extends FlutterAbility { | ||
| 6 | + configureFlutterEngine(flutterEngine: FlutterEngine) { | ||
| 7 | + super.configureFlutterEngine(flutterEngine) | ||
| 8 | + GeneratedPluginRegistrant.registerWith(flutterEngine) | ||
| 9 | + } | ||
| 10 | +} |
| 1 | + | ||
| 2 | +import common from '@ohos.app.ability.common'; | ||
| 3 | +import { FlutterPage } from '@ohos/flutter_ohos' | ||
| 4 | + | ||
| 5 | +let storage = LocalStorage.getShared() | ||
| 6 | +const EVENT_BACK_PRESS = 'EVENT_BACK_PRESS' | ||
| 7 | + | ||
| 8 | +@Entry(storage) | ||
| 9 | +@Component | ||
| 10 | +struct Index { | ||
| 11 | + private context = getContext(this) as common.UIAbilityContext | ||
| 12 | + @LocalStorageLink('viewId') viewId: string = ""; | ||
| 13 | + | ||
| 14 | + build() { | ||
| 15 | + Column() { | ||
| 16 | + FlutterPage({ viewId: this.viewId }) | ||
| 17 | + } | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | + onBackPress(): boolean { | ||
| 21 | + this.context.eventHub.emit(EVENT_BACK_PRESS) | ||
| 22 | + return true | ||
| 23 | + } | ||
| 24 | +} |
| 1 | + | ||
| 2 | +{ | ||
| 3 | + "module": { | ||
| 4 | + "name": "entry", | ||
| 5 | + "type": "entry", | ||
| 6 | + "description": "$string:module_desc", | ||
| 7 | + "mainElement": "EntryAbility", | ||
| 8 | + "deviceTypes": [ | ||
| 9 | + "phone" | ||
| 10 | + ], | ||
| 11 | + "deliveryWithInstall": true, | ||
| 12 | + "installationFree": false, | ||
| 13 | + "pages": "$profile:main_pages", | ||
| 14 | + "abilities": [ | ||
| 15 | + { | ||
| 16 | + "name": "EntryAbility", | ||
| 17 | + "srcEntry": "./ets/entryability/EntryAbility.ets", | ||
| 18 | + "description": "$string:EntryAbility_desc", | ||
| 19 | + "icon": "$media:icon", | ||
| 20 | + "label": "$string:EntryAbility_label", | ||
| 21 | + "startWindowIcon": "$media:icon", | ||
| 22 | + "startWindowBackground": "$color:start_window_background", | ||
| 23 | + "exported": true, | ||
| 24 | + "skills": [ | ||
| 25 | + { | ||
| 26 | + "entities": [ | ||
| 27 | + "entity.system.home" | ||
| 28 | + ], | ||
| 29 | + "actions": [ | ||
| 30 | + "action.system.home" | ||
| 31 | + ] | ||
| 32 | + } | ||
| 33 | + ] | ||
| 34 | + } | ||
| 35 | + ], | ||
| 36 | + "requestPermissions": [ | ||
| 37 | + {"name" : "ohos.permission.INTERNET"}, | ||
| 38 | + ] | ||
| 39 | + } | ||
| 40 | +} |
library/app_update_check_plugin/example/ohos/entry/src/main/resources/base/media/icon.png
0 → 100644
6.63 KB
-
Please register or login to post a comment