Skip to content

Commit

Permalink
Merge pull request #39 from BlinkID/BlinkID/release/v3.8.0
Browse files Browse the repository at this point in the history
Blink id/release/v3.8.0
  • Loading branch information
DoDoENT authored May 17, 2017
2 parents 63a890e + 235aabd commit aa91608
Show file tree
Hide file tree
Showing 53 changed files with 2,912 additions and 279 deletions.
8 changes: 7 additions & 1 deletion BlinkIDDemo/BlinkIDCustomCombinedDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ android {
}
buildTypes {
release {
minifyEnabled false
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
}
}

dependencies {
Expand Down
7 changes: 5 additions & 2 deletions BlinkIDDemo/BlinkIDDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ android {

defaultConfig {
applicationId "com.microblink.blinkid"
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
}

buildTypes {
release {
minifyEnabled false
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
Expand Down
10 changes: 0 additions & 10 deletions BlinkIDDemo/BlinkIDDemo/proguard-project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,3 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-keep class com.microblink.** { *; }

-keepclassmembers class com.microblink.** {
*;
}

-dontwarn android.hardware.**

-dontwarn android.support.v4.**
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import com.microblink.recognizers.blinkid.eudl.EUDLCountry;
import com.microblink.recognizers.blinkid.eudl.EUDLRecognizerSettings;
import com.microblink.recognizers.blinkid.germany.back.GermanIDBackSideRecognizerSettings;
import com.microblink.recognizers.blinkid.germany.combined.GermanIDCombinedRecognizerSettings;
import com.microblink.recognizers.blinkid.germany.front.GermanIDFrontSideRecognizerSettings;
import com.microblink.recognizers.blinkid.germany.old.front.GermanOldIDRecognizerSettings;
import com.microblink.recognizers.blinkid.germany.passport.GermanPassportRecognizerSettings;
Expand Down Expand Up @@ -289,6 +290,7 @@ private void buildElements() {
elements.add(buildChechIDCombinedElement());
elements.add(buildGermanIDElement());
elements.add(buildGermanPassportElement());
elements.add(buildGermanIDCombinedElement());
elements.add(buildMyKadElement());
elements.add(buildIKadElement());
elements.add(bildRomanianElement());
Expand Down Expand Up @@ -507,6 +509,12 @@ private ListElement buildUsdlCombinedElement() {
return new ListElement("US Driver's License combined", buildCombinedIntent(usdlCombined));
}

private ListElement buildGermanIDCombinedElement() {
GermanIDCombinedRecognizerSettings deCombined = new GermanIDCombinedRecognizerSettings();

return new ListElement( "German ID combined", buildCombinedIntent( deCombined ) );
}

private ListElement buildPDF417Element() {
// prepare settings for PDF417 barcode recognizer
Pdf417RecognizerSettings pdf417 = new Pdf417RecognizerSettings();
Expand Down
6 changes: 4 additions & 2 deletions BlinkIDDemo/BlinkIDDemoCustomSegmentScan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@ android {
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId 'com.microblink.blinkid'
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
}
lintOptions {
checkReleaseBuilds false
}
buildTypes {
release {
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
signingConfig = debug.signingConfig
}
}
}
Expand Down
13 changes: 1 addition & 12 deletions BlinkIDDemo/BlinkIDDemoCustomSegmentScan/proguard-project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,4 @@
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}


-keep class com.microblink.** { *; }

-keepclassmembers class com.microblink.** {
*;
}

-dontwarn android.hardware.**

-dontwarn android.support.v4.**
#}
12 changes: 10 additions & 2 deletions BlinkIDDemo/BlinkIDDemoCustomUI/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ android {

defaultConfig {
applicationId "com.microblink.blinkid"
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
}

buildTypes {
release {
minifyEnabled false
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
}
Expand All @@ -26,5 +29,10 @@ dependencies {
compile("com.microblink:blinkid:${rootProject.ext.blinkIdVersion}@aar") {
transitive = true
}

// uncomment this to use custom LibBlinkID build
// compile project(':LibBlinkID-release')
// compile "com.android.support:appcompat-v7:${rootProject.ext.appCompatVersion}"

compile project(':LibResult')
}
10 changes: 0 additions & 10 deletions BlinkIDDemo/BlinkIDDemoCustomUI/proguard-project.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,3 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-keep class com.microblink.** { *; }

-keepclassmembers class com.microblink.** {
*;
}

-dontwarn android.hardware.**

-dontwarn android.support.v4.**
10 changes: 8 additions & 2 deletions BlinkIDDemo/BlinkIDDetectorDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,23 @@ android {

defaultConfig {
applicationId "com.microblink.blinkid"
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
}
}

dependencies {
Expand Down
10 changes: 0 additions & 10 deletions BlinkIDDemo/BlinkIDDetectorDemo/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,3 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-keep class com.microblink.** { *; }

-keepclassmembers class com.microblink.** {
*;
}

-dontwarn android.hardware.**

-dontwarn android.support.v4.**
15 changes: 13 additions & 2 deletions BlinkIDDemo/BlinkIDDirectApiDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,33 @@ android {

defaultConfig {
applicationId "com.microblink.blinkid"
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
checkReleaseBuilds false
}
}

dependencies {
compile("com.microblink:blinkid:${rootProject.ext.blinkIdVersion}@aar") {
transitive = true
}

// uncomment this to use custom LibBlinkID build
// compile project(':LibBlinkID-release')
// compile "com.android.support:appcompat-v7:${rootProject.ext.appCompatVersion}"

compile project(':LibResult')
}
12 changes: 10 additions & 2 deletions BlinkIDDemo/BlinkIDImageListenerDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ android {
buildToolsVersion rootProject.ext.buildToolsVersion
defaultConfig {
applicationId "com.microblink.blinkid"
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand All @@ -25,5 +28,10 @@ dependencies {
compile("com.microblink:blinkid:${rootProject.ext.blinkIdVersion}@aar") {
transitive = true
}

// uncomment this to use custom LibBlinkID build
// compile project(':LibBlinkID-release')
// compile "com.android.support:appcompat-v7:${rootProject.ext.appCompatVersion}"

compile project(':LibResult')
}
10 changes: 0 additions & 10 deletions BlinkIDDemo/BlinkIDImageListenerDemo/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,3 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-keep class com.microblink.** { *; }

-keepclassmembers class com.microblink.** {
*;
}

-dontwarn android.hardware.**

-dontwarn android.support.v4.**
6 changes: 4 additions & 2 deletions BlinkIDDemo/BlinkIDRandomScanDemo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {

defaultConfig {
applicationId "com.microblink.blinkid"
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
}

Expand All @@ -16,9 +16,11 @@ android {

buildTypes {
release {
debuggable true
minifyEnabled true
shrinkResources true
signingConfig signingConfigs.debug
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig = debug.signingConfig
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions BlinkIDDemo/LibBlinkID-release/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('LibBlinkID-release.aar'))
6 changes: 5 additions & 1 deletion BlinkIDDemo/LibResult/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion 10
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
Expand All @@ -22,4 +22,8 @@ dependencies {
compile("com.microblink:blinkid:${rootProject.ext.blinkIdVersion}@aar") {
transitive = true
}

// uncomment this to use custom LibBlinkID build
// compile project(':LibBlinkID-release')
// compile "com.android.support:appcompat-v7:${rootProject.ext.appCompatVersion}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.microblink.libresult.extract.czechia.CzechIDFrontSideRecognitionResultExtractor;
import com.microblink.libresult.extract.eudl.EUDLRecognitionResultExtractor;
import com.microblink.libresult.extract.germany.GermanIDBackSideRecognitionResultExtractor;
import com.microblink.libresult.extract.germany.GermanIDCombinedRecognitionResultExtractor;
import com.microblink.libresult.extract.germany.GermanIDFrontSideRecognitionResultExtractor;
import com.microblink.libresult.extract.germany.GermanOldIDRecognitionResultExtractor;
import com.microblink.libresult.extract.germany.GermanPassportRecognitionResultExtractor;
Expand Down Expand Up @@ -70,6 +71,7 @@
import com.microblink.recognizers.blinkid.czechia.front.CzechIDFrontSideRecognitionResult;
import com.microblink.recognizers.blinkid.eudl.EUDLRecognitionResult;
import com.microblink.recognizers.blinkid.germany.back.GermanIDBackSideRecognitionResult;
import com.microblink.recognizers.blinkid.germany.combined.GermanIDCombinedRecognitionResult;
import com.microblink.recognizers.blinkid.germany.front.GermanIDFrontSideRecognitionResult;
import com.microblink.recognizers.blinkid.germany.old.front.GermanOldIDRecognitionResult;
import com.microblink.recognizers.blinkid.germany.passport.GermanPassportRecognitionResult;
Expand Down Expand Up @@ -168,6 +170,8 @@ public void onCreate(Bundle savedInstanceState) {
mResultExtractor = new GermanOldIDRecognitionResultExtractor(getActivity());
} else if (mData instanceof GermanPassportRecognitionResult) {
mResultExtractor = new GermanPassportRecognitionResultExtractor(getActivity());
} else if (mData instanceof GermanIDCombinedRecognitionResult) {
mResultExtractor = new GermanIDCombinedRecognitionResultExtractor(getActivity());
} else if (mData instanceof RomanianIDFrontSideRecognitionResult) {
mResultExtractor = new RomanianIDFrontSideRecognitionResultExtractor(getActivity());
} else if (mData instanceof SlovakIDBackSideRecognitionResult) {
Expand Down
Loading

0 comments on commit aa91608

Please sign in to comment.