Skip to content

Commit 843fce3

Browse files
authored
Merge pull request #84 from BlinkID/feature/blinkid-v7
Feature/blinkid v7
2 parents 04ffe34 + ec67443 commit 843fce3

File tree

138 files changed

+9632
-13519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+9632
-13519
lines changed

BlinkID/.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.build/
9+
.buildlog/
10+
.history
11+
.svn/
12+
.swiftpm/
13+
migrate_working_dir/
14+
.vscode/
15+
16+
# IntelliJ related
17+
*.iml
18+
*.ipr
19+
*.iws
20+
.idea/
21+
22+
# The .vscode folder contains launch configuration and tasks you configure in
23+
# VS Code which you may wish to be included in version control, so this line
24+
# is commented out by default.
25+
#.vscode/
26+
27+
# Flutter/Dart/Pub related
28+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
29+
/pubspec.lock
30+
**/doc/api/
31+
.dart_tool/
32+
.flutter-plugins
33+
.flutter-plugins-dependencies
34+
build/

BlinkID/.metadata

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,30 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: f7a6a7906be96d2288f5d63a5a54c515a6e987fe
8-
channel: stable
7+
revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf"
8+
channel: "stable"
99

1010
project_type: plugin
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
17+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
18+
- platform: android
19+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
20+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
21+
- platform: ios
22+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
23+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
24+
25+
# User provided section
26+
27+
# List of Local paths (relative to this file) that should be
28+
# ignored by the migrate tool.
29+
#
30+
# Files that are not part of the templates will be ignored by default.
31+
unmanaged_files:
32+
- 'lib/main.dart'
33+
- 'ios/Runner.xcodeproj/project.pbxproj'

BlinkID/CHANGELOG.md

Lines changed: 141 additions & 76 deletions
Large diffs are not rendered by default.

BlinkID/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) [2017] [Microblink]
3+
Copyright (c) [2025] Microblink
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

BlinkID/analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

BlinkID/android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
.DS_Store
77
/build
88
/captures
9+
.cxx

BlinkID/android/build.gradle

Lines changed: 45 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,69 @@
1-
group 'com.microblink.blinkid.flutter'
2-
version '1.0'
1+
group = "com.microblink.blinkid_flutter"
2+
version = "1.0"
33

44
buildscript {
5+
ext.kotlin_version = "2.1.0"
56
repositories {
67
google()
7-
jcenter()
8+
mavenCentral()
89
}
910

1011
dependencies {
11-
classpath 'com.android.tools.build:gradle:8.8.2'
12+
classpath("com.android.tools.build:gradle:8.9.1")
13+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
1214
}
1315
}
14-
15-
rootProject.allprojects {
16+
allprojects {
1617
repositories {
1718
google()
18-
jcenter()
19-
maven { url 'https://maven.microblink.com' }
19+
mavenCentral()
2020
}
2121
}
2222

23-
apply plugin: 'com.android.library'
23+
apply plugin: "com.android.library"
24+
apply plugin: "kotlin-android"
25+
apply plugin: 'kotlin-parcelize'
2426

2527
android {
26-
27-
if (project.android.hasProperty("namespace")) {
28-
namespace 'com.microblink.blinkid.flutter'
28+
namespace = "com.microblink.blinkid.flutter"
29+
30+
compileSdk = 35
31+
32+
compileOptions {
33+
sourceCompatibility = JavaVersion.VERSION_17
34+
targetCompatibility = JavaVersion.VERSION_17
35+
}
36+
37+
kotlinOptions {
38+
jvmTarget = JavaVersion.VERSION_17
39+
}
40+
41+
sourceSets {
42+
main.java.srcDirs += "src/main/kotlin"
43+
test.java.srcDirs += "src/test/kotlin"
2944
}
30-
compileSdkVersion 34
3145

3246
defaultConfig {
33-
minSdkVersion 21
47+
minSdk = 24
48+
targetSdk = 35
3449
}
35-
lintOptions {
36-
disable 'InvalidPackage'
50+
51+
dependencies {
52+
testImplementation("org.jetbrains.kotlin:kotlin-test")
53+
testImplementation("org.mockito:mockito-core:5.1.1")
54+
implementation("com.microblink:blinkid-ux:7.2.0")
55+
3756
}
38-
}
3957

40-
dependencies {
41-
implementation('com.microblink:blinkid:6.13.0@aar') {
42-
transitive = true
58+
testOptions {
59+
unitTests.all {
60+
useJUnitPlatform()
61+
62+
testLogging {
63+
events "passed", "skipped", "failed", "standardOut", "standardError"
64+
outputs.upToDateWhen {false}
65+
showStandardStreams = true
66+
}
67+
}
4368
}
4469
}
45-

BlinkID/android/gradle.properties

Lines changed: 0 additions & 4 deletions
This file was deleted.

BlinkID/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

BlinkID/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'blinkid_flutter'
1+
rootProject.name = 'blinkid_flutter'
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
2-
<application>
3-
<activity android:name="com.microblink.activity.DocumentScanActivity" android:noHistory="true" />
4-
<activity android:name="com.microblink.activity.DocumentVerificationActivity" android:noHistory="true" />
5-
<activity android:name="com.microblink.activity.BlinkIdActivity" android:noHistory="true" />
6-
</application>
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.microblink.blinkid.flutter">
73
</manifest>

0 commit comments

Comments
 (0)