Skip to content

Commit

Permalink
Android Version 2.24
Browse files Browse the repository at this point in the history
  • Loading branch information
lufebe16 committed Mar 12, 2024
1 parent 2dfca42 commit 77fd05e
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 6 deletions.
19 changes: 19 additions & 0 deletions buildozer/aversion
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

appdir=""
if [ "$1" ]
then
appdir=$1
else
exit 1
fi

# current android version mumber.
version="2.24.0"
sversion=$(echo $version | sed -E "s:(.*)\..*:\1:")
tuple=$(echo $version | sed -E "s:(.*)\.(.*)\.(.*):(\1, \2, \3):")

# patch different version info accordingly.
sed -E "s:VERSION_TUPLE =.*:VERSION_TUPLE = $tuple:" -i $appdir/pysollib/settings.py
sed -E "s:(.*\(')dev(',.*):\1fc-$sversion\2:" -i $appdir/pysollib/gamedb.py
echo "VERSION = $version"
2 changes: 1 addition & 1 deletion buildozer/buildozer.init
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ cp -a cardsets/* ${tmpdir}/data

echo '### eval version'

./version ${tmpdir} > ${tmpdir}/version.txt
./aversion ${tmpdir} > ${tmpdir}/version.txt

echo '### end init'
4 changes: 2 additions & 2 deletions buildozer/fdroid.init
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ echo '### resize 4k images'

echo '### eval version'

./version ${tmpdir} > ${tmpdir}/version.txt
./aversion ${tmpdir} > ${tmpdir}/version.txt

echo '### prepare buildozer'

sed -r "s:#? ?source\.dir =.*:source.dir = ..:" -i buildozer.spec
sed -r "s:#? ?source\.exclude_dirs =.*:source.exclude_dirs = Screenshots,android,buildozer,tests:" -i buildozer.spec
sed -r "s:#? ?source\.exclude_dirs =.*:source.exclude_dirs = Screenshots,android,buildozer,tests,fastlane:" -i buildozer.spec
sed -r "s:#? ?source\.exclude_patterns =.*:source.exclude_patterns = README.*,AUTHORS.md,CONTRIBUTING.md,COPYING,MANIFEST.in,Makefile,NEWS.asciidoc,appdata.xml,pysol.py,run-tests.pl,setup.cfg,setup.py,setup_osx.py,local.properties,p4a_env_vars.txt:" -i buildozer.spec
sed -r "s:#? ?android\.skip_update =.*:android.skip_update = True:" -i buildozer.spec
sed -r "s:#? ?android\.accept_sdk_license =.*:android.accept_sdk_license = False:" -i buildozer.spec
Expand Down
1 change: 1 addition & 0 deletions buildozer/minimal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ cardset-neo-hex
cardset-neo-tarock
cardset-next-matrix
cardset-oxymoron
cardset-simple-ishido
cardset-standard
cardset-tuxedo
cardset-uni-mahjongg
Expand Down
6 changes: 3 additions & 3 deletions buildozer/pubspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 102122100,
"versionName": "2.21.0",
"versionCode": 102122400,
"versionName": "2.24.0",
"outputFile": "pysolfc-release.apk"
}
],
"elementType": "File"
}
}
24 changes: 24 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/102122400.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Android specific:
- Temporary screen orientation lock added. When the app starts (or
restarts) the screen will rotate according to the device orientation.
While playing a game screen rotation is locked with the first
card selection. Screen rotation lock can be disabled by a double click to
the free game area.
- Toolbar: general toolbar show/hide for inividual buttons added to the
options menu.
- Toolbar: dynamic updates on Toolbar and Options settings.
- Toolbar: To prevent occasional restarts or redeals due to 'fat fingers'
a toast has been added to buttons for 'new deal' and 'restart'. To
accept the command tap onto it.
- Implementation of full picture preview for the new puzzle type games.
- Background images from the save-aspect folder now are preserving
correct aspect ratio (bug fix).
- Mahjongg tile overlapping (3d simulation) is now implemented.
- Animation of card moves reworked. This fixes some stacking order corruptions
reported earlier.
- Display of html-text (game rules, licence etc): Black windows fixed.
- Upstream libraries updated to kivy v2.2.1 and python v3.10
Main version:
- many new games.
- consult NEWS.asscidoc or html-src/news.html on the github repo for more
change informations.

1 comment on commit 77fd05e

@joeraz
Copy link
Collaborator

@joeraz joeraz commented on 77fd05e Mar 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So there are a number of issues here, as a release:

  • Internally, the version is still listed as 2.21.0, this is set in pysollib/settings.py. This is displayed in the about screen and used to check save game compatibility between versions. In reality, this code is closer to 3.0 than any 2.x version, so this will be confusing.
  • In the games by version selector, all of the new games are listed as new in "dev" version. Not a huge thing, but it means there is one place where the code is listed as dev code. This can be updated in the pysollib/gamedb.py file.
  • The above steps are documented in the release process in contributing.md.
  • Also, if you want to do an out of cycle release, please create an issue with the "releases" tag first to indicate your intention. This will make it easier to coordinate with anyone else who might be actively working on the code.

Please sign in to comment.