initialize git Repo
This commit is contained in:
commit
3b086fe2ac
5 changed files with 93 additions and 0 deletions
24
.github/workflows/buildozer.yml
vendored
Normal file
24
.github/workflows/buildozer.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
---
|
||||||
|
name: Build
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Build job. Builds app for Android with Buildozer
|
||||||
|
build-android:
|
||||||
|
name: Build for Android
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build with Buildozer
|
||||||
|
uses: actions/gh-buildozer-action@v1
|
||||||
|
id: buildozer
|
||||||
|
with:
|
||||||
|
workdir: ch.l3d.deutschlandticket
|
||||||
|
buildozer_version: stable
|
||||||
|
|
||||||
|
- name: Upload File
|
||||||
|
run: echo Uploaded; /usr/bin/curl --upload-file ${{ steps.buildozer.outputs.filename }} https://transfer.sh/hello.txt; echo upload$_
|
||||||
|
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
app/
|
||||||
|
kivy/
|
||||||
|
*/.buildozer/
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 L3D <l3d@c3woc.de>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
42
README.md
Normal file
42
README.md
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Universal Deutschlandticket App
|
||||||
|
This app should display AZTEC Codes asknow by train tickets and show some "security stuff" like animated artwork like a deutschlandticket logo.
|
||||||
|
|
||||||
|
Viele Zugbegleiter und Busfahrer akzeptieen zum Beispiel das Deutschlandticket nicht als Screenshot eines Aztec Code, sondern nur, wenn es sich scrollen lässt.
|
||||||
|
Idealerweise noch im zusammenspiel einer animierten Grafik. Dabei wird oft der Code nicht einmal gescannt.
|
||||||
|
|
||||||
|
Ziel dieser App ist es, eine trackingfreie Alternative zu den ganzen Deutschlandticket Apps zu schaffen, die jeden beliebigen Aztec Code Akzeptiert.
|
||||||
|
|
||||||
|
Du hst dein Deutschlandticket nur als PDF und nicht als App? Kein Problem, mit dieser Deutschlandticket App digitalisieren wir ein Foto des Aztec Codes und du hast nun ein digitales Handyticket, das sich scrollen lässt.
|
||||||
|
Du hast zwar ein ICE Ticket, willst aber Deutschlandticket fahren?
|
||||||
|
Kein Problem. Lade dein ICE Ticket in diese Deutschlandticket App und genieße die verwunderten Blicke beim kontrollieren deines Tickets.
|
||||||
|
|
||||||
|
We use [kivy](https://kivy.org/) as App Development Framework.
|
||||||
|
|
||||||
|
Since a fe weeks forgejo/gitea have implemented github actions. And we use them to build the app.
|
||||||
|
|
||||||
|
## Setup local Development
|
||||||
|
For local app development, be inspired by this setup:
|
||||||
|
|
||||||
|
Venv and Requirements
|
||||||
|
```
|
||||||
|
python3 -m venv app
|
||||||
|
source app/bin/activate
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
Install kivy
|
||||||
|
```
|
||||||
|
git clone https://github.com/kivy/kivy.git
|
||||||
|
cd kivy
|
||||||
|
python3.11 -m pip install cython
|
||||||
|
python3.11 setup.py build_ext --inplace
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build Pipeline
|
||||||
|
### Bulldozer building
|
||||||
|
There is a Github Action for building kivy apps for android using bulldozer. We mirrored the app to [https://backwesen.de/actions/gh-buildozer-action](https://backwesen.de/actions/gh-buildozer-action.git) and use it successfully for building our app.
|
||||||
|
|
||||||
|
### Releasing
|
||||||
|
Sadly gitea/forgejo does not support artifacts jet. So we have multiple different options for releasing our build binarys. Publishing them to other servers, put them in a new git repo or maybe there is a fancy way to attatch them to a release. For now we skipped this option and waiting for artifacts to become available.
|
||||||
|
In the meantime we use https://transfer.sh/ for uploading our files quick and dirty.
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
packaging
|
||||||
|
pygame
|
||||||
|
buildozer
|
Reference in a new issue