-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from BlinkID/sample/android-custom-ui
Sample/android custom ui
- Loading branch information
Showing
101 changed files
with
12,074 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.gradle | ||
local.properties | ||
.DS_Store | ||
build | ||
*.iml | ||
.idea |
14 changes: 14 additions & 0 deletions
14
Samples/AndroidCustomUI/BindingSource/BlinkIDWrapper/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx |
1 change: 1 addition & 0 deletions
1
Samples/AndroidCustomUI/BindingSource/BlinkIDWrapper/LibBlinkIDWrapper/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
28 changes: 28 additions & 0 deletions
28
Samples/AndroidCustomUI/BindingSource/BlinkIDWrapper/LibBlinkIDWrapper/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apply plugin: 'com.android.library' | ||
|
||
android { | ||
compileSdkVersion 29 | ||
buildToolsVersion "29.0.3" | ||
|
||
defaultConfig { | ||
minSdkVersion 16 | ||
targetSdkVersion 29 | ||
versionCode 1 | ||
versionName "1.0" | ||
consumerProguardFiles 'consumer-rules.pro' | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
} | ||
|
||
dependencies { | ||
api("com.microblink:blinkid:${rootProject.ext.blinkIdVersion}@aar") { | ||
transitive = true | ||
} | ||
} |
Empty file.
21 changes: 21 additions & 0 deletions
21
Samples/AndroidCustomUI/BindingSource/BlinkIDWrapper/LibBlinkIDWrapper/proguard-rules.pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
8 changes: 8 additions & 0 deletions
8
...droidCustomUI/BindingSource/BlinkIDWrapper/LibBlinkIDWrapper/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.microblink.blinkid.wrapper"> | ||
|
||
<application> | ||
<activity android:name=".MyScanActivity"/> | ||
</application> | ||
|
||
</manifest> |
16 changes: 16 additions & 0 deletions
16
...rapper/LibBlinkIDWrapper/src/main/java/com/microblink/blinkid/wrapper/BlinkIDWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.microblink.blinkid.wrapper; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
|
||
import com.microblink.entities.recognizers.RecognizerBundle; | ||
|
||
public final class BlinkIDWrapper { | ||
|
||
public static void startMyScanActivityForResult(Activity parentActivity, int requestCode, RecognizerBundle recognizerBundle) { | ||
Intent intent = new Intent(parentActivity, MyScanActivity.class); | ||
recognizerBundle.saveToIntent(intent); | ||
parentActivity.startActivityForResult(intent, requestCode); | ||
} | ||
|
||
} |
Oops, something went wrong.