Skip to content

Commit

Permalink
Merge pull request #6 from LupaDevStudio/5-add-buttons-behind-the-fra…
Browse files Browse the repository at this point in the history
…mes-for-the-achievements-screen

5 add buttons behind the frames for the achievements screen
  • Loading branch information
LupaDevStudio authored Nov 19, 2023
2 parents 139fa17 + bc3cb04 commit 64dfcb6
Show file tree
Hide file tree
Showing 87 changed files with 1,449 additions and 266 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
.buildozer
bin

# Installer logs
pip-log.txt
Expand Down
36 changes: 36 additions & 0 deletions Compilation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Compilation instructions

## Debug

### Compilation of a debug version

`python -m buildozer -v android debug`

### Launch the debug version on a device connected to the computer

`python -m buildozer -v android deploy run logcat | grep python`

## Release

### Creation of the app signing key

```bash
keytool -genkey -v -keystore ~/keystores/Postrias.keystore -alias Postrias -keyalg RSA -keysize 2048 -validity 10000
keytool -importkeystore -srckeystore ~/keystores/Postrias.keystore -destkeystore ~/keystores/Postrias.keystore -deststoretype pkcs12
```

### Compilation of a release version

```bash
export P4A_RELEASE_KEYALIAS="Postrias"
export P4A_RELEASE_KEYSTORE=~/keystores/Postrias.keystore
export P4A_RELEASE_KEYSTORE_PASSWD=
export P4A_RELEASE_KEYALIAS_PASSWD=
python -m buildozer android release
```

## Bug fix

### Java Heap Space error

`export GRADLE_OPTS="-Xms1724m -Xmx5048m -Dorg.gradle.jvmargs='-Xms1724m -Xmx5048m'"`
23 changes: 12 additions & 11 deletions buildozer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
title = Postrias

# (str) Package name
package.name = tramwaycollector
package.name = postrias

# (str) Package domain (needed for android/ios packaging)
package.domain = lupa.dev.studio.com
package.domain = lupadevstudio.com

# (str) Source code where the main.py live
source.dir = .

# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas,json,txt,ttf,wav,ico,ogg,otf
source.include_exts = py,png,jpg,kv,atlas,json,txt,ttf,wav,ico,ogg,otf,mp3

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png
Expand All @@ -37,7 +37,7 @@ version = 2.0.0

# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy,androidstorage4kivy
requirements = python3,kivy

# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
Expand All @@ -47,10 +47,10 @@ requirements = python3,kivy,androidstorage4kivy
#presplash.filename = ./resources/logo_collector_1024.png

# (str) Icon of the application
icon.filename = ./resources/logo_collector_1024.png
icon.filename = ./resources/logo.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = portrait
orientation = landscape

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY
Expand All @@ -73,13 +73,14 @@ osx.kivy_version = 2.1.0
#

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0
fullscreen = 1

# (string) Presplash background color (for android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
# Postrias res : ec1c24
android.presplash_color = #e6e6e6

# (string) Presplash animation using Lottie format.
Expand All @@ -93,7 +94,7 @@ android.presplash_lottie = resources/presplash.json
#icon.adaptive_background.filename = %(source.dir)s/data/icon_bg.png

# (list) Permissions
android.permissions = READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, INTERNET
android.permissions = INTERNET, ACCESS_NETWORK_STATE

# (list) features (adds uses-feature -tags to manifest)
#android.features = android.hardware.usb.host
Expand Down Expand Up @@ -175,7 +176,7 @@ android.sdk = 34

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =
android.add_src = src

# (list) Android AAR archives to add
#android.add_aars =
Expand All @@ -187,7 +188,7 @@ android.sdk = 34
#android.add_assets =

# (list) Gradle dependencies to add
#android.gradle_dependencies =
android.gradle_dependencies = com.google.android.gms:play-services-ads:20.3.0

# (bool) Enable AndroidX support. Enable when 'android.gradle_dependencies'
# contains an 'androidx' package, or any package from Kotlin source.
Expand Down Expand Up @@ -239,7 +240,7 @@ android.sdk = 34
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =
android.meta_data = com.google.android.gms.ads.APPLICATION_ID=ca-app-pub-3940256099942544~3347511713

# (list) Android library project to add (will be added in the
# project.properties automatically.)
Expand Down
Loading

0 comments on commit 64dfcb6

Please sign in to comment.