Skip to content

Commit 294fe9f

Browse files
committed
Merge branch 'master' into feature/GestureManager
2 parents c3067d7 + b80c8a5 commit 294fe9f

File tree

145 files changed

+3417
-391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+3417
-391
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Set up JDK 1.8
15+
- name: Set up JDK 12
1616
uses: actions/setup-java@v1
1717
with:
18-
java-version: 1.8
19-
- name: Grant execute permission for gradlew
20-
run: chmod +x gradlew
18+
java-version: 12
2119
- name: Build
2220
run: ./gradlew build

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Set up JDK 1.8
13+
- name: Set up JDK 12
1414
uses: actions/setup-java@v1
1515
with:
16-
java-version: 1.8
17-
- name: Grant execute permission for gradlew
18-
run: chmod +x gradlew
16+
java-version: 12
1917
- name: Build
2018
run: ./gradlew build
2119
- name: Publish to Maven Repository

CHANGELOG.md

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,103 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.39.7]
5+
6+
### Fixed
7+
- Reversed camera torch drawable
8+
9+
## [0.39.6]
10+
11+
### Added
12+
- Added support for "manualDiscountFinalCode"
13+
14+
## [0.39.5]
15+
16+
### Fixed
17+
- QR codes being cutoff when maxSizeMM is higher than available view space
18+
- Payment methods being shown to project that are not part of the project
19+
20+
### Updated
21+
- Updated Datatrans SDK to v1.4.1
22+
23+
## [0.39.4]
24+
25+
### Added
26+
- Add configuration flag `isUsingShoppingList` to avoid creating a FTS when not required
27+
28+
## [0.39.3]
29+
30+
### Fixed
31+
- Fixed checkouts not aborting when age verification check is not passing
32+
33+
## [0.39.2]
34+
35+
### Fixed
36+
- Added package query for Android 11+
37+
38+
## [0.39.1]
39+
40+
### Added
41+
- Jump to play store if google pay is not installed
42+
43+
## [0.39.0]
44+
45+
### Added
46+
- Added support for Google Pay
47+
48+
### Fixed
49+
- Fixed exceptions when using coupons that affect the whole cart
50+
51+
## [0.38.1]
52+
53+
### Updated
54+
- Updated Datatrans SDK to v1.4.0
55+
56+
### Fixed
57+
- Product searches of sku's are now also working on pressing the imeActionDone.
58+
59+
## [0.38.0]
60+
61+
### Added
62+
- Added stackable scan messages with a new Style
63+
64+
### Deprecated
65+
- Deprecated UIUtils.showTopDownInfoBox
66+
67+
## [0.37.12]
68+
69+
### Added
70+
- Added indicator if an manual discount was applied or not
71+
72+
### Fixed
73+
- Fixed pull to refresh in ShoppingCartView
74+
- Fixed selecting manual discounts resetting amount, even when no item is already in cart
75+
- Products with manual discounts are now editable
76+
77+
## [0.37.11]
78+
79+
### Fixed
80+
- Fixed crash when no TWINT or PostFinance payment method could be added
81+
82+
## [0.37.10]
83+
84+
### Changed
85+
- Changed default Datatrans environment to Production
86+
87+
### Fixed
88+
- Fixed listing of TWINT and PostFinace Card payment methods when no credit card payment
89+
methods are available
90+
91+
## [0.37.9]
92+
93+
### Changed
94+
- Made credit card 3d secure hint locale aware
95+
96+
## [0.37.8]
97+
98+
### Fixed
99+
- Only update cart when it actually changed
100+
4101
## [0.37.7]
5102

6103
### Added

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = "1.5.10"
2+
ext.kotlin_version = "1.5.20"
33

44
repositories {
55
google()
@@ -12,7 +12,7 @@ buildscript {
1212

1313
dependencies {
1414
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15-
classpath 'com.android.tools.build:gradle:4.2.1'
15+
classpath 'com.android.tools.build:gradle:4.2.2'
1616
classpath 'gradle.plugin.com.github.jlouns:gradle-cross-platform-exec-plugin:0.5.0'
1717
classpath "gradle.plugin.gmazzo:sqlite-plugin:0.2"
1818
}
@@ -31,7 +31,7 @@ allprojects {
3131
}
3232

3333
project.ext {
34-
sdkVersion='0.37.7'
34+
sdkVersion='0.39.7'
3535
versionCode=1
3636

3737
compileSdkVersion=30

core/build.gradle

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,33 @@ android {
4040
freeCompilerArgs = ["-Xjvm-default=all"]
4141
jvmTarget = "1.8"
4242
}
43+
44+
testOptions {
45+
unitTests {
46+
includeAndroidResources = true
47+
}
48+
}
4349
}
4450

4551
dependencies {
4652
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${project.desugarVersion}"
4753

4854
implementation project(':utils')
4955

50-
implementation 'androidx.appcompat:appcompat:1.2.0'
56+
implementation 'androidx.appcompat:appcompat:1.3.0'
5157
implementation 'commons-io:commons-io:2.5'
5258
implementation 'org.apache.commons:commons-lang3:3.8.1'
5359
implementation 'org.iban4j:iban4j:3.2.1'
5460
implementation "com.squareup.okhttp3:logging-interceptor:${project.okhttpVersion}"
5561
implementation 'com.caverock:androidsvg-aar:1.4'
56-
implementation("androidx.datastore:datastore-preferences:1.0.0-beta01")
62+
implementation 'com.google.android.gms:play-services-wallet:18.1.3'
5763

5864
api "com.squareup.okhttp3:okhttp:${project.okhttpVersion}"
5965
api 'com.google.code.gson:gson:2.8.6'
6066

61-
testImplementation 'junit:junit:4.13'
67+
testImplementation 'junit:junit:4.13.2'
68+
testImplementation 'org.robolectric:robolectric:4.5.1'
69+
testImplementation "com.squareup.okhttp3:mockwebserver:${project.okhttpVersion}"
6270

6371
androidTestImplementation 'androidx.test:rules:1.3.0'
6472
androidTestImplementation 'androidx.test:runner:1.3.0'

core/src/main/AndroidManifest.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="io.snabble.sdk">
44
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
5+
6+
<application>
7+
<activity android:name=".googlepay.GooglePayHelperActivity"
8+
android:theme="@style/Snabble.Theme.GooglePayOverlay"/>
9+
</application>
10+
11+
<queries>
12+
<package android:name="com.google.android.apps.walletnfcrel" />
13+
</queries>
514
</manifest>

0 commit comments

Comments
 (0)