diff --git a/.dart_tool/extension_discovery/README.md b/.dart_tool/extension_discovery/README.md deleted file mode 100644 index 9dc6757b..00000000 --- a/.dart_tool/extension_discovery/README.md +++ /dev/null @@ -1,31 +0,0 @@ -Extension Discovery Cache -========================= - -This folder is used by `package:extension_discovery` to cache lists of -packages that contains extensions for other packages. - -DO NOT USE THIS FOLDER ----------------------- - - * Do not read (or rely) the contents of this folder. - * Do write to this folder. - -If you're interested in the lists of extensions stored in this folder use the -API offered by package `extension_discovery` to get this information. - -If this package doesn't work for your use-case, then don't try to read the -contents of this folder. It may change, and will not remain stable. - -Use package `extension_discovery` ---------------------------------- - -If you want to access information from this folder. - -Feel free to delete this folder -------------------------------- - -Files in this folder act as a cache, and the cache is discarded if the files -are older than the modification time of `.dart_tool/package_config.json`. - -Hence, it should never be necessary to clear this cache manually, if you find a -need to do please file a bug. diff --git a/.dart_tool/extension_discovery/vs_code.json b/.dart_tool/extension_discovery/vs_code.json deleted file mode 100644 index 8dc0ec87..00000000 --- a/.dart_tool/extension_discovery/vs_code.json +++ /dev/null @@ -1 +0,0 @@ -{"version":2,"entries":[{"package":"ttlock_flutter","rootUri":"../","packageUri":"lib/"}]} \ No newline at end of file diff --git a/.dart_tool/package_config_subset b/.dart_tool/package_config_subset deleted file mode 100644 index 7454de07..00000000 --- a/.dart_tool/package_config_subset +++ /dev/null @@ -1,101 +0,0 @@ -async -2.18 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/async-2.11.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/async-2.11.0/lib/ -boolean_selector -2.17 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/boolean_selector-2.1.1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/boolean_selector-2.1.1/lib/ -characters -2.12 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/characters-1.3.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/characters-1.3.0/lib/ -clock -2.12 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/clock-1.1.1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/clock-1.1.1/lib/ -collection -2.18 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/collection-1.18.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/collection-1.18.0/lib/ -fake_async -2.12 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/fake_async-1.3.1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/fake_async-1.3.1/lib/ -leak_tracker -3.2 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/leak_tracker-10.0.4/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/leak_tracker-10.0.4/lib/ -leak_tracker_flutter_testing -3.2 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/leak_tracker_flutter_testing-3.0.3/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/leak_tracker_flutter_testing-3.0.3/lib/ -leak_tracker_testing -3.2 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/leak_tracker_testing-3.0.1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/leak_tracker_testing-3.0.1/lib/ -matcher -3.0 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/matcher-0.12.16+1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/matcher-0.12.16+1/lib/ -material_color_utilities -2.17 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/material_color_utilities-0.8.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/material_color_utilities-0.8.0/lib/ -meta -2.12 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/meta-1.12.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/meta-1.12.0/lib/ -path -3.0 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/path-1.9.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/path-1.9.0/lib/ -source_span -2.18 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/source_span-1.10.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/source_span-1.10.0/lib/ -stack_trace -2.18 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/stack_trace-1.11.1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/stack_trace-1.11.1/lib/ -stream_channel -2.19 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/stream_channel-2.1.2/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/stream_channel-2.1.2/lib/ -string_scanner -2.18 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/string_scanner-1.2.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/string_scanner-1.2.0/lib/ -term_glyph -2.12 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/term_glyph-1.2.1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/term_glyph-1.2.1/lib/ -test_api -3.0 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/test_api-0.7.0/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/test_api-0.7.0/lib/ -vector_math -2.14 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/vector_math-2.1.4/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/vector_math-2.1.4/lib/ -vm_service -3.3 -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/vm_service-14.2.1/ -file:///C:/Users/ZhangRongchao/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/vm_service-14.2.1/lib/ -sky_engine -3.2 -file:///C:/fluttersdk/flutter/bin/cache/pkg/sky_engine/ -file:///C:/fluttersdk/flutter/bin/cache/pkg/sky_engine/lib/ -flutter -3.3 -file:///C:/fluttersdk/flutter/packages/flutter/ -file:///C:/fluttersdk/flutter/packages/flutter/lib/ -flutter_test -3.3 -file:///C:/fluttersdk/flutter/packages/flutter_test/ -file:///C:/fluttersdk/flutter/packages/flutter_test/lib/ -ttlock_flutter -2.12 -file:///C:/workProject/ttlock_flutter/ -file:///C:/workProject/ttlock_flutter/lib/ -2 diff --git a/.dart_tool/version b/.dart_tool/version deleted file mode 100644 index dbc9520b..00000000 --- a/.dart_tool/version +++ /dev/null @@ -1 +0,0 @@ -3.22.2 \ No newline at end of file diff --git a/android/build.gradle b/android/build.gradle index a94e3e09..e0b86121 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,53 +1,49 @@ -group 'com.ttlock.ttlock_flutter' -version '1.0' +plugins { + id 'com.android.library' +} + +group = 'com.ttlock.ttlock_flutter' +version = '1.0' + +android { + namespace 'com.ttlock.ttlock_flutter' + compileSdk = 35 + ndkVersion "28.0.12674087" -buildscript { - ext { - agp_version = '4.1.2' + defaultConfig { + minSdk = 18 } - repositories { - mavenCentral() - google() - jcenter() + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } - dependencies { - classpath "com.android.tools.build:gradle:$agp_version" + lint { + disable 'InvalidPackage' } -} -rootProject.allprojects { - repositories { - mavenCentral() - google() - jcenter() - flatDir { - dirs 'libs' + packaging { + jniLibs { + useLegacyPackaging = false } } } -apply plugin: 'com.android.library' - -android { - compileSdkVersion 31 - namespace 'com.ttlock.ttlock_flutter' - defaultConfig { - minSdkVersion 18 - } - lintOptions { - disable 'InvalidPackage' - } - compileOptions { - targetCompatibility JavaVersion.VERSION_1_8 - sourceCompatibility JavaVersion.VERSION_1_8 +repositories { + google() + mavenCentral() + jcenter() + flatDir { + dirs 'libs' } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) - // implementation 'com.ttlock:ttlock:3.5.0' + // implementation(name: 'ttlock-release', ext: 'aar') + // implementation files('libs/ttlock-release.aar') + implementation files('libs/ttlock-classes.jar') implementation 'com.google.code.gson:gson:2.6.2' - implementation(name: 'ttlock-release', ext: 'aar') implementation 'com.squareup.okhttp3:okhttp:4.12.0' } diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 1af4b5d0..7013d09b 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ #Mon Dec 04 09:25:22 CST 2023 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +# distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/android/libs/ttlock-classes.jar b/android/libs/ttlock-classes.jar new file mode 100644 index 00000000..5ed4bf49 Binary files /dev/null and b/android/libs/ttlock-classes.jar differ diff --git a/android/settings.gradle b/android/settings.gradle index 769ef7ca..099d4674 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1 +1 @@ -rootProject.name = 'ttlock_flutter' +rootProject.name = 'ttlock_flutter' \ No newline at end of file diff --git a/android/src/main/jniLibs/arm64-v8a/libLockCore.so b/android/src/main/jniLibs/arm64-v8a/libLockCore.so new file mode 100644 index 00000000..6926ba22 Binary files /dev/null and b/android/src/main/jniLibs/arm64-v8a/libLockCore.so differ diff --git a/android/src/main/jniLibs/armeabi-v7a/libLockCore.so b/android/src/main/jniLibs/armeabi-v7a/libLockCore.so new file mode 100644 index 00000000..03a49e0f Binary files /dev/null and b/android/src/main/jniLibs/armeabi-v7a/libLockCore.so differ diff --git a/android/src/main/jniLibs/x86/libLockCore.so b/android/src/main/jniLibs/x86/libLockCore.so new file mode 100644 index 00000000..52a01dac Binary files /dev/null and b/android/src/main/jniLibs/x86/libLockCore.so differ diff --git a/android/src/main/jniLibs/x86_64/libLockCore.so b/android/src/main/jniLibs/x86_64/libLockCore.so new file mode 100644 index 00000000..5ce1d8e4 Binary files /dev/null and b/android/src/main/jniLibs/x86_64/libLockCore.so differ diff --git a/android/src/main/res/values/values.xml b/android/src/main/res/values/values.xml new file mode 100644 index 00000000..69c7aa01 --- /dev/null +++ b/android/src/main/res/values/values.xml @@ -0,0 +1,4 @@ + + + sdk + \ No newline at end of file diff --git a/android/src/main/res/xml/file_paths.xml b/android/src/main/res/xml/file_paths.xml new file mode 100644 index 00000000..b494f02e --- /dev/null +++ b/android/src/main/res/xml/file_paths.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 983749c8..bafbe5a9 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,3 +1,8 @@ +plugins { + id 'com.android.application' + id 'dev.flutter.flutter-gradle-plugin' +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,11 +11,6 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { flutterVersionCode = '1' @@ -21,47 +21,39 @@ if (flutterVersionName == null) { flutterVersionName = '1.0' } -apply plugin: 'com.android.application' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { - compileSdkVersion 34 - - lintOptions { - disable 'InvalidPackage' - } + namespace 'com.ttlock.ttlock_flutter_example' + compileSdkVersion 35 + ndkVersion "28.0.12674087" defaultConfig { - // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.ttlock.ttlock_flutter_example" minSdkVersion flutter.minSdkVersion - targetSdkVersion 34 - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName + targetSdkVersion 35 + versionCode 1 + versionName "1.0" } compileOptions { - targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 } buildTypes { release { - // TODO: Add your own signing config for the release build. - // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug shrinkResources false minifyEnabled false } } - namespace 'com.ttlock.ttlock_flutter_example' + + lintOptions { + disable 'InvalidPackage' + } } + repositories { flatDir { - dirs 'libs', '..\\..\\..\\android\\libs' + dirs 'libs', '../../../android/libs' } -} - -flutter { - source '../..' -} +} \ No newline at end of file diff --git a/example/android/build.gradle b/example/android/build.gradle index 6563743e..f0a4621f 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,36 +1,20 @@ -buildscript { - ext { - - agp_version = '8.6.0' - } - repositories { - mavenCentral() - google() - jcenter() - } - - dependencies { - classpath "com.android.tools.build:gradle:$agp_version" - } -} - allprojects { repositories { - mavenCentral() google() - jcenter() + mavenCentral() } } -rootProject.buildDir = '../build' +rootProject.buildDir = "../build" subprojects { project.buildDir = "${rootProject.buildDir}/${project.name}" } + subprojects { - project.evaluationDependsOn(':app') + project.evaluationDependsOn(":app") } tasks.register("clean", Delete) { delete rootProject.buildDir -} +} \ No newline at end of file diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 9a2da3f8..7596b698 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ #Thu Feb 06 11:31:35 CST 2025 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip +# distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 44e62bcf..537b2ca1 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id "dev.flutter.flutter-plugin-loader" version "1.0.0" + id "com.android.application" version "8.5.2" apply false + id "org.jetbrains.kotlin.android" version "1.9.0" apply false +} + +include ":app" \ No newline at end of file diff --git a/example/ios/Flutter/ephemeral/flutter_lldb_helper.py b/example/ios/Flutter/ephemeral/flutter_lldb_helper.py new file mode 100644 index 00000000..a88caf99 --- /dev/null +++ b/example/ios/Flutter/ephemeral/flutter_lldb_helper.py @@ -0,0 +1,32 @@ +# +# Generated file, do not edit. +# + +import lldb + +def handle_new_rx_page(frame: lldb.SBFrame, bp_loc, extra_args, intern_dict): + """Intercept NOTIFY_DEBUGGER_ABOUT_RX_PAGES and touch the pages.""" + base = frame.register["x0"].GetValueAsAddress() + page_len = frame.register["x1"].GetValueAsUnsigned() + + # Note: NOTIFY_DEBUGGER_ABOUT_RX_PAGES will check contents of the + # first page to see if handled it correctly. This makes diagnosing + # misconfiguration (e.g. missing breakpoint) easier. + data = bytearray(page_len) + data[0:8] = b'IHELPED!' + + error = lldb.SBError() + frame.GetThread().GetProcess().WriteMemory(base, data, error) + if not error.Success(): + print(f'Failed to write into {base}[+{page_len}]', error) + return + +def __lldb_init_module(debugger: lldb.SBDebugger, _): + target = debugger.GetDummyTarget() + # Caveat: must use BreakpointCreateByRegEx here and not + # BreakpointCreateByName. For some reasons callback function does not + # get carried over from dummy target for the later. + bp = target.BreakpointCreateByRegex("^NOTIFY_DEBUGGER_ABOUT_RX_PAGES$") + bp.SetScriptCallbackFunction('{}.handle_new_rx_page'.format(__name__)) + bp.SetAutoContinue(True) + print("-- LLDB integration loaded --") diff --git a/example/ios/Flutter/ephemeral/flutter_lldbinit b/example/ios/Flutter/ephemeral/flutter_lldbinit new file mode 100644 index 00000000..e3ba6fbe --- /dev/null +++ b/example/ios/Flutter/ephemeral/flutter_lldbinit @@ -0,0 +1,5 @@ +# +# Generated file, do not edit. +# + +command script import --relative-to-command-file flutter_lldb_helper.py diff --git a/example/pubspec.lock b/example/pubspec.lock index 526a894c..272a7d2f 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -61,10 +61,10 @@ packages: dependency: transitive description: name: fake_async - sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc" + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" url: "https://pub.dev" source: hosted - version: "1.3.2" + version: "1.3.3" flutter: dependency: "direct main" description: flutter @@ -79,26 +79,26 @@ packages: dependency: transitive description: name: leak_tracker - sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" url: "https://pub.dev" source: hosted - version: "10.0.8" + version: "11.0.2" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" url: "https://pub.dev" source: hosted - version: "3.0.9" + version: "3.0.10" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" matcher: dependency: transitive description: @@ -180,25 +180,25 @@ packages: dependency: transitive description: name: test_api - sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd + sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00" url: "https://pub.dev" source: hosted - version: "0.7.4" + version: "0.7.6" ttlock_flutter: dependency: "direct main" description: path: ".." relative: true source: path - version: "0.3.8" + version: "0.3.9" vector_math: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.0" vm_service: dependency: transitive description: @@ -208,5 +208,5 @@ packages: source: hosted version: "14.3.1" sdks: - dart: ">=3.7.0-0 <4.0.0" + dart: ">=3.8.0-0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index f721452a..63d89607 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -6,7 +6,8 @@ description: Demonstrates how to use the ttlock_flutter plugin. publish_to: 'none' # Remove this line if you wish to publish to pub.dev environment: - sdk: ">=2.12.0 <3.0.0" + # sdk: ">=2.12.0 <3.0.0" + sdk: ">=3.1.0 <4.0.0" dependencies: flutter: diff --git a/pubspec.lock b/pubspec.lock index 5128f32d..697e1deb 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,50 +5,50 @@ packages: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.flutter-io.cn" + sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb" + url: "https://pub.dev" source: hosted - version: "2.11.0" + version: "2.13.0" boolean_selector: dependency: transitive description: name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.flutter-io.cn" + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" + url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" characters: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.flutter-io.cn" + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 + url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.4.0" clock: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.flutter-io.cn" + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" collection: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.flutter-io.cn" + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" + url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.1" fake_async: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.flutter-io.cn" + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" + url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.3" flutter: dependency: "direct main" description: flutter @@ -63,127 +63,127 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" - url: "https://pub.flutter-io.cn" + sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + url: "https://pub.dev" source: hosted - version: "10.0.4" + version: "11.0.2" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" - url: "https://pub.flutter-io.cn" + sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.0.10" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" - url: "https://pub.flutter-io.cn" + sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" matcher: dependency: transitive description: name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb - url: "https://pub.flutter-io.cn" + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 + url: "https://pub.dev" source: hosted - version: "0.12.16+1" + version: "0.12.17" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" - url: "https://pub.flutter-io.cn" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" - url: "https://pub.flutter-io.cn" + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c + url: "https://pub.dev" source: hosted - version: "1.12.0" + version: "1.16.0" path: dependency: transitive description: name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" - url: "https://pub.flutter-io.cn" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.flutter-io.cn" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.10.1" stack_trace: dependency: transitive description: name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.flutter-io.cn" + sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1" + url: "https://pub.dev" source: hosted - version: "1.11.1" + version: "1.12.1" stream_channel: dependency: transitive description: name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.flutter-io.cn" + sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.flutter-io.cn" + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" + url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.4.1" term_glyph: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.flutter-io.cn" + sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e" + url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.2.2" test_api: dependency: transitive description: name: test_api - sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" - url: "https://pub.flutter-io.cn" + sha256: "522f00f556e73044315fa4585ec3270f1808a4b186c936e612cab0b565ff1e00" + url: "https://pub.dev" source: hosted - version: "0.7.0" + version: "0.7.6" vector_math: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.flutter-io.cn" + sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.2.0" vm_service: dependency: transitive description: name: vm_service - sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" - url: "https://pub.flutter-io.cn" + sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + url: "https://pub.dev" source: hosted - version: "14.2.1" + version: "15.0.2" sdks: - dart: ">=3.3.0 <4.0.0" + dart: ">=3.8.0-0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/pubspec.yaml b/pubspec.yaml index e82df8d3..fc7f4565 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,8 +4,9 @@ version: 0.3.9 homepage: https://github.com/ttlock/ttlock_flutter.git environment: - sdk: ">=2.12.0 <4.0.0" - flutter: ">=1.17.5" + # sdk: ">=2.12.0 <4.0.0" + sdk: ">=3.1.0 <4.0.0" + flutter: ">=3.5.1" dependencies: flutter: