-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created two new Compose sample apps - one line scan example and fragm…
…ent example
- Loading branch information
1 parent
f4e3972
commit e5325d8
Showing
34 changed files
with
792 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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,58 @@ | ||
plugins { | ||
id 'com.android.application' | ||
id 'org.jetbrains.kotlin.android' | ||
} | ||
|
||
android { | ||
namespace 'com.microblink.blinkid' | ||
compileSdk 34 | ||
|
||
defaultConfig { | ||
applicationId "com.microblink.blinkid" | ||
minSdk 21 | ||
targetSdk rootProject.ext.targetSdkVersion | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
debuggable true | ||
minifyEnabled true | ||
shrinkResources true | ||
signingConfig signingConfigs.debug | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
composeOptions { | ||
kotlinCompilerExtensionVersion = "1.4.0" | ||
} | ||
buildFeatures { | ||
compose = true | ||
viewBinding = true | ||
} | ||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation("com.microblink:blinkid:${rootProject.ext.blinkIdVersion}@aar") { | ||
transitive = true | ||
} | ||
implementation 'androidx.core:core-ktx:1.10.0' | ||
implementation 'androidx.compose.material3:material3' | ||
implementation 'androidx.appcompat:appcompat:1.6.1' | ||
implementation platform('androidx.compose:compose-bom:2023.05.01') | ||
implementation 'androidx.activity:activity-compose:1.8.2' | ||
implementation 'androidx.fragment:fragment-ktx:1.6.2' | ||
implementation 'androidx.compose.ui:ui-viewbinding:1.5.4' | ||
implementation 'androidx.compose.ui:ui' | ||
|
||
implementation project(':LibUtils') | ||
} |
21 changes: 21 additions & 0 deletions
21
BlinkIDSample/BlinkID-ComposeFragmentSample/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 |
25 changes: 25 additions & 0 deletions
25
BlinkIDSample/BlinkID-ComposeFragmentSample/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,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application | ||
android:name="com.microblink.BlinkIdSampleApp" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:exported="true" | ||
android:configChanges="orientation|screenSize" | ||
android:theme="@style/MB_Theme"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
</application> | ||
|
||
</manifest> |
Oops, something went wrong.