Skip to content

Commit

Permalink
Merge pull request #274 from BlinkID/release/v5.16.1
Browse files Browse the repository at this point in the history
Release/v5.16.1
  • Loading branch information
krizaa authored Apr 7, 2022
2 parents 1b50aab + e05cc3b commit 474665a
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

public abstract class SampleApplication extends Application {

private static boolean isRecognitionSupported = true;
protected static boolean isRecognitionSupported = true;

public static boolean isRecognitionSupported() {
return isRecognitionSupported;
Expand All @@ -34,7 +34,10 @@ public void onCreate() {
}

if (isRecognitionSupported) {
MicroblinkSDK.setLicenseFile(getLicenceFilePath(), this);
String licenseFilePath = getLicenceFilePath();
if (licenseFilePath != null) {
MicroblinkSDK.setLicenseFile(licenseFilePath, this);
}
MicroblinkSDK.setIntentDataTransferMode(IntentDataTransferMode.PERSISTED_OPTIMISED);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;

import com.microblink.libutils.R;

import java.util.List;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

public abstract class BaseMenuActivity extends AppCompatActivity {

Expand All @@ -22,8 +22,10 @@ public abstract class BaseMenuActivity extends AppCompatActivity {
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_menu_list);
TextView titleTxt = findViewById(R.id.txtTitle);
titleTxt.setText(getTitleText());

Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
setTitle(getTitleText());

mListItems = createMenuListItems();
final ListView lv = findViewById(R.id.detectorList);
Expand Down
19 changes: 9 additions & 10 deletions BlinkIDSample/LibUtils/src/main/res/layout/activity_menu_list.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<TextView
android:id="@+id/txtTitle"
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/mb_blue_cobalt"
android:gravity="center"
android:padding="8dp"
android:textColor="#FFFFFF"
android:textSize="18sp"
tools:text="Title here" />
android:layout_height="wrap_content">

<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:background="@color/mb_blue_cobalt"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</com.google.android.material.appbar.AppBarLayout>

<ListView
android:id="@+id/detectorList"
Expand Down
4 changes: 2 additions & 2 deletions BlinkIDSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ allprojects {
repositories {
jcenter()
maven { url 'https://maven.microblink.com' }
// mavenLocal()
//mavenLocal()
google()
}
}

// versions of libraries that all modules require

project.ext {
blinkIdVersion = '5.16.0'
blinkIdVersion = '5.16.1'
compileSdkVersion = 31
targetSdkVersion = 31
appCompatVersion = '1.4.0'
Expand Down
Binary file modified LibBlinkID-javadoc.jar
Binary file not shown.
Binary file modified LibBlinkID.aar
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Add _BlinkID_ as a dependency and make sure `transitive` is set to true

```
dependencies {
implementation('com.microblink:blinkid:5.16.0@aar') {
implementation('com.microblink:blinkid:5.16.1@aar') {
transitive = true
}
}
Expand All @@ -125,7 +125,7 @@ Android studio 3.0 should automatically import javadoc from maven dependency. If

1. In Android Studio project sidebar, ensure [project view is enabled](https://developer.android.com/sdk/installing/studio-androidview.html)
2. Expand `External Libraries` entry (usually this is the last entry in project view)
3. Locate `blinkid-5.16.0` entry, right click on it and select `Library Properties...`
3. Locate `blinkid-5.16.1` entry, right click on it and select `Library Properties...`
4. A `Library Properties` pop-up window will appear
5. Click the second `+` button in bottom left corner of the window (the one that contains `+` with little globe)
6. Window for defining documentation URL will appear
Expand Down
7 changes: 6 additions & 1 deletion Release notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Release notes

## 5.16.0.
## 5.16.1

### Fixes
- Bugfix for extracting data from the USA Minnesota DL barcode

## 5.16.0

### We've added new documents to our list of supported documents:

Expand Down
2 changes: 1 addition & 1 deletion builtFromCommit.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Built from commit 06e0580ce124605d0c68af8f18fa193cd731732c
Built from commit 3ecd369ce63262faa093893cc88fd9efa12e5d43
Binary file modified docs/member-search-index.zip
Binary file not shown.
Binary file modified docs/package-search-index.zip
Binary file not shown.
Binary file modified docs/type-search-index.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.microblink</groupId>
<artifactId>blinkid</artifactId>
<version>5.16.0</version>
<version>5.16.1</version>
<packaging>aar</packaging>
<name>BlinkID SDK for Android</name>
<description>SDK that enables scanning of ID documents and passports in your Android application</description>
Expand Down

0 comments on commit 474665a

Please sign in to comment.