mirror of
https://gitlab.com/fabinfra/fabaccess/borepin.git
synced 2025-03-12 14:51:44 +01:00
Merge branch 'main' into feature/NFC
This commit is contained in:
commit
2efeaefe18
112
.gitlab-ci.yml
112
.gitlab-ci.yml
@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
VERSION_PATTERN: '/v\d+\.\d+(\.\d+)?/'
|
VERSION_PATTERN: '/^v\d+\.\d+(\.\d+)?$/'
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
LIB_RELEASE_FOLDER: 'Borepin\Borepin\bin\Release'
|
LIB_RELEASE_FOLDER: 'Borepin\Borepin\bin\Release'
|
||||||
UWP_RELEASE_FOLDER: 'Borepin\Borepin.UWP\bin\x86\Release'
|
UWP_RELEASE_FOLDER: 'Borepin\Borepin.UWP\bin\x86\Release'
|
||||||
@ -87,7 +87,7 @@ pack_Android_AAB:
|
|||||||
needs:
|
needs:
|
||||||
- build_Android
|
- build_Android
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
tags:
|
tags:
|
||||||
- fabinfra
|
- fabinfra
|
||||||
- internal
|
- internal
|
||||||
@ -112,7 +112,7 @@ pack_Android_APK:
|
|||||||
needs:
|
needs:
|
||||||
- build_Android
|
- build_Android
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
tags:
|
tags:
|
||||||
- fabinfra
|
- fabinfra
|
||||||
- internal
|
- internal
|
||||||
@ -133,12 +133,38 @@ pack_Android_APK:
|
|||||||
paths:
|
paths:
|
||||||
- Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk
|
- Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk
|
||||||
|
|
||||||
|
pack_FDroid_APK:
|
||||||
|
stage: pack
|
||||||
|
needs:
|
||||||
|
- build_Android
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
|
tags:
|
||||||
|
- fabinfra
|
||||||
|
- internal
|
||||||
|
- windows
|
||||||
|
- powershell
|
||||||
|
- xamarin
|
||||||
|
before_script:
|
||||||
|
- '$Env:VERSION_NUMBER="$CI_COMMIT_TAG".SubString(1)'
|
||||||
|
- '$Env:BUILD_NUMBER="$CI_PIPELINE_ID"'
|
||||||
|
- '$Env:ANDROID_PKG_FORMAT="apk"'
|
||||||
|
script:
|
||||||
|
- '& "$WIN_NUGET_PATH" restore'
|
||||||
|
- '[System.IO.File]::WriteAllBytes("$(pwd)/fabaccess.keystore", [System.Convert]::FromBase64String($FDroidKeyStore))'
|
||||||
|
- '& "$WIN_MSBUILD_PATH" /t:Restore /t:Borepin_Android:SetVersion /p:Configuration=Release /target:Borepin_Android /target:Borepin_Android:SignAndroidPackage /p:AndroidKeyStore="True" /p:AndroidSigningKeyStore="$(pwd)/fabaccess.keystore" /p:AndroidSigningKeyPass="$FDroidKeyStore_Password" /p:AndroidSigningKeyAlias="$FDroidKeyStore_ID" /p:AndroidSigningStorePass="$FDroidKeyStore_Password"'
|
||||||
|
- 'rm "$(pwd)/fabaccess.keystore"'
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk
|
||||||
|
|
||||||
pack_iOS:
|
pack_iOS:
|
||||||
stage: pack
|
stage: pack
|
||||||
needs:
|
needs:
|
||||||
- build_iOS
|
- build_iOS
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
tags:
|
tags:
|
||||||
- fabinfra
|
- fabinfra
|
||||||
- internal
|
- internal
|
||||||
@ -162,7 +188,7 @@ deploy_Android_Internal:
|
|||||||
needs:
|
needs:
|
||||||
- pack_Android_AAB
|
- pack_Android_AAB
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest
|
image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest
|
||||||
@ -183,33 +209,81 @@ deploy_Android_Internal:
|
|||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
needs:
|
needs:
|
||||||
- pack_Android_APK
|
- pack_FDroid_APK
|
||||||
- pack_iOS
|
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
image: registry.gitlab.com/fabinfra/gtk-sharp-build:latest
|
image:
|
||||||
|
name: ubuntu
|
||||||
|
# name: registry.gitlab.com/fdroid/docker-executable-fdroidserver:master
|
||||||
variables:
|
variables:
|
||||||
LC_ALL: 'en_US.UTF-8'
|
DEBIAN_FRONTEND: noninteractive
|
||||||
LANG: 'en_US.UTF-8'
|
TZ: Europe/Berlin
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
- 'apt-get update -yqq && apt-get install -yqq fdroidserver'
|
||||||
- 'export VERSION_NUMBER=${CI_COMMIT_TAG:1}'
|
- 'export VERSION_NUMBER=${CI_COMMIT_TAG:1}'
|
||||||
- 'export BUILD_NUMBER="$CI_PIPELINE_ID"'
|
- 'export BUILD_NUMBER="$CI_PIPELINE_ID"'
|
||||||
|
- 'cp -r fdroid/* .'
|
||||||
|
- 'echo "keystorepass: ${FDroidKeyStore_Password}" >> config.yml'
|
||||||
|
- 'echo "keypass: ${FDroidKeyStore_Password}" >> config.yml'
|
||||||
|
- 'echo ${FDroidKeyStore} | base64 -d > keystore.p12'
|
||||||
|
# - 'cat config.yml'
|
||||||
|
# - sha1sum keystore.p12
|
||||||
script:
|
script:
|
||||||
- 'mkdir -p public'
|
- 'mkdir -p repo'
|
||||||
- 'cp Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk public/'
|
- 'cp Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk repo/'
|
||||||
|
- 'fdroid update'
|
||||||
|
- 'mkdir -p public/fdroid'
|
||||||
|
- 'cp -r repo public/fdroid/'
|
||||||
|
- 'rm keystore.p12'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
||||||
|
upload_binaries:
|
||||||
|
stage: deploy
|
||||||
|
needs:
|
||||||
|
- pack_Android_APK
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
image: curlimages/curl:latest
|
||||||
|
before_script: []
|
||||||
|
cache: []
|
||||||
|
script:
|
||||||
|
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file Borepin/Borepin.Android/bin/Release/org.fab_infra.fabaccess-Signed.apk "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/borepin/${CI_COMMIT_TAG}/org.fab_infra.fabaccess-Signed.apk"'
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
|
|
||||||
|
release_job:
|
||||||
|
stage: deploy
|
||||||
|
needs:
|
||||||
|
- upload_binaries
|
||||||
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
|
- if: $CI_COMMIT_TAG =~ "release/.*"
|
||||||
|
when: never
|
||||||
|
when: manual
|
||||||
|
script:
|
||||||
|
- echo "Creating GitLab release…"
|
||||||
|
release:
|
||||||
|
name: "Borepin ${CI_COMMIT_TAG}"
|
||||||
|
description: "GitLab CI auto-created release"
|
||||||
|
tag_name: "release/${CI_COMMIT_TAG}"
|
||||||
|
assets:
|
||||||
|
links:
|
||||||
|
- name: 'Borepin signed apk'
|
||||||
|
url: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/borepin/${CI_COMMIT_TAG}/org.fab_infra.fabaccess-Signed.apk"
|
||||||
|
|
||||||
deploy_Android_Beta:
|
deploy_Android_Beta:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
needs:
|
needs:
|
||||||
- deploy_Android_Internal
|
- deploy_Android_Internal
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@ -232,7 +306,7 @@ deploy_Android_Production:
|
|||||||
needs:
|
needs:
|
||||||
- deploy_Android_Beta
|
- deploy_Android_Beta
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
@ -255,7 +329,7 @@ deploy_iOS_Internal:
|
|||||||
needs:
|
needs:
|
||||||
- pack_iOS
|
- pack_iOS
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
tags:
|
tags:
|
||||||
- fabinfra
|
- fabinfra
|
||||||
- internal
|
- internal
|
||||||
@ -282,7 +356,7 @@ deploy_iOS_Beta:
|
|||||||
needs:
|
needs:
|
||||||
- pack_iOS
|
- pack_iOS
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
tags:
|
||||||
- fabinfra
|
- fabinfra
|
||||||
@ -310,7 +384,7 @@ deploy_iOS_Production:
|
|||||||
needs:
|
needs:
|
||||||
- deploy_iOS_Beta
|
- deploy_iOS_Beta
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ /v\d+\.\d+(\.\d+)?/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $VERSION_PATTERN
|
||||||
when: manual
|
when: manual
|
||||||
tags:
|
tags:
|
||||||
- fabinfra
|
- fabinfra
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
||||||
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
|
||||||
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
|
||||||
<TargetFrameworkVersion>v11.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v13.0</TargetFrameworkVersion>
|
||||||
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
|
<AndroidEnableSGenConcurrent>true</AndroidEnableSGenConcurrent>
|
||||||
<AndroidUseAapt2>true</AndroidUseAapt2>
|
<AndroidUseAapt2>true</AndroidUseAapt2>
|
||||||
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
|
<AndroidHttpClientHandlerType>Xamarin.Android.Net.AndroidClientHandler</AndroidHttpClientHandlerType>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="org.fab_infra.fabaccess" android:installLocation="auto">
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="org.fab_infra.fabaccess" android:installLocation="auto">
|
||||||
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />
|
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33" />
|
||||||
<application android:theme="@style/MainTheme" android:label="FabAccess" android:networkSecurityConfig="@xml/network_security_config"></application>
|
<application android:theme="@style/MainTheme" android:label="FabAccess" android:networkSecurityConfig="@xml/network_security_config"></application>
|
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||||
<uses-permission android:name="android.permission.INTERNET" />
|
<uses-permission android:name="android.permission.INTERNET" />
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
Title="{x:Static resource_text:TextResource.TITLE_Profile}">
|
Title="{x:Static resource_text:TextResource.TITLE_Profile}">
|
||||||
<ContentPage.Resources>
|
<ContentPage.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
|
<converters:AllTrueBoolConverter x:Key="AllTrueBoolConverter"/>
|
||||||
<converters:InvertBoolConverter x:Key="InvertBoolConverter"/>
|
<converters:InvertBoolConverter x:Key="InvertBoolConverter"/>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</ContentPage.Resources>
|
</ContentPage.Resources>
|
||||||
|
9
fdroid/config.yml
Normal file
9
fdroid/config.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
repo_keyalias: Persephone
|
||||||
|
|
||||||
|
keydname: CN=Persephone, OU=F-Droid
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
repo_url: "https://fdroid.fab-access.org/fdroid/repo"
|
||||||
|
repo_name: "FabAccess F-Droid Repo"
|
||||||
|
repo_description: F-Droid repo for FabAccess.
|
9
fdroid/metadata/org.fab_infra.fabaccess.yml
Normal file
9
fdroid/metadata/org.fab_infra.fabaccess.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
AuthorName: 'RLKM UG (haftungsbeschränkt)'
|
||||||
|
Categories:
|
||||||
|
- Productivity
|
||||||
|
IssueTracker: 'https://gitlab.com/fabinfra/fabaccess/borepin/-/issues'
|
||||||
|
Name: FabAccess
|
||||||
|
SourceCode: 'https://gitlab.com/fabinfra/fabaccess/borepin'
|
||||||
|
Summary: 'FabAccess is a federatable management system for FabLabs, Makerspaces and Hackerspaces. FabAccess aims to manage access to machines in order to avoid accidents.'
|
||||||
|
WebSite: 'https://fab-access.org'
|
||||||
|
License: GPL-3.0-only
|
Loading…
x
Reference in New Issue
Block a user