Commit Graph

610 Commits

Author SHA1 Message Date
Sebastian Ratz
e3ce7fe95a Migrate from com.jcraft:jsch 0.1.55 to com.github.mwiede:jsch 0.2.5
com.jcraft:jsch is not actively maintained anymore and lacks support
for modern public key algorithms such as rsa-sha2-256. It only
supports ssh-rsa which is disabled in up-to-date environments.

com.github.mwiede:jsch was created as a drop-in replacement which
works in modern environments [1].

Sources are taken from maven central [2]. The following files were
omitted, because they depend on additional 3rd-party libraries which
we do not have / do not need:

    com/jcraft/jsch/JUnixSocketFactory.java
    com/jcraft/jsch/Log4j2Logger.java
    com/jcraft/jsch/PageantConnector.java
    com/jcraft/jsch/Slf4jLogger.java
    com/jcraft/jsch/SSHAgentConnector.java
    com/jcraft/jsch/bc/*
    com/jcraft/jsch/jgss/GSSContextKrb5.java

Fixes #1812.

[1] https://github.com/mwiede/jsch
[2] https://repo1.maven.org/maven2/com/github/mwiede/jsch/0.2.5/jsch-0.2.5-sources.jar
2023-01-03 15:26:42 +01:00
tenzap
39c1f671d4 remove untracked files as per .gitignore
Somes files that are in .gitignore are still in the repository
This will remove them.

Commands used to do this:

git rm --cached -r . &&
git add . &&
git restore --staged .gitmodul

The jars in src/java/JavaFileStorage/libs are no more used since commit
a63663c30e

If this removes too many files, it means that .gitignore has to be fixed.
To find which rule removes which file run:

git check-ignore -v <file>

Especially, removing .idea/ completely might not be correct depending on ones
objective.
2022-12-19 22:54:50 +01:00
PhilippC
6cd71b2bf5 Merge pull request #1904 from PhilippC/l10n_master2
New Crowdin updates
2022-12-19 08:40:03 +01:00
PhilippC
62f7592e1d New translations strings.xml (Dutch) 2022-12-18 22:13:41 +01:00
PhilippC
2f105d30fd New translations strings.xml (Japanese) 2022-12-12 16:37:03 +01:00
PhilippC
37befe2c46 New translations strings.xml (Finnish) 2022-12-07 14:32:24 +01:00
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
PhilippC
2e0e0c1d86 New translations strings.xml (Japanese) 2022-11-19 05:51:29 +01:00
PhilippC
241ea648ee New translations strings.xml (Persian) 2022-08-18 01:43:33 +02:00
PhilippC
8b6c6707c7 New translations strings.xml (Persian) 2022-08-14 16:41:11 +02:00
PhilippC
b76c6063b0 New translations strings.xml (Persian) 2022-08-14 12:29:55 +02:00
PhilippC
6b115616b7 New translations strings.xml (Italian) 2022-08-12 12:39:16 +02:00
PhilippC
611efe05ca New translations strings.xml (Ukrainian) 2022-07-29 13:47:19 +02:00
PhilippC
9e3d30e81e New translations strings.xml (Ukrainian) 2022-07-29 13:47:17 +02:00
PhilippC
b5711591d5 New translations strings.xml (Turkish) 2022-06-06 05:24:50 +02:00
PhilippC
9ec3374240 New translations strings.xml (Russian) 2022-04-14 20:22:37 +02:00
Philipp Crocoll
35f74f5ea4 add support for Google Drive with restricted scope, closes #622 2022-02-02 03:50:51 +01:00
PhilippC
f1de28e6c1 New translations strings.xml (Italian) 2022-01-14 19:04:49 +01:00
PhilippC
14c7663167 Merge pull request #1851 from PhilippC/l10n_master2
New Crowdin updates
2022-01-12 16:58:01 +01:00
PhilippC
44183178c6 New translations strings.xml (Spanish) 2022-01-12 08:37:04 +01:00
PhilippC
00c0bbd942 New translations strings.xml (Romanian) 2022-01-12 08:36:58 +01:00
Philipp Crocoll
309fd9f4d1 GoogleDriveFileStorage: update libraries and reimplement authentication workflow to show consent screen (verification by Google now passed); migrate Java filestorage and filechooser projects to AndroidX; disable "app is blocked" message; see #1833 2022-01-12 08:07:28 +01:00
PhilippC
1f9b5df44b New translations strings.xml (Croatian) 2021-12-28 17:34:46 +01:00
PhilippC
1a23b8363a New translations strings.xml (Croatian) 2021-12-28 17:34:44 +01:00
Philipp Crocoll
2a3138ca76 increase key size for Sftp publickey to 4096 to close #1874. (Note: ED25519 is not supported by standard JSch at the moment) 2021-12-20 09:14:39 +01:00
PhilippC
56a0c6325d New translations strings.xml (Spanish) 2021-12-17 13:25:21 +01:00
PhilippC
ca4a29a991 New translations strings.xml (Romanian) 2021-12-13 14:13:56 +01:00
Philipp Crocoll
07d3a4ef84 Merge branch 'master' of https://github.com/PhilippC/keepass2android 2021-11-29 10:40:39 +01:00
Philipp Crocoll
eb50ed1bc3 throw exception in Google Drive implementation as access is blocked by Google currently. 2021-11-29 10:40:27 +01:00
PhilippC
88f95b96b0 Merge pull request #1687 from PhilippC/l10n_master2
New Crowdin updates
2021-11-22 09:55:46 +01:00
Philipp Crocoll
45df2d6605 preserve filename case in Dropbox when uploading files, closes https://github.com/PhilippC/keepass2android/issues/898 2021-11-15 09:32:02 +01:00
Philipp Crocoll
9d2d920fda introduce <queries> in manifest to work with Android 11+ limited package visibility 2021-11-12 10:57:04 +01:00
PhilippC
1b5f25f10b New translations strings.xml (Polish) 2021-09-15 20:35:10 +02:00
PhilippC
4cf67734a1 New translations strings.xml (Polish) 2021-09-15 20:35:09 +02:00
PhilippC
b6778fb331 New translations strings.xml (Polish) 2021-09-15 19:39:47 +02:00
PhilippC
50254c497a New translations strings.xml (Japanese) 2021-08-11 05:49:57 +02:00
Philipp Crocoll
5aba209857 Merge branch 'master' of c:/ph/keepass2android 2021-07-03 15:50:39 +02:00
Philipp Crocoll
80cfb9e098 fix to superfluous dropbox login requests 2021-07-03 15:50:25 +02:00
Philipp Crocoll
b98c887d71 Merge branch 'l10n_master2' of https://github.com/PhilippC/keepass2android 2021-07-03 14:52:10 +02:00
PhilippC
be8e8f9b02 New translations strings.xml (Dutch) 2021-07-03 14:49:44 +02:00
PhilippC
87cbf65654 New translations strings.xml (Dutch) 2021-07-03 14:45:24 +02:00
Philipp Crocoll
6a0e132945 Merge branch 'l10n_master2' of https://github.com/PhilippC/keepass2android 2021-07-03 14:41:21 +02:00
PhilippC
438cf5793a New translations strings.xml (Dutch) 2021-07-03 14:37:44 +02:00
PhilippC
74a736ef87 New translations strings.xml (Spanish) 2021-07-03 14:37:15 +02:00
Philipp Crocoll
4ce451b99c Merge branch 'master' of c:/ph/keepass2android 2021-07-03 13:28:02 +02:00
Philipp Crocoll
f017d3fdf2 remove intermediate file 2021-07-03 13:27:54 +02:00
Philipp Crocoll
06baeeb79a Merge branch 'l10n_master2' of https://github.com/PhilippC/keepass2android 2021-07-03 13:25:20 +02:00
PhilippC
960b00b9ca New translations strings.xml (Portuguese) 2021-06-28 11:06:33 +02:00