Commit Graph

3848 Commits

Author SHA1 Message Date
tenzap
63f6c1e5cf relocate build.readme.md and mention it in README.md 2022-12-10 20:44:55 +01:00
tenzap
2c128794ac Update build scripts for Windows, linux, support macos & 'build readme'
Remove the older shell scripts, they are superseede by a Makefile
which is more efficient.

BTW update the build README
2022-12-10 20:44:55 +01:00
tenzap
cf0e8a1926 [nonet migration] adapt Makefile and github worklow, update build doc
This will permit to build on the github workflow both the 'net' and 'nonet'
variant
2022-12-10 20:44:55 +01:00
tenzap
06bd468658 [nonet migration] permit to build nonet on master branch through NoNet Flavor
To select the NoNet Flavor, call MSBuild with the 'Flavor' Parameter.
For example MSBuild.exe ....... -p:Flavor=NoNet

For the "net" build, flavor value is "Net"

See: https://learn.microsoft.com/en-us/visualstudio/msbuild/how-to-build-the-same-source-files-with-different-options?view=vs-2019
2022-12-10 20:44:55 +01:00
tenzap
7b6ff73fb9 Add Makefile to be able to build from command line 2022-12-10 20:44:51 +01:00
tenzap
96fcc79c93 Autoselect correct AndroidManifest in csproj
This avoids use of an external .bat script and selects the correct manifest based
on the configuration to build for (Debug, Release...)
2022-12-08 12:29:16 +01:00
tenzap
b99272e850 add github actions workflow (build with macos, windows, linux) 2022-12-08 12:29:15 +01:00
tenzap
9fc7dca138 [nonet migration] don't use GoogleDriveAppDataFileStorage when building nonet
src/keepass2android/app/App.cs: don't use GoogleDriveAppDataFileStorage when building nonet
2022-12-07 04:12:12 +01:00
tenzap
b50c7e6cf6 [nonet migration] update 'sr' translations from nonet branch 2022-12-07 04:12:12 +01:00
tenzap
944bce14b8 [Build Fix] set AndroidClassParser build property to class-parse
Build reported these warnings:

warning XA4231: The Android class parser value 'jar2xml' is deprecated and will be removed in a future version of Xamarin.Android. Update the project properties to use 'class-parse'

In the code <AndroidClassParser> is not specified, so by default it uses
'jar2xml'. So set its value to 'class-parse'.

See:
https://github.com/xamarin/xamarin-android/blob/main/Documentation/guides/messages/xa4231.md
https://github.com/xamarin/xamarin-android/issues/1319

Moving to class-parse instead of jar2xml also fixes issues when building with Java 11 & Xamarin < 12.2
Because of:
- 94e21c7aaa
If the change wasn't done, we would have to stick with JDK-8
2022-12-07 04:12:12 +01:00
tenzap
269952ee67 [Build Fix] fix location of 'Xamarin.Android.Bindings.targets' to 'Xamarin\Android\'
Instead of 'Novell\'

In kp2akeytransform.csproj

Novell\Xamarin.Android.Bindings.targets is not anymore at this place. It is now in
Xamarin\Android\Xamarin.Android.Bindings.targets

Most subprojects already use that path, but this wasn't changed here
2022-12-07 04:12:12 +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
tenzap
b2f21094b5 remove untracked Kp2aBusinessLogic/Resources/Resource.Designer.cs
Since it is in gitignore
2022-12-06 23:00:52 +01:00
Philipp Crocoll
50287025a0 manifest and changelog for 1.09d-r0 1.09d-r0 2022-02-05 16:13:53 +01:00
Philipp Crocoll
ed234c898e can now view entry history and remove/restore previous versions. closes #298 2022-02-05 15:53:08 +01:00
Philipp Crocoll
35f74f5ea4 add support for Google Drive with restricted scope, closes #622 2022-02-02 03:50:51 +01:00
Philipp Crocoll
26f0ab6661 implement support for MEGA, closes #99 2022-02-02 02:54:35 +01:00
Philipp Crocoll
3648213be2 Update AndroidX.Biometric library, an attempt to see if this helps regarding https://github.com/PhilippC/keepass2android/issues/1914 2022-01-20 20:02:16 +01:00
Philipp Crocoll
40146a42ce avoid potential crash in Android 12 while reloading the Database, closes https://github.com/PhilippC/keepass2android/issues/1909 2022-01-20 20:00:37 +01:00
Philipp Crocoll
2c93fd1542 Add option to hide the "Disable autofill for XY" prompt, closes https://github.com/PhilippC/keepass2android/issues/1843 2022-01-17 10:05:16 +01:00
Philipp Crocoll
2981497da9 start adding option for "no disable autofill" 2022-01-17 09:49:44 +01:00
Philipp Crocoll
6745e0486c unmask single field when using the toggle menu option in the popup menu, closes https://github.com/PhilippC/keepass2android/issues/71; add option for specifying the default visibility of the TOTP field, closes https://github.com/PhilippC/keepass2android/issues/1873 2022-01-17 09:46:47 +01:00
Philipp Crocoll
093ebb424e Merge branch 'master' of https://github.com/PhilippC/keepass2android 2022-01-15 20:10:53 +01:00
Philipp Crocoll
c344b0f62a add button to scan QR code for TOTP setup in the "setup TOTP" dialog. Closes https://github.com/PhilippC/keepass2android/issues/1575 2022-01-15 20:10:34 +01:00
Philipp Crocoll
2b85ed473c make sure master password is no longer in unmasked mode when using fingerprint, closes https://github.com/PhilippC/keepass2android/issues/1134 2022-01-15 16:28:00 +01:00
Philipp Crocoll
d536b38acc allow to create a special entry in the database with the QuickUnlock code as password, closes https://github.com/PhilippC/keepass2android/issues/331 2022-01-15 16:17:35 +01:00
Philipp Crocoll
b4a82511ff Add option to always merge on conflict, closes https://github.com/PhilippC/keepass2android/issues/1218 2022-01-15 15:55:34 +01:00
PhilippC
35a84adde3 Merge pull request #1902 from whalehub/patch-1
Fix homepage URL
2022-01-15 14:20:21 +01:00
Philipp Crocoll
675fd5b735 release 1.09c-r0. This solves the problem with Google Drive API blocked, closes #1833, closes #1859 and closes #1862 v1.09c-r0 2022-01-12 17:30:04 +01:00
PhilippC
14c7663167 Merge pull request #1851 from PhilippC/l10n_master2
New Crowdin updates
2022-01-12 16:58:01 +01:00
PhilippC
788a04aceb New translations strings.xml (Slovenian) 2022-01-12 08:37:49 +01:00
PhilippC
99c70f96d8 New translations strings.xml (Russian) 2022-01-12 08:37:45 +01:00
PhilippC
9f729e8c36 New translations strings.xml (Polish) 2022-01-12 08:37:41 +01:00
PhilippC
35f1a351ba New translations strings.xml (Portuguese, Brazilian) 2022-01-12 08:37:32 +01:00
PhilippC
5f59de2fba New translations strings.xml (Chinese Simplified) 2022-01-12 08:37:23 +01:00
PhilippC
95b7c59606 New translations strings.xml (Ukrainian) 2022-01-12 08:37:21 +01:00
PhilippC
7962b5c8ea New translations strings.xml (Japanese) 2022-01-12 08:37:16 +01:00
PhilippC
d2818a35c6 New translations strings.xml (Slovak) 2022-01-12 08:37:07 +01:00
PhilippC
44183178c6 New translations strings.xml (Spanish) 2022-01-12 08:37:04 +01:00
PhilippC
2ebb35b631 New translations strings.xml (Spanish) 2022-01-12 08:37:03 +01:00
PhilippC
173a5fedf0 New translations strings.xml (French) 2022-01-12 08:37:00 +01:00
PhilippC
00c0bbd942 New translations strings.xml (Romanian) 2022-01-12 08:36:58 +01:00
PhilippC
1dfb38207b New translations strings.xml (Danish) 2022-01-12 08:36:57 +01:00
PhilippC
df0d087646 New translations strings.xml (Italian) 2022-01-12 08:36:53 +01:00
PhilippC
8f84e292b2 New translations strings.xml (Greek) 2022-01-12 08:36:43 +01:00
PhilippC
45bf4247c1 New translations strings.xml (German) 2022-01-12 08:36:40 +01:00
Philipp Crocoll
daecd42d8e Merge branch 'master' of https://github.com/PhilippC/keepass2android 2022-01-12 08:31:38 +01:00
Philipp Crocoll
952aaa76ff update file storage selection to use icon from https://developers.google.com/drive/api/v3/branding 2022-01-12 08:28:09 +01:00