New app: AusweisApp2

Closes fdroid/rfp#258.
This commit is contained in:
relan 2019-02-17 07:49:05 +03:00
parent f36cf39a29
commit 96c9d05bc4
3 changed files with 101 additions and 0 deletions

View file

@ -0,0 +1,47 @@
Categories:
- Internet
License: EUPL-1.2
WebSite: https://www.ausweisapp.bund.de/
SourceCode: https://github.com/Governikus/AusweisApp2
IssueTracker: https://github.com/Governikus/AusweisApp2/issues
Summary: ePerso mit dem Handy nutzen
Description: |-
Mit der Online-Ausweisfunktion des Personalausweises und des elektronischen
Aufenthaltstitels können Sie sich im Internet ausweisen.
RepoType: git
Repo: https://github.com/Governikus/AusweisApp2
Builds:
- versionName: 1.16.1
versionCode: 1
commit: 1.16.1
sudo:
- apt update || apt update
- apt install -y -t stretch-backports cmake
patch:
- 1.16.1-unsigned-apk.patch
- 1.16.1-qstring-constructor.patch
output: build/dist/AusweisApp2-$$VERSION$$-armeabi-v7a.apk
rm:
- test
- resources/packaging/macos
build:
- export ANDROID_BUILD_TOOLS_REVISION=28.0.3
- mkdir libs/build build
- cd libs/build
- cmake .. -DCMAKE_TOOLCHAIN_FILE=../../cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=release
- make
- cd ../../build
- cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/android.toolchain.cmake -DCMAKE_BUILD_TYPE=release
-DCMAKE_PREFIX_PATH=$(realpath ../libs/build/dist) -DANDROID_VERSION_CODE=$$VERCODE$$
- make
- make install
- make apk
ndk: r18b
AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: 1.16.1
CurrentVersionCode: 1

View file

@ -0,0 +1,24 @@
diff --git a/cmake/CompilerFlags.cmake b/cmake/CompilerFlags.cmake
--- a/cmake/CompilerFlags.cmake
+++ b/cmake/CompilerFlags.cmake
@@ -10,7 +10,7 @@ IF(CMAKE_VERSION VERSION_LESS "3.12")
ADD_DEFINITIONS(-DQT_RESTRICTED_CAST_FROM_ASCII)
ELSE()
ADD_COMPILE_DEFINITIONS($<$<CONFIG:Debug>:QT_RESTRICTED_CAST_FROM_ASCII>)
- ADD_COMPILE_DEFINITIONS($<$<CONFIG:Release>:QT_NO_CAST_FROM_ASCII>)
+ ADD_COMPILE_DEFINITIONS($<$<NOT:$<CONFIG:Debug>>:QT_NO_CAST_FROM_ASCII>)
ENDIF()
IF(QT_VENDOR STREQUAL "Governikus")
diff --git a/src/ui/qml/UIPlugInQml.cpp b/src/ui/qml/UIPlugInQml.cpp
--- a/src/ui/qml/UIPlugInQml.cpp
+++ b/src/ui/qml/UIPlugInQml.cpp
@@ -91,7 +91,7 @@ UIPlugInQml::UIPlugInQml()
, mTrayIcon()
{
#if defined(Q_OS_ANDROID)
- QGuiApplication::setFont(QFont("Roboto"));
+ QGuiApplication::setFont(QFont(QStringLiteral("Roboto")));
#endif
connect(&mTrayIcon, &TrayIcon::fireShow, this, &UIPlugInQml::show);

View file

@ -0,0 +1,30 @@
diff --git a/cmake/Packaging.cmake b/cmake/Packaging.cmake
--- a/cmake/Packaging.cmake
+++ b/cmake/Packaging.cmake
@@ -185,9 +185,10 @@ ELSEIF(ANDROID)
MESSAGE(STATUS "Prepare ${ANDROID_FILE_EXT} file generation")
IF(${CMAKE_BUILD_TYPE} STREQUAL "RELEASE" OR ${CMAKE_BUILD_TYPE} STREQUAL "RELWITHDEBINFO" OR ${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
+ SET(DEPLOY_CMD_SIGN --release)
+
IF(ANDROID_BUILD_AAR)
SET(ANDROID_FILE dist-release.aar)
- SET(DEPLOY_CMD_SIGN --release)
ELSEIF(APK_SIGN_KEYSTORE AND APK_SIGN_KEYSTORE_ALIAS AND APK_SIGN_KEYSTORE_PSW)
MESSAGE(STATUS "Release build will be signed using: ${APK_SIGN_KEYSTORE} | Alias: ${APK_SIGN_KEYSTORE_ALIAS}")
SET(DEPLOY_CMD_SIGN --sign ${APK_SIGN_KEYSTORE} ${APK_SIGN_KEYSTORE_ALIAS} --storepass ${APK_SIGN_KEYSTORE_PSW} --digestalg SHA-256 --sigalg SHA256WithRSA)
@@ -197,7 +198,13 @@ ELSEIF(ANDROID)
SET(ANDROID_FILE QtApp-release-signed.apk)
ENDIF()
ELSE()
- MESSAGE(FATAL_ERROR "Cannot sign release build! Set APK_SIGN_KEYSTORE, APK_SIGN_KEYSTORE_ALIAS and APK_SIGN_KEYSTORE_PSW!")
+ IF(ANDROID_USE_GRADLE)
+ SET(ANDROID_FILE dist-release-unsigned.apk)
+ ELSE()
+ SET(ANDROID_FILE QtApp-release-unsigned.apk)
+ ENDIF()
+
+ MESSAGE(WARNING "Cannot sign release build! Set APK_SIGN_KEYSTORE, APK_SIGN_KEYSTORE_ALIAS and APK_SIGN_KEYSTORE_PSW!")
ENDIF()
ELSE()