Skip to content

Commit

Permalink
Merge branch 'release/1.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
G00fY2 committed May 24, 2022
2 parents 6472318 + e541e4b commit 80be5be
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 66 deletions.
10 changes: 8 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
root=true

[*.{kt,kts}]
[*]
charset=utf-8
end_of_line=lf
insert_final_newline=false
Expand All @@ -10,6 +10,12 @@ max_line_length=120
indent_size=2
indent_style=space

[*.{kt,kts}]
ij_kotlin_name_count_to_use_star_import=2147483647
ij_kotlin_name_count_to_use_star_import_for_members=2147483647
ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,^
ij_kotlin_imports_layout=*,java.**,javax.**,kotlin.**,^

[*.xml]
ij_continuation_indent_size = 4
ij_xml_keep_line_breaks = true
ij_xml_space_inside_empty_tag = false
26 changes: 21 additions & 5 deletions .github/workflows/android.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Android CI
name: Build

on:
push:
Expand All @@ -13,36 +13,52 @@ on:
jobs:
detekt:
name: Run detekt
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Run detekt with ktlint
run: ./gradlew detektBundledDebug detektUnbundledDebug

unit_tests:
name: Run unit tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Run bundled and unbundled unit tests
run: ./gradlew test

build_bundled:
name: Build bundled debug
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Build debug bundled sample app
run: ./gradlew :sample:assembleBundledDebug

build_unbundled:
name: Build unbundled debug
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '17'
- name: Build debug unbundled sample app
run: ./gradlew :sample:assembleUnbundledDebug
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ There are two different flavors available on `mavenCentral()`:
| V3 model is used (faster, more accurate) | currently V1 model will be downloaded
```kotlin
// bundled:
implementation("io.github.g00fy2.quickie:quickie-bundled:1.4.1")
implementation("io.github.g00fy2.quickie:quickie-bundled:1.4.2")

// unbundled:
implementation("io.github.g00fy2.quickie:quickie-unbundled:1.4.1")
implementation("io.github.g00fy2.quickie:quickie-unbundled:1.4.2")
```

## Quick Start
Expand Down
18 changes: 9 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[versions]
quickie = "1.4.1"
quickie = "1.4.2"

androidconfig-minSdk = "21"
androidconfig-compileSdk = "31"
androidconfig-targetSdk = "31"
androidconfig-buildTools = "31.0.0"
androidconfig-compileSdk = "32"
androidconfig-targetSdk = "32"
androidconfig-buildTools = "32.0.0"

androidGradle = "7.1.2"
kotlin = "1.6.20"
androidGradle = "7.2.0"
kotlin = "1.6.21"

appcompat = "1.4.1"

Expand All @@ -17,11 +17,11 @@ cameraView = "1.0.0-alpha32"
barcodeScanning = "17.0.2"
barcodeScanningGms = "18.0.0"

materialDesign = "1.5.0"
materialDesign = "1.6.0"

detekt = "1.19.0"
detekt = "1.20.0"
gradleVersions = "0.42.0"
dokka = "1.6.10"
dokka = "1.6.21"

junit = "5.8.2"

Expand Down
4 changes: 3 additions & 1 deletion quickie/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.github.g00fy2.quickie">

<uses-feature android:name="android.hardware.camera"/>
<uses-feature
android:name="android.hardware.camera"
android:required="false"/>

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ internal class QRScannerActivity : AppCompatActivity() {
.setTargetResolution(Size(1280, 720))
.build()
.also {
it.setAnalyzer(analysisExecutor,
it.setAnalyzer(
analysisExecutor,
QRCodeAnalyzer(
barcodeFormats = barcodeFormats,
onSuccess = { barcode ->
Expand Down
2 changes: 1 addition & 1 deletion sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.QRScannerSample">
android:theme="@style/Theme.Material3.DayNight">

<activity
android:name=".MainActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ class QuickieTileService : TileService() {

override fun onClick() {
super.onClick()
startActivityAndCollapse(Intent(this, MainActivity::class.java).apply {
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
putExtra(MainActivity.OPEN_SCANNER, true)
})
startActivityAndCollapse(
Intent(this, MainActivity::class.java).apply {
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK)
putExtra(MainActivity.OPEN_SCANNER, true)
}
)
}
}
17 changes: 0 additions & 17 deletions sample/src/main/res/values-night/themes.xml

This file was deleted.

7 changes: 0 additions & 7 deletions sample/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="ic_launcher_background">#3DDC84</color>
</resources>
17 changes: 0 additions & 17 deletions sample/src/main/res/values/themes.xml

This file was deleted.

0 comments on commit 80be5be

Please sign in to comment.