Skip to content

Commit

Permalink
Created two new Compose sample apps - one line scan example and fragm…
Browse files Browse the repository at this point in the history
…ent example
  • Loading branch information
medvedecrobertmb committed Jan 17, 2024
1 parent 895ec07 commit 426d8f7
Show file tree
Hide file tree
Showing 34 changed files with 792 additions and 1 deletion.
1 change: 1 addition & 0 deletions BlinkIDSample/BlinkID-ComposeFragmentSample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
58 changes: 58 additions & 0 deletions BlinkIDSample/BlinkID-ComposeFragmentSample/build.gradle
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 BlinkIDSample/BlinkID-ComposeFragmentSample/proguard-rules.pro
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
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>
Loading

0 comments on commit 426d8f7

Please sign in to comment.