Repository navigation
Commit 5408086
Update the Shapes app build for approov-service-httpsurlconn 3.5.4
Service layer 3.5.4 needs minSdk 23 and core library desugaring. The
Shapes app used minSdk 21 and Android Gradle plugin 7.1.1, so the guide
dependency failed in the manifest merge, and D8 crashed on the 3.5.4 jar.
- Upgrade Android Gradle plugin 7.1.1 -> 8.9.0 and Gradle 7.2 -> 8.11.1.
- Add namespace and remove the manifest package attribute.
- Raise minSdk 21 -> 23, compileSdk 31 -> 35 and targetSdk 31 -> 34.
targetSdk 34 passes the lint check for release builds and keeps the
layout unchanged, because targetSdk 35 enforces edge-to-edge.
- Enable core library desugaring with desugar_jdk_libs 2.1.4.
- Add R8 -dontwarn rules for the optional Google Play services and Play
Integrity classes that the Approov SDK refers to.
- Document minSdk 23, desugaring, the R8 rules and the Android Studio
and JDK requirements in README.md and SHAPES-EXAMPLE.md.
Tested: debug and release builds pass, with and without the guide
dependency. On an Android 17 emulator, the app initialized SDK 3.5.3 and
fetched a token for the v3 endpoint.
Refs approov/core-project-approov#644
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 8ebe28b commit 5408086
7 files changed
Lines changed: 46 additions & 9 deletions
File tree
- shapes-app
- app
- src/main
- gradle/wrapper
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
17 | 43 | | |
18 | 44 | | |
19 | 45 | | |
| |||
26 | 52 | | |
27 | 53 | | |
28 | 54 | | |
29 | | - | |
| 55 | + | |
30 | 56 | | |
31 | 57 | | |
32 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | | - | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
0 commit comments