Commit Graph

4064 Commits

Author SHA1 Message Date
tenzap
d1ccd16987 Various fixes to the build scripts (*.bat & *.sh)
build.readme.md: mention how to build the native libs when on windows

Fix target name: rename target to keepass2android-app

*.BAT build-scripts: make script fail when a command fails
  If a command was failing, the script continued to run and didn't fail.
  The build errors could be hidden. This will make them apparent

build-java.bat:
- prefix call to gradlew.bat with 'call'
  Otherwise, the batch file stops at the first gradlew call.
- don't build PluginQR as its output is not used, and the build fails with
  newer Android SDK/NDK

build-xamarin.bat:
- use VS2019 path, download NuGet dependencies
- Call vcvarsall.bat only if not yet done
- build also APK
- Tested with VS Community 2019
- When calling it multiple times, the PATH env var contains duplicate values
  and in the end will be too long, leading to vcvarsall.bat failing,
  and hence build-xamarin.bat too

build-java.sh:
- don't unset ANDROID_NDK_HOME & ANDROID_NDK
  Fixes build issues on github actions
- add missing KP2AKdbLibrary
- add executable bit to src/java/KP2AKdbLibrary/gradlew
- support build with msbuild & force use of xabuild when on linux
- don't build PluginQR as its output is not used, and the build fails with
  newer Android SDK/NDK

build-xamarin.sh:
- put the config (Debug or Release) in a variable

build-apk.sh:
- fix project name to keepass2android-app.csproj
- support build with msbuild & force use of xabuild when on linux
  Needed for github actions, and will also support building on macos with msbuild
- put the config (Debug or Release) in a variable
- Add missing /p:Configuration= /p:Platform=AnyCPU which is needed when building
  nonet on macos (because nonet uses "Release")

remove PluginQR
2022-12-07 04:11:24 +01:00
tenzap
78a7c79376 [Build Fix] KP2AKdbLibrary; upgrade AGP to 4.0.1 & gradle version to 6.1.1
Fixes:
> No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

See https://stackoverflow.com/a/69293151
2022-12-06 23:36:02 +01:00
tenzap
41c66ecb28 [Build Fix] KP2ASoftkeyboard_AS/build.gradle: upgrade AGP to 4.0.1 & gradle to 6.1.1
Fixes:
> No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

See https://stackoverflow.com/a/69293151
2022-12-06 23:35:58 +01:00
tenzap
b2f21094b5 remove untracked Kp2aBusinessLogic/Resources/Resource.Designer.cs
Since it is in gitignore
2022-12-06 23:00:52 +01:00
tenzap
32666a0d86 Add function to support 'SamsungPass v1.2.6'
This commit has to be merged with the commit in SamsungPass submodule that
updates SamsungPass to v1.2.6.

Commit message below:

With 1.1.3 build fails as soon as we use Xamarin.Android >= 12.1 (on all
platforms) [1].

Actually, this is due the version of r8.jar shipped by Xamarin which now fails.
Failure is actually normal [2], as expected, while in the past it didn't fail
(problem not catched in older versions).

So the bug is actually in SamsungPass.

This PR has to be taken with caution:
- it was just to check that it would build with a newer version of SamsungPass
- The new functions that are in the jar haven't been ported except those
  mandatory to build
- Content is unsure and part of the code is marked as TODO
- jar was taken from a location whose trustability was not checked [3]

API for 1.2.6 can be found at [4]

[1] https://github.com/xamarin/xamarin-android/issues/7607
[2] https://issuetracker.google.com/issues/192128533
[3] https://github.com/antonjlin/Shack/blob/master/app/libs/pass-v1.2.6.jar
[4] https://web.archive.org/web/20181004165435/http://img-developer.samsung.com/onlinedocs/sms/pass/index.html

Error was:
```
Error in obj/Debug/lp/12/jl/__reference__pass-v1.1.3.jar:com/samsung/android/sdk/pass/SpassFingerprint.class:

java.lang.ArrayIndexOutOfBoundsException: Index 4 out of bounds for length 4

"/tmp/keepass2android/src/KeePass.sln" (keepass2android-app target) (1) ->
"/tmp/keepass2android/src/keepass2android/keepass2android-app.csproj" (default target) (2) ->
(_CompileToDalvik target) ->
  /tmp/keepass2android/l/xamarin.android-oss/bin/Release/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.D8.targets(79,5): error : java.lang.ArrayIndexOutOfBoundsException :  Index 4 out of bounds for length 4 [/tmp/keepass2android/src/keepass2android/keepass2android-app.csproj]
```
2022-12-05 23:25:32 +01:00
PhilippC
61afc4ed58 New translations strings.xml (Japanese) 2022-12-05 12:25:13 +01:00
PhilippC
9904946ce2 New translations strings.xml (Japanese) 2022-12-05 01:18:16 +01:00
PhilippC
78f76054ad New translations strings.xml (Japanese) 2022-12-05 00:18:52 +01:00
PhilippC
6e71b3fb66 New translations strings.xml (Japanese) 2022-12-04 15:59:42 +01:00
PhilippC
37a8b51a5f New translations strings.xml (Japanese) 2022-12-04 13:23:24 +01:00
PhilippC
02a43799a7 New translations strings.xml (Japanese) 2022-11-22 15:12:32 +01:00
PhilippC
a5994ebe63 New translations strings.xml (Japanese) 2022-11-22 12:22:20 +01:00
PhilippC
7319652db7 New translations strings.xml (Japanese) 2022-11-21 00:29:02 +01:00
PhilippC
35f91fd842 New translations strings.xml (Japanese) 2022-11-19 11:29:21 +01:00
PhilippC
801fd86db5 New translations strings.xml (Japanese) 2022-11-19 10:02:01 +01:00
PhilippC
afb376a3bc New translations strings.xml (Japanese) 2022-11-19 09:05:36 +01:00
PhilippC
3baaef19d4 New translations strings.xml (Japanese) 2022-11-19 06:55:16 +01:00
PhilippC
2e0e0c1d86 New translations strings.xml (Japanese) 2022-11-19 05:51:29 +01:00
PhilippC
c091c5aeda New translations strings.xml (Japanese) 2022-11-19 05:51:28 +01:00
PhilippC
74dd3b67e2 New translations strings.xml (Japanese) 2022-11-19 04:46:05 +01:00
PhilippC
2b3d090fd6 New translations strings.xml (Japanese) 2022-11-18 15:25:48 +01:00
PhilippC
d875f3fb2f New translations strings.xml (Japanese) 2022-11-18 14:27:22 +01:00
PhilippC
92f90eddc7 New translations strings.xml (Japanese) 2022-11-18 10:17:37 +01:00
PhilippC
3feae3b211 New translations strings.xml (Japanese) 2022-11-18 07:12:21 +01:00
PhilippC
03855a604a New translations strings.xml (Japanese) 2022-11-12 05:21:24 +01:00
PhilippC
b88000a5b4 New translations strings.xml (Japanese) 2022-11-12 03:15:17 +01:00
PhilippC
136ba783c8 New translations strings.xml (Japanese) 2022-11-10 17:46:25 +01:00
PhilippC
df6fb03245 New translations strings.xml (Japanese) 2022-11-10 14:50:51 +01:00
PhilippC
9509f5ae52 New translations strings.xml (Japanese) 2022-11-10 13:51:10 +01:00
PhilippC
c69177be6f New translations strings.xml (Hungarian) 2022-09-28 23:09:13 +02:00
PhilippC
daaa7d4016 New translations strings.xml (Hungarian) 2022-09-28 19:55:36 +02:00
PhilippC
d6914456dc New translations strings.xml (German) 2022-09-10 10:43:51 +02:00
PhilippC
4c3efb6b52 New translations strings.xml (German) 2022-09-10 09:21:39 +02:00
PhilippC
f6193103e2 New translations strings.xml (Korean) 2022-08-22 05:34:50 +02:00
PhilippC
68a78c32e3 New translations strings.xml (Korean) 2022-08-22 03:54:30 +02:00
PhilippC
241ea648ee New translations strings.xml (Persian) 2022-08-18 01:43:33 +02:00
PhilippC
a7a4e45c8b New translations strings.xml (Persian) 2022-08-18 01:43:32 +02:00
PhilippC
0b17c5dcda New translations strings.xml (Persian) 2022-08-18 00:42:44 +02:00
PhilippC
60b79a9b8a New translations strings.xml (Persian) 2022-08-17 18:28:30 +02:00
PhilippC
9dfd8bbadf New translations strings.xml (Persian) 2022-08-17 17:13:32 +02:00
PhilippC
7bfd80a122 New translations strings.xml (Catalan) 2022-08-14 19:01:21 +02:00
PhilippC
8b6c6707c7 New translations strings.xml (Persian) 2022-08-14 16:41:11 +02:00
PhilippC
d1ee19243f New translations strings.xml (Persian) 2022-08-14 16:41:10 +02:00
PhilippC
3aca98d1e2 New translations strings.xml (Persian) 2022-08-14 15:37:17 +02:00
PhilippC
b76c6063b0 New translations strings.xml (Persian) 2022-08-14 12:29:55 +02:00
PhilippC
584b4321ca New translations strings.xml (Persian) 2022-08-14 12:29:54 +02:00
PhilippC
b499d12768 New translations strings.xml (Persian) 2022-08-14 11:31:23 +02:00
PhilippC
246f6f8132 New translations strings.xml (Persian) 2022-08-13 02:31:02 +02:00
PhilippC
e07a350159 New translations strings.xml (Persian) 2022-08-13 01:02:26 +02:00
PhilippC
ac05f5c93c New translations strings.xml (Persian) 2022-08-12 23:57:12 +02:00