-
Notifications
You must be signed in to change notification settings - Fork 21
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 #128 from newlogic/feature/zxing-integration
Add truncated PDF417 support
- Loading branch information
Showing
14 changed files
with
440 additions
and
136 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,21 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="48dp" | ||
android:height="48dp" | ||
android:viewportWidth="48" | ||
android:viewportHeight="48"> | ||
<path | ||
android:fillColor="#646464" | ||
android:pathData="M41.3934,22.0812h0l-0.001,0 -0.0066,-0.0029 -13.4191,-5.751C27.976,16.2172 28,16.1119 28,16a3.9954,3.9954 0,0 0,-3 -3.858L25,8L35,8a1,1 0,0 0,0 -2L13,6a1,1 0,0 0,0 2L23,8v4.142A3.9954,3.9954 0,0 0,20 16c0,0.1119 0.024,0.2172 0.0331,0.3268L6.614,22.0778l-0.0066,0.0029 -0.001,0h0A0.9989,0.9989 0,0 0,6 23L6,41a1,1 0,0 0,1 1L41,42a1,1 0,0 0,1 -1L42,23A0.9989,0.9989 0,0 0,41.3934 22.0812ZM24,14a2,2 0,1 1,-2 2A2.0027,2.0027 0,0 1,24 14ZM24,20a3.9979,3.9979 0,0 0,3.3214 -1.7747L36.1289,22L11.8711,22l8.8075,-3.7747A3.9979,3.9979 0,0 0,24 20ZM40,40L8,40L8,24L40,24Z" /> | ||
<path | ||
android:fillColor="#646464" | ||
android:pathData="M15,36a1,1 0,0 0,1 -1V29a1,1 0,0 0,-2 0v6A1,1 0,0 0,15 36Z" /> | ||
<path | ||
android:fillColor="#646464" | ||
android:pathData="M21,36a1,1 0,0 0,1 -1V29a1,1 0,0 0,-2 0v6A1,1 0,0 0,21 36Z" /> | ||
<path | ||
android:fillColor="#646464" | ||
android:pathData="M27,36a1,1 0,0 0,1 -1V29a1,1 0,0 0,-2 0v6A1,1 0,0 0,27 36Z" /> | ||
<path | ||
android:fillColor="#646464" | ||
android:pathData="M33,36a1,1 0,0 0,1 -1V29a1,1 0,0 0,-2 0v6A1,1 0,0 0,33 36Z" /> | ||
</vector> |
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,46 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/item" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?attr/selectableItemBackground" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:orientation="vertical" | ||
android:paddingTop="16dp"> | ||
|
||
<androidx.appcompat.widget.AppCompatImageView | ||
android:id="@+id/icon" | ||
android:layout_width="36dp" | ||
android:layout_height="36dp" | ||
android:layout_marginStart="16dp" | ||
android:src="@drawable/ic_scan_pdf417" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/txt_pdf417" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="16dp" | ||
android:layout_marginTop="8dp" | ||
android:fontFamily="@font/sourcesanspro_medium" | ||
android:text="@string/mode_pdf417" | ||
android:textColor="@color/newlogic_black" | ||
android:textSize="16sp" | ||
app:layout_constraintStart_toEndOf="@+id/icon" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<View | ||
android:id="@+id/separator" | ||
android:layout_width="match_parent" | ||
android:layout_height="1dp" | ||
android:layout_marginTop="16dp" | ||
android:background="@color/transparent_dark_grey" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/txt_pdf417" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> |
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
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
16 changes: 3 additions & 13 deletions
16
core-lib/src/androidTest/java/org/idpass/smartscanner/lib/ExampleInstrumentedTest.kt
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 |
---|---|---|
@@ -1,22 +1,12 @@ | ||
package org.idpass.smartscanner.lib | ||
|
||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import androidx.test.platform.app.InstrumentationRegistry | ||
import org.junit.Assert.assertEquals | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
import org.junit.runners.JUnit4 | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* See [testing documentation](http://d.android.com/tools/testing). | ||
*/ | ||
@RunWith(AndroidJUnit4::class) | ||
class ExampleInstrumentedTest { | ||
@Test | ||
fun useAppContext() { | ||
// Context of the app under test. | ||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
assertEquals("org.idpass.smartscanner.test", appContext.packageName) | ||
} | ||
} | ||
@RunWith(JUnit4::class) | ||
class ExampleInstrumentedTest |
Oops, something went wrong.