diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index dd22df8a..46ca1620 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,7 +19,7 @@ jobs: flutter-version: '3.29.3' # Set the desired Flutter version here channel: 'stable' - name: Install Dependencies - run: flutter pub get && cd example && flutter pub get && cd .. + run: flutter pub get && cd sample && flutter pub get && cd .. - name: Lint Flutter run: flutter analyze Android: @@ -41,7 +41,7 @@ jobs: flutter-version: ${{ matrix.flutter-version }} channel: 'stable' - name: Install Dependencies - run: flutter pub get && cd example && flutter pub get && cd .. + run: flutter pub get && cd sample && flutter pub get && cd .. - name: Lint Android uses: musichin/ktlint-check@v3 with: @@ -51,16 +51,16 @@ jobs: !**/**.g.kt !**/generated/** - name: Test - run: flutter test && cd example && flutter test && cd .. + run: flutter test && cd sample && flutter test && cd .. - name: Build Android Sample App - run: cd example && flutter build apk && cd .. + run: cd sample && flutter build apk && cd .. iOS: # TODO: Change back to macos-latest once it points to macOS 14 (Q2 '24) runs-on: macos-14 timeout-minutes: 10 steps: - uses: actions/checkout@v4 - - run: touch example/ios/smile_config.json + - run: touch sample/ios/smile_config.json - uses: subosito/flutter-action@v2 with: flutter-version: '3.29.3' # Set the desired Flutter version here @@ -70,6 +70,6 @@ jobs: with: version: 1.14.3 - name: Install Dependencies - run: flutter pub get && cd example && flutter pub get && cd .. + run: flutter pub get && cd sample && flutter pub get && cd .. - name: Build iOS Sample App - run: cd example/ios && pod install && flutter build ios --no-codesign && cd .. + run: cd sample/ios && pod install && flutter build ios --no-codesign && cd .. diff --git a/.github/workflows/release_ios.yml b/.github/workflows/release_ios.yml index 80293b13..a4c2d815 100644 --- a/.github/workflows/release_ios.yml +++ b/.github/workflows/release_ios.yml @@ -25,7 +25,7 @@ jobs: run: | sed -i "s/s.version\s*=\s*'[^']*'/s.version = '$(echo "${{ github.event.inputs.ios_release_version }}" | cut -c 2-)'/g" ios/smile_id.podspec sed -i "s/s.dependency\s*'SmileID'\s*,\s*'[^']*'/s.dependency 'SmileID', '$(echo "${{ github.event.inputs.ios_release_version }}" | cut -c 2-)'/g" ios/smile_id.podspec - cd example/ios + cd sample/ios pod update smile_id SmileID - name: Commit and Push Changes run: | @@ -33,7 +33,7 @@ jobs: git config user.email "actions@github.com" git add ios/smile_id.podspec - git add example/ios/Podfile.lock + git add sample/ios/Podfile.lock git commit -m "Update iOS SDK version to ${{ github.event.inputs.ios_release_version }}" git push --set-upstream origin "ios-${{ github.event.inputs.ios_release_version }}" - name: Create Pull Request diff --git a/.gitignore b/.gitignore index 05716d66..5b9c7d04 100644 --- a/.gitignore +++ b/.gitignore @@ -33,4 +33,4 @@ build/ .fvm/ smile_config.json -example/android/app/.cxx \ No newline at end of file +sample/android/app/.cxx \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8743d5..c6b980cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Release Notes +## 11.0.2 + +### Changed +* Renamed **example** folder to **sample** and replaced all usages of example in the project. +* Migrate all gradle files in the sample and SDK folders from Groovy to Kotlin. +* Add a `libs.versions.toml` file to share dependencies between the sample project and the Android SDK. +* Cleanup and minor code improvements on the gradlew files. +* Update Android Gradle Plugin and Kotlin version to the latest. +* Fail the `assemble` gradle task when `smile_config.json` file is not added in the assets folder. + ## 11.0.1 ### Fixed diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d6005d78..4c21a7c7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,11 +48,11 @@ Open the `sample` folder, then open the `ios` folder. Run the following commands ```ruby # s.dependency "SmileID" # => Mind the version removal ``` -* Specify the repo SmileID [iOS](https://github.com/smileidentity/ios) repo and pick a tag or branch podspec file in the Podfile example/ios/Podfile file: +* Specify the repo SmileID [iOS](https://github.com/smileidentity/ios) repo and pick a tag or branch podspec file in the Podfile sample/ios/Podfile file: ```ruby pod 'SmileID', git: 'https://github.com/smileidentity/ios.git', branch: 'main' ``` -* Run `pod install` in the `example/ios` folder +* Run `pod install` in the `sample/ios` folder * If you have pod install issues run ```bash pod deintegrate && pod install diff --git a/android/build.gradle b/android/build.gradle deleted file mode 100644 index 72c98af0..00000000 --- a/android/build.gradle +++ /dev/null @@ -1,131 +0,0 @@ -def kotlinVersion = findProperty('kotlinVersion') ?: '2.1.0' -//def smileVersion = findProperty('smileVersion') ?: '11.0.3-SNAPSHOT' // Uncomment this line to use the latest snapshot version also uncomment the snapshot repository' -def smileVersion = findProperty('smileVersion') ?: '11.0.3' -def kotlinCompilerExtension = findProperty('kotlinCompilerExtensionVersion') ?: '1.5.14' - -ext { - project.ext.kotlinVersion = kotlinVersion - project.ext.smileVersion = smileVersion - project.ext.kotlinCompilerExtension = kotlinCompilerExtension -} - -buildscript { - def kotlinVersion = rootProject.findProperty('kotlinVersion') ?: '2.1.0' - - repositories { - google() - mavenCentral() - maven { url "https://plugins.gradle.org/m2/" } -// uncomment for development to test snapshots - maven { - url = 'https://central.sonatype.com/repository/maven-snapshots/' - } - } - - dependencies { - classpath "com.android.tools.build:gradle:8.7.3" - if (kotlinVersion?.startsWith("2")) { - classpath "org.jetbrains.kotlin:compose-compiler-gradle-plugin:$kotlinVersion" - } else { - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" - } - classpath "org.jlleitschuh.gradle:ktlint-gradle:12.2.0" - } -} - -allprojects { - repositories { - google() - mavenCentral() -// uncomment for development to test snapshots - maven { - url = 'https://central.sonatype.com/repository/maven-snapshots/' - } - } -} - -apply plugin: "com.android.library" -apply plugin: "kotlin-android" -apply plugin: "org.jlleitschuh.gradle.ktlint" -if (kotlinVersion?.startsWith("2")) { - apply plugin: "org.jetbrains.kotlin.plugin.compose" -} - -android { - namespace 'com.smileidentity.flutter' - compileSdk 35 - - defaultConfig { - minSdk 21 - - // Read version from pubspec.yaml for setWrapperInfo - def pubspecYaml = new File("../pubspec.yaml") - def pubspecText = pubspecYaml.text - def versionLine = pubspecText.find(/version:\s*(.+)/) - def version = versionLine ? pubspecText.split(/version:\s*/)[1].split(/\n/)[0].trim() : "11.0.0" - buildConfigField "String", "SMILE_ID_VERSION", "\"${version}\"" - } - - buildFeatures { - buildConfig true - } - - compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 - } - kotlinOptions { - jvmTarget = '17' - freeCompilerArgs += ['-Xskip-metadata-version-check'] // metadata version check skip flag - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - test.java.srcDirs += 'src/test/kotlin' - } - - lint { - disable "NullSafeMutableLiveData" - } - - testOptions { - unitTests.all { - useJUnitPlatform() - - testLogging { - events "passed", "skipped", "failed", "standardOut", "standardError" - outputs.upToDateWhen { false } - showStandardStreams = true - } - } - } - - buildFeatures.compose = true - if (!kotlinVersion?.startsWith("2")) { - composeOptions { - kotlinCompilerExtensionVersion = kotlinCompilerExtension - } - } - - dependencies { - implementation "com.smileidentity:android-sdk:${smileVersion}" - implementation "androidx.core:core-ktx" - implementation "androidx.compose.ui:ui" - implementation 'androidx.lifecycle:lifecycle-viewmodel-compose' - implementation "androidx.compose.material3:material3" - implementation "androidx.fragment:fragment-ktx" - implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core" - implementation "org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.8" - implementation "com.google.mlkit:object-detection:17.0.2" - - testImplementation "org.jetbrains.kotlin:kotlin-test" - testImplementation "io.mockk:mockk:1.13.13" - } -} - -ktlint { - android = true - filter { - exclude { it.file.path.contains(".g.kt") } - } -} diff --git a/android/build.gradle.kts b/android/build.gradle.kts new file mode 100644 index 00000000..6b8369b3 --- /dev/null +++ b/android/build.gradle.kts @@ -0,0 +1,110 @@ +val kotlinVersion = findProperty("kotlinVersion") as String? ?: "2.1.21" +val kotlinCompilerExtension = findProperty("kotlinCompilerExtensionVersion") as String? ?: "1.5.14" + +extra.apply { + set("kotlinVersion", kotlinVersion) + set("kotlinCompilerExtension", kotlinCompilerExtension) +} + +buildscript { + val kotlinVersion = rootProject.findProperty("kotlinVersion") as String? ?: "2.1.21" + + dependencies { + if (kotlinVersion.startsWith("2")) { + classpath("org.jetbrains.kotlin:compose-compiler-gradle-plugin:$kotlinVersion") + } else { + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") + } + } +} + +allprojects { + repositories { + maven { + url = uri("https://central.sonatype.com/repository/maven-snapshots/") + } + } +} + +plugins { + id("com.android.library") + id("org.jetbrains.kotlin.android") + alias(libs.plugins.ktlint) +} + +if (kotlinVersion.startsWith("2")) { + apply(plugin = "org.jetbrains.kotlin.plugin.compose") +} + +android { + namespace = "com.smileidentity.flutter" + compileSdk = 35 + + defaultConfig { + minSdk = 21 + + // Read version from pubspec.yaml for setWrapperInfo + val pubspecYaml = File("../pubspec.yaml") + val pubspecText = pubspecYaml.readText() + val versionLine = Regex("""version:\s*(.+)""").find(pubspecText) + val version = if (versionLine != null) { + pubspecText.split(Regex("""version:\s*"""))[1].split("\n")[0].trim() + } else { + "11.0.0" + } + buildConfigField("String", "SMILE_ID_VERSION", "\"$version\"") + } + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 + } + + kotlinOptions { + jvmTarget = "17" + freeCompilerArgs += listOf( + "-Xskip-metadata-version-check", + ) // metadata version check skip flag + } + + sourceSets { + sourceSets["main"].java.srcDirs("src/main/kotlin") + sourceSets["test"].java.srcDirs("src/test/kotlin") + } + + lint { + disable.add("NullSafeMutableLiveData") + } + + buildFeatures { + buildConfig = true + compose = true + } + if (!kotlinVersion.startsWith("2")) { + composeOptions { + kotlinCompilerExtensionVersion = kotlinCompilerExtension + } + } +} + +dependencies { + implementation(libs.smileid) + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.compose.ui) + implementation(libs.androidx.compose.viewmodel) + implementation(libs.androidx.compose.material3) + implementation(libs.androidx.fragment) + implementation(libs.kotlin.coroutines) + implementation(libs.kotlin.immutable.collections) + implementation(libs.mlkit) + + testImplementation(libs.kotlin.test) + testImplementation(libs.mockk) +} + +ktlint { + android.set(true) + filter { + exclude { it.file.path.contains(".g.kt") } + } +} diff --git a/android/gradle/libs.versions.toml b/android/gradle/libs.versions.toml new file mode 100644 index 00000000..65a3bd7a --- /dev/null +++ b/android/gradle/libs.versions.toml @@ -0,0 +1,27 @@ +[versions] +android-gradle-plugin = "8.10.1" +kotlin = "2.1.21" +kotlin-immutable-collections = "0.4.0" +ktlint-plugin = "12.3.0" +mockk = "1.14.2" +mlkit = "17.0.2" +smileid = "11.0.3" + +[libraries] +androidx-core-ktx = { module = "androidx.core:core-ktx" } +androidx-compose-ui = { module = "androidx.compose.ui:ui" } +androidx-compose-viewmodel = { module = "androidx.lifecycle:lifecycle-viewmodel-compose" } +androidx-compose-material3 = { module = "androidx.compose.material3:material3" } +androidx-fragment = { module = "androidx.fragment:fragment-ktx" } +kotlin-coroutines = { module ="org.jetbrains.kotlinx:kotlinx-coroutines-core" } +kotlin-immutable-collections = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlin-immutable-collections" } +kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test" } +mlkit = { module = "com.google.mlkit:object-detection" , version.ref="mlkit" } +mockk = { module = "io.mockk:mockk", version.ref = "mockk" } +smileid = { module = "com.smileidentity:android-sdk", version.ref = "smileid" } + +[plugins] +android-application = { id = "com.android.application", version.ref = "android-gradle-plugin" } +flutter-gradle-plugin = { id = "dev.flutter.flutter-gradle-plugin" } +kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } +ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint-plugin" } \ No newline at end of file diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties index 8fc91c82..7e7dbc68 100644 --- a/android/gradle/wrapper/gradle-wrapper.properties +++ b/android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/android/settings.gradle b/android/settings.gradle deleted file mode 100644 index 52131458..00000000 --- a/android/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = 'smile_id_flutter' diff --git a/android/settings.gradle.kts b/android/settings.gradle.kts new file mode 100644 index 00000000..d350ccf2 --- /dev/null +++ b/android/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "smile_id_flutter" diff --git a/android/src/test/kotlin/com/smileidentity/flutter/SmileIDPluginTest.kt b/android/src/test/kotlin/com/smileidentity/flutter/SmileIDPluginTest.kt index ce5035a9..c58879d5 100644 --- a/android/src/test/kotlin/com/smileidentity/flutter/SmileIDPluginTest.kt +++ b/android/src/test/kotlin/com/smileidentity/flutter/SmileIDPluginTest.kt @@ -14,8 +14,8 @@ import kotlin.test.Test /* * This demonstrates a simple unit test of the Kotlin portion of this plugin's implementation. * - * Once you have built the plugin's example app, you can run these tests from the command - * line by running `./gradlew testDebugUnitTest` in the `example/android/` directory, or + * Once you have built the plugin's sample app, you can run these tests from the command + * line by running `./gradlew testDebugUnitTest` in the `sample/android/` directory, or * you can run them directly from IDEs that support JUnit such as Android Studio. */ internal class SmileIDPluginTest { diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle deleted file mode 100644 index 778c194a..00000000 --- a/example/android/app/build.gradle +++ /dev/null @@ -1,35 +0,0 @@ -plugins { - id "com.android.application" - id "kotlin-android" - id "org.jlleitschuh.gradle.ktlint" - id "dev.flutter.flutter-gradle-plugin" -} - -android { - namespace "com.smileidentity.flutter.sample" - compileSdk 35 - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - applicationId "com.smileidentity.flutter.sample" - minSdk 21 - targetSdkVersion flutter.targetSdkVersion - versionCode 1 - versionName "1.0.0" - } - - buildTypes { - release { - // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug - } - } - - kotlinOptions { - jvmTarget = '17' - freeCompilerArgs += ['-Xskip-metadata-version-check'] - } -} \ No newline at end of file diff --git a/example/android/build.gradle b/example/android/build.gradle deleted file mode 100644 index c3e1ee56..00000000 --- a/example/android/build.gradle +++ /dev/null @@ -1,30 +0,0 @@ -// set your desired versions here -//project.ext { -// kotlinVersion = "1.9.24" -// kotlinCompilerExtensionVersion = "1.5.14" -//} - -allprojects { - repositories { - google() - mavenCentral() -// uncomment for development to test snapshots - maven { - url = 'https://central.sonatype.com/repository/maven-snapshots/' - } - } -} - -rootProject.buildDir = '../build' - -subprojects { - project.buildDir = "${rootProject.buildDir}/${project.name}" -} - -subprojects { - project.evaluationDependsOn(':app') -} - -tasks.register("clean", Delete) { - delete rootProject.buildDir -} \ No newline at end of file diff --git a/example/android/gradle.properties b/example/android/gradle.properties deleted file mode 100644 index f93b85b6..00000000 --- a/example/android/gradle.properties +++ /dev/null @@ -1,5 +0,0 @@ -org.gradle.jvmargs=-Xmx1536M -android.useAndroidX=true -android.enableJetifier=true -# TODO https://stackoverflow.com/a/76159929 -kotlin.jvm.target.validation.mode = IGNORE diff --git a/example/android/settings.gradle b/example/android/settings.gradle deleted file mode 100644 index a2c3227e..00000000 --- a/example/android/settings.gradle +++ /dev/null @@ -1,26 +0,0 @@ -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 - }() - - includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") - - repositories { - google() - mavenCentral() - gradlePluginPortal() - } -} - -plugins { - id "dev.flutter.flutter-plugin-loader" version "1.0.0" - id "com.android.application" version "8.7.3" apply false - id "org.jetbrains.kotlin.android" version "2.1.0" apply false - id "org.jlleitschuh.gradle.ktlint" version "12.1.2" apply false -} - -include ":app" \ No newline at end of file diff --git a/ios/smile_id.podspec b/ios/smile_id.podspec index 7394d383..d6622b99 100644 --- a/ios/smile_id.podspec +++ b/ios/smile_id.podspec @@ -13,8 +13,8 @@ Pod::Spec.new do |s| s.source_files = 'Classes/**/*' s.dependency 'Flutter' s.dependency 'SmileID', '11.0.0' - # for development alongside example/ios/Podfile uncomment the version and specify - # tag or branch in example/ios/Podfile + # for development alongside sample/ios/Podfile uncomment the version and specify + # tag or branch in sample/ios/Podfile # s.dependency "SmileID" s.platform = :ios, '13.0' diff --git a/example/.gitignore b/sample/.gitignore similarity index 100% rename from example/.gitignore rename to sample/.gitignore diff --git a/example/README.md b/sample/README.md similarity index 100% rename from example/README.md rename to sample/README.md diff --git a/example/analysis_options.yaml b/sample/analysis_options.yaml similarity index 100% rename from example/analysis_options.yaml rename to sample/analysis_options.yaml diff --git a/example/android/.gitignore b/sample/android/.gitignore similarity index 100% rename from example/android/.gitignore rename to sample/android/.gitignore diff --git a/sample/android/app/build.gradle.kts b/sample/android/app/build.gradle.kts new file mode 100644 index 00000000..19d081cf --- /dev/null +++ b/sample/android/app/build.gradle.kts @@ -0,0 +1,46 @@ +plugins { + id("com.android.application") + id("kotlin-android") + id("dev.flutter.flutter-gradle-plugin") +} + +android { + namespace = "com.smileidentity.flutter.sample" + compileSdk = 35 + + sourceSets { + getByName("main").java.srcDirs("src/main/kotlin") + } + + defaultConfig { + applicationId = "com.smileidentity.flutter.sample" + minSdk = 21 + targetSdk = 35 + versionCode = 1 + versionName = "1.0.0" + } + + buildTypes { + getByName("release") { + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig = signingConfigs.getByName("debug") + } + } + + kotlinOptions { + jvmTarget = "17" + freeCompilerArgs += listOf("-Xskip-metadata-version-check") + } +} +val checkSmileConfigFileTask = tasks.register("checkSmileConfigFile") { + doLast { + val configFile = file("src/main/assets/smile_config.json") + if (configFile.readText().isBlank()) { + throw IllegalArgumentException("Empty smile_config.json file in src/main/assets!") + } + } +} + +tasks.named("assemble") { + dependsOn(checkSmileConfigFileTask) +} diff --git a/example/android/app/src/debug/AndroidManifest.xml b/sample/android/app/src/debug/AndroidManifest.xml similarity index 100% rename from example/android/app/src/debug/AndroidManifest.xml rename to sample/android/app/src/debug/AndroidManifest.xml diff --git a/example/android/app/src/main/AndroidManifest.xml b/sample/android/app/src/main/AndroidManifest.xml similarity index 97% rename from example/android/app/src/main/AndroidManifest.xml rename to sample/android/app/src/main/AndroidManifest.xml index 4c3d852b..eaf7c9d0 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/sample/android/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ ("clean") { + delete(rootProject.layout.buildDirectory) +} diff --git a/sample/android/gradle.properties b/sample/android/gradle.properties new file mode 100644 index 00000000..3f007517 --- /dev/null +++ b/sample/android/gradle.properties @@ -0,0 +1,14 @@ +org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 +android.enableJetifier=false +android.useAndroidX=true + +# TODO https://stackoverflow.com/a/76159929 +kotlin.jvm.target.validation.mode = IGNORE + +# Enable Gradle daemon and parallel builds +org.gradle.daemon=true +org.gradle.parallel=true +org.gradle.configureondemand=true + +# Enable caching +org.gradle.caching=true diff --git a/example/android/gradle/wrapper/gradle-wrapper.jar b/sample/android/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from example/android/gradle/wrapper/gradle-wrapper.jar rename to sample/android/gradle/wrapper/gradle-wrapper.jar diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/sample/android/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from example/android/gradle/wrapper/gradle-wrapper.properties rename to sample/android/gradle/wrapper/gradle-wrapper.properties diff --git a/example/android/gradlew b/sample/android/gradlew similarity index 100% rename from example/android/gradlew rename to sample/android/gradlew diff --git a/example/android/gradlew.bat b/sample/android/gradlew.bat similarity index 100% rename from example/android/gradlew.bat rename to sample/android/gradlew.bat diff --git a/sample/android/settings.gradle.kts b/sample/android/settings.gradle.kts new file mode 100644 index 00000000..7be483ce --- /dev/null +++ b/sample/android/settings.gradle.kts @@ -0,0 +1,39 @@ +pluginManagement { + val flutterSdkPath = run { + val properties = java.util.Properties() + file("local.properties").inputStream().use { properties.load(it) } + val flutterSdkPath = properties.getProperty("flutter.sdk") + require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } + flutterSdkPath + } + + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") + + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} + +dependencyResolutionManagement { + repositories { + google() + mavenCentral() + + } + + versionCatalogs { + create("libs") { + from(files("../../android/gradle/libs.versions.toml")) + } + } +} + +plugins { + id("dev.flutter.flutter-plugin-loader") version "1.0.0" + id("com.android.application") version "8.10.1" apply false + id("org.jetbrains.kotlin.android") version "2.1.21" apply false +} + +include(":app") diff --git a/example/integration_test/plugin_integration_test.dart b/sample/integration_test/plugin_integration_test.dart similarity index 100% rename from example/integration_test/plugin_integration_test.dart rename to sample/integration_test/plugin_integration_test.dart diff --git a/example/ios/.gitignore b/sample/ios/.gitignore similarity index 100% rename from example/ios/.gitignore rename to sample/ios/.gitignore diff --git a/example/ios/Flutter/AppFrameworkInfo.plist b/sample/ios/Flutter/AppFrameworkInfo.plist similarity index 100% rename from example/ios/Flutter/AppFrameworkInfo.plist rename to sample/ios/Flutter/AppFrameworkInfo.plist diff --git a/example/ios/Flutter/Debug.xcconfig b/sample/ios/Flutter/Debug.xcconfig similarity index 100% rename from example/ios/Flutter/Debug.xcconfig rename to sample/ios/Flutter/Debug.xcconfig diff --git a/example/ios/Flutter/Release.xcconfig b/sample/ios/Flutter/Release.xcconfig similarity index 100% rename from example/ios/Flutter/Release.xcconfig rename to sample/ios/Flutter/Release.xcconfig diff --git a/example/ios/Podfile b/sample/ios/Podfile similarity index 100% rename from example/ios/Podfile rename to sample/ios/Podfile diff --git a/example/ios/Podfile.lock b/sample/ios/Podfile.lock similarity index 92% rename from example/ios/Podfile.lock rename to sample/ios/Podfile.lock index 81aeae34..cf0d138e 100644 --- a/example/ios/Podfile.lock +++ b/sample/ios/Podfile.lock @@ -43,9 +43,9 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: FingerprintJS: 3a0c3e7f5035ecae199e5e5836200d9b20f1266a Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 - integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573 + integration_test: 4a889634ef21a45d28d50d622cf412dc6d9f586e lottie-ios: 96784afc26ea031d3e2b6cae342a4b8915072489 - smile_id: 7c77a15b27a01a4bc03ca3971bba25cdc2ba8cc9 + smile_id: 6a7e895fb577400ad37cd570b42a1f2bba98c345 SmileID: 3b44f5c41f8050f57bb77a9d44df5d5e9d3ffe22 SmileIDSecurity: b847101f7d7b86c1c453fb1b045146dfcbc5183d ZIPFoundation: b8c29ea7ae353b309bc810586181fd073cb3312c diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/sample/ios/Runner.xcodeproj/project.pbxproj similarity index 100% rename from example/ios/Runner.xcodeproj/project.pbxproj rename to sample/ios/Runner.xcodeproj/project.pbxproj diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/sample/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to sample/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/sample/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to sample/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/sample/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to sample/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/sample/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme similarity index 100% rename from example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme rename to sample/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme diff --git a/example/ios/Runner.xcworkspace/contents.xcworkspacedata b/sample/ios/Runner.xcworkspace/contents.xcworkspacedata similarity index 100% rename from example/ios/Runner.xcworkspace/contents.xcworkspacedata rename to sample/ios/Runner.xcworkspace/contents.xcworkspacedata diff --git a/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/sample/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to sample/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/sample/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings similarity index 100% rename from example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings rename to sample/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings diff --git a/example/ios/Runner/AppDelegate.swift b/sample/ios/Runner/AppDelegate.swift similarity index 100% rename from example/ios/Runner/AppDelegate.swift rename to sample/ios/Runner/AppDelegate.swift diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png diff --git a/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png rename to sample/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json b/sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json rename to sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png diff --git a/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md b/sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md similarity index 100% rename from example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md rename to sample/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md diff --git a/example/ios/Runner/Base.lproj/LaunchScreen.storyboard b/sample/ios/Runner/Base.lproj/LaunchScreen.storyboard similarity index 100% rename from example/ios/Runner/Base.lproj/LaunchScreen.storyboard rename to sample/ios/Runner/Base.lproj/LaunchScreen.storyboard diff --git a/example/ios/Runner/Base.lproj/Main.storyboard b/sample/ios/Runner/Base.lproj/Main.storyboard similarity index 100% rename from example/ios/Runner/Base.lproj/Main.storyboard rename to sample/ios/Runner/Base.lproj/Main.storyboard diff --git a/example/ios/Runner/Info.plist b/sample/ios/Runner/Info.plist similarity index 98% rename from example/ios/Runner/Info.plist rename to sample/ios/Runner/Info.plist index 23139d25..da39cccb 100644 --- a/example/ios/Runner/Info.plist +++ b/sample/ios/Runner/Info.plist @@ -15,7 +15,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - smileid_example + smileid_sample CFBundlePackageType APPL CFBundleShortVersionString diff --git a/example/ios/Runner/Runner-Bridging-Header.h b/sample/ios/Runner/Runner-Bridging-Header.h similarity index 100% rename from example/ios/Runner/Runner-Bridging-Header.h rename to sample/ios/Runner/Runner-Bridging-Header.h diff --git a/example/ios/RunnerTests/RunnerTests.swift b/sample/ios/RunnerTests/RunnerTests.swift similarity index 100% rename from example/ios/RunnerTests/RunnerTests.swift rename to sample/ios/RunnerTests/RunnerTests.swift diff --git a/example/lib/main.dart b/sample/lib/main.dart similarity index 100% rename from example/lib/main.dart rename to sample/lib/main.dart diff --git a/example/pubspec.lock b/sample/pubspec.lock similarity index 71% rename from example/pubspec.lock rename to sample/pubspec.lock index d927aed7..7e224cf9 100644 --- a/example/pubspec.lock +++ b/sample/pubspec.lock @@ -5,42 +5,42 @@ packages: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + 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" + sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea" url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" characters: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.4.0" clock: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.1.2" collection: dependency: transitive description: name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.1" cupertino_icons: dependency: "direct main" description: @@ -53,18 +53,18 @@ packages: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44" url: "https://pub.dev" source: hosted - version: "1.3.1" + version: "1.3.3" file: dependency: transitive description: name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + sha256: a3b4f84adafef897088c160faf7dfffb7696046cb13ae90b508c2cbc95d3b8d4 url: "https://pub.dev" source: hosted - version: "7.0.0" + version: "7.0.1" flutter: dependency: "direct main" description: flutter @@ -102,18 +102,18 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" + sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" url: "https://pub.dev" source: hosted - version: "10.0.5" + version: "10.0.9" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 url: "https://pub.dev" source: hosted - version: "3.0.5" + version: "3.0.9" leak_tracker_testing: dependency: transitive description: @@ -134,10 +134,10 @@ packages: dependency: transitive description: name: matcher - sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 url: "https://pub.dev" source: hosted - version: "0.12.16+1" + version: "0.12.17" material_color_utilities: dependency: transitive description: @@ -150,26 +150,26 @@ packages: dependency: transitive description: name: meta - sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c url: "https://pub.dev" source: hosted - version: "1.15.0" + version: "1.16.0" path: dependency: transitive description: name: path - sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" platform: dependency: transitive description: name: platform - sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" url: "https://pub.dev" source: hosted - version: "3.1.5" + version: "3.1.6" plugin_platform_interface: dependency: transitive description: @@ -182,15 +182,15 @@ packages: dependency: transitive description: name: process - sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + sha256: "107d8be718f120bbba9dcd1e95e3bd325b1b4a4f07db64154635ba03f2567a0d" url: "https://pub.dev" source: hosted - version: "5.0.2" + version: "5.0.3" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" smile_id: dependency: "direct main" description: @@ -202,34 +202,34 @@ packages: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + 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" + 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 + 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" + sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.4.1" sync_http: dependency: transitive description: @@ -242,18 +242,18 @@ packages: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + 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: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd url: "https://pub.dev" source: hosted - version: "0.7.2" + version: "0.7.4" vector_math: dependency: transitive description: @@ -266,18 +266,18 @@ packages: dependency: transitive description: name: vm_service - sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d" + sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 url: "https://pub.dev" source: hosted - version: "14.2.5" + version: "15.0.0" webdriver: dependency: transitive description: name: webdriver - sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + sha256: "2f3a14ca026957870cfd9c635b83507e0e51d8091568e90129fbf805aba7cade" url: "https://pub.dev" source: hosted - version: "3.0.3" + version: "3.1.0" sdks: - dart: ">=3.3.0 <4.0.0" + dart: ">=3.7.0-0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54" diff --git a/example/pubspec.yaml b/sample/pubspec.yaml similarity index 90% rename from example/pubspec.yaml rename to sample/pubspec.yaml index 2abec66f..1b3c99a0 100644 --- a/example/pubspec.yaml +++ b/sample/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: smile_id: # When depending on this package from a real application you should use: # smile_id: ^x.y.z - # The example app is bundled with the plugin so we use a path dependency on + # The sample app is bundled with the plugin so we use a path dependency on # the parent directory to use the current plugin's version. path: ../ diff --git a/example/test/widget_test.dart b/sample/test/widget_test.dart similarity index 100% rename from example/test/widget_test.dart rename to sample/test/widget_test.dart