Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

129 - demo app redesign #182

Merged
merged 47 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
039d119
feat: Refresh and improve the design of the demo-app, scanner and cam…
VincentKobz Apr 24, 2024
238ce13
feat: Redirect to enioka_scan GitHub on github button listener
VincentKobz May 3, 2024
e124784
fix: Show top tool app bar menu on demo-app
VincentKobz May 3, 2024
b8d71d9
feat: Add logging settings, merge ScannerTesterActivity into the Main…
VincentKobz May 6, 2024
3d018c7
fix: Improve global design of the demoapp
VincentKobz May 6, 2024
70d5ffa
feat: Add open link button when a QRCode URL is read
VincentKobz May 6, 2024
8330d8b
feat: Add multiple build type for release and debug on the demo-app
VincentKobz May 6, 2024
01a9d80
fix: Change demo-app title name
VincentKobz May 13, 2024
f2ddc0d
fix: Change demo-app welcome activity barcode SVG
VincentKobz May 13, 2024
bbd5473
fix: Update demo-app dynamic settings to match the new material desig…
VincentKobz May 15, 2024
ddf9eb4
fix: Remove unused class in demo-app manifest
VincentKobz May 15, 2024
0807eb4
fix: Remove vectorDrawable from WelcomeActivity in demo-app
VincentKobz May 15, 2024
c257bf0
fix: Enable support of multidex because of the limit of 64K methods f…
VincentKobz May 15, 2024
8b003a3
feat: Upgrade material to 1.12.0
VincentKobz May 16, 2024
39fc2d0
fix: GitHub CI, uninstall package before running integration tests
VincentKobz May 16, 2024
79ccc88
fix: Remove back button from settings (VX-N1)
VincentKobz May 17, 2024
1bae996
feat: Add support of portrait and landscape screen orientation on eni…
VincentKobz May 21, 2024
60f8b95
fix: Change touching target to be 48dp (VX-A1)
VincentKobz May 21, 2024
1ff88f8
fix: add contentDescription on all UI element (VX-A3)
VincentKobz May 21, 2024
a1eb0bc
fix: Provide debug and release build type in demo-app (PS-T6)
VincentKobz May 21, 2024
a5b0c51
fix: Clickable hyperlink when scan result is an URL
VincentKobz May 21, 2024
5344c10
feat: Add copy result to clipboard
VincentKobz May 21, 2024
6ea99e6
fix: Disable switch to camera button when camera SDK is not available
VincentKobz May 21, 2024
44ec024
fixup! feat: Add support of portrait and landscape screen orientation…
VincentKobz May 22, 2024
e2459c7
feat: Add report bug button on demo-app
VincentKobz May 22, 2024
f73993e
fix: Enable all keys features by defaults in the demo-app, to be plug…
VincentKobz May 22, 2024
4f358a2
fix: Remove logs from demo-app
VincentKobz May 22, 2024
3baf6e0
feat: Add settings in demo-app to allow camera fallback when no scann…
VincentKobz May 23, 2024
ea5c85a
fix: CI
VincentKobz May 23, 2024
742f3ef
feat: Replace manual input button by dialog that show available provi…
VincentKobz May 23, 2024
af7d1d3
refactor: Create viewSwitcher class to manage screen orientation chan…
VincentKobz May 24, 2024
61894f7
fix: Switch settings width, replace android:src to app:srcCompat for …
VincentKobz May 24, 2024
8b4309f
fix: Rename camera activity layout
VincentKobz May 24, 2024
78a147e
fix: Documentation
VincentKobz May 24, 2024
6dc6a9a
feat: Dynamically resize scan text result to fit inside the card on t…
VincentKobz May 27, 2024
54d3ad7
fix: Change demo-app name
VincentKobz May 28, 2024
578f54c
fix: Change prefix of logging file in the demo-app
VincentKobz May 28, 2024
dfb7627
fix: Fix save button position in the demo-app settings
VincentKobz May 28, 2024
9b9459f
fix: Back button when exiting camera view, should be able to return t…
VincentKobz May 29, 2024
c3afdaa
fix: Camera view background switch text and add snack message when ch…
VincentKobz May 29, 2024
9592c26
feat: Add options to switch between camera preview aspect ratio mode …
VincentKobz May 29, 2024
6202560
fix: Strings ressources
VincentKobz May 31, 2024
e271543
fix: Scanner logs filename and format
VincentKobz May 31, 2024
5ec160b
fix: Reset target positon when changing view orientation
VincentKobz May 31, 2024
6d1f7be
fix: Wrong preview camera orientation on Zebra TC25 when changing ori…
VincentKobz May 31, 2024
d4f9e30
fix: Camera wrong orientation on TC-25
VincentKobz Jun 3, 2024
31a24a9
fix: Remove unused step in test GitHub action
VincentKobz Jun 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [19, 28]
api-level: [21, 29]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Set up environment
uses: actions/setup-java@v4
with:
Expand All @@ -26,7 +31,7 @@ jobs:
id: avd-cache
with:
path: |
~.android/avd/*
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: Create AVD and generate snapshot for caching
Expand All @@ -47,4 +52,4 @@ jobs:
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
script: ./gradlew connectedCheck
script: adb uninstall com.enioka.scanner.sdk.mock.test; adb uninstall com.enioka.scanner.service; ./gradlew connectedCheck --stacktrace
12 changes: 10 additions & 2 deletions demoscannerapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,21 @@ android {
targetSdkVersion 28
versionCode 1
versionName "1.0"

vectorDrawables.useSupportLibrary = true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable false
applicationIdSuffix ".release"
}
debug {
debuggable true
applicationIdSuffix ".debug"
}
}
lint {
Expand Down Expand Up @@ -63,6 +70,7 @@ dependencies {
//noinspection GradleCompatible
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'com.google.android.material:material:1.12.0'

// Useless test stuff
testImplementation 'junit:junit:4.12'
Expand Down
12 changes: 7 additions & 5 deletions demoscannerapp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand All @@ -9,16 +11,16 @@
android:supportsRtl="true"
android:hardwareAccelerated="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity" />
<activity android:name=".ScannerTesterActivity" />
<activity android:name=".MainActivity"
android:configChanges="orientation|screenSize" />
<activity android:name=".SettingsActivity" />
<activity android:name=".WelcomeActivity">
<activity android:name=".WelcomeActivity"
android:exported="true"
android:configChanges="orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
</manifest>

This file was deleted.

Loading