Compare commits

...

10 commits

Author SHA1 Message Date
Licaon_Kter
ec0b9ddfb5
Remove space in title metadata (#80) 2022-09-22 10:18:37 +02:00
yashpalgoyal1304
13cd4877ea
Rename screenshots to have more predictable names (#79)
Removed suffixes
2021-06-05 08:45:04 +02:00
Ivan Tham
832e8d27aa
Use sed to get package version (#75)
The sed tool is more fitting than grep in this case.
2020-10-30 11:09:07 +01:00
Lonami Exo
8fabbfef8c Fix publish workflow and update README
Closes #74.
2020-10-30 10:54:21 +01:00
Lonami
68471bc30f
Add workflow to automatically release artifacts
Should help with #74.
2020-10-30 09:55:57 +01:00
Lonami Exo
21358abff9 Bump to v0.8.6 2020-08-30 12:19:36 +02:00
Lonami Exo
5d88d63419 Add a hack to allow sharing files on newer android versions
Maybe fixes #46. It might not since it had no traceback.
2020-08-30 12:17:55 +02:00
Lonami Exo
7bc26d9a62 Make method static if possible
Closes #61.
2020-08-30 12:00:48 +02:00
Lonami Exo
2c7125710f Avoid using FitViewport in Android
Fixes #66.
2020-08-30 11:54:39 +02:00
Atrate
b190ffb6b3
Make app movable to SD card (#67) 2020-07-01 15:33:24 +02:00
12 changed files with 78 additions and 8 deletions

53
.github/workflows/desktop-release.yml vendored Normal file
View file

@ -0,0 +1,53 @@
name: Automatic Desktop Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew desktop:dist
- name: Define env vars
id: vars
run: |
echo ::set-output name=jar_file::\
$(echo ./desktop/build/libs/*.jar)
echo ::set-output name=version::\
$(echo ./desktop/build/libs/*.jar | sed 's/.*-\([0-9.]\+\)\.jar/\1/')
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.vars.outputs.jar_file }}
asset_name: Klooni-${{ steps.vars.outputs.version }}.jar
asset_content_type: application/java-archive

View file

@ -4,6 +4,8 @@ Play 1010! for free! Add your own themes! Contribute! Make the game yours!
[<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/app/dev.lonami.klooni) [<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/app/dev.lonami.klooni)
(Desktop builds are available on the [releases page](https://github.com/LonamiWebs/Klooni1010/releases).)
This project is licensed under [GPLv3+](LICENSE). This project is licensed under [GPLv3+](LICENSE).
**Table of contents**: **Table of contents**:

View file

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.lonami.klooni" > package="dev.lonami.klooni"
android:installLocation="auto">
<application <application
android:allowBackup="true" android:allowBackup="true"

View file

@ -21,8 +21,8 @@ android {
//noinspection MinSdkTooLow //noinspection MinSdkTooLow
minSdkVersion 8 minSdkVersion 8
targetSdkVersion 29 targetSdkVersion 29
versionCode 840 versionCode 860
versionName "0.8.4" versionName "0.8.6"
} }
buildTypes { buildTypes {
release { release {

View file

@ -17,15 +17,31 @@
*/ */
package dev.lonami.klooni; package dev.lonami.klooni;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.os.StrictMode;
import com.badlogic.gdx.backends.android.AndroidApplication; import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration; import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import java.lang.reflect.Method;
public class AndroidLauncher extends AndroidApplication { public class AndroidLauncher extends AndroidApplication {
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
// FIXME: Hack to allow us use the old way to share files
// https://stackoverflow.com/a/42437379/
if (Build.VERSION.SDK_INT >= 24) {
try {
Method m = StrictMode.class.getMethod("disableDeathOnFileUriExposure");
m.invoke(null);
} catch (Exception e) {
e.printStackTrace();
}
}
final AndroidApplicationConfiguration config = new AndroidApplicationConfiguration(); final AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
final AndroidShareChallenge shareChallenge = new AndroidShareChallenge(this); final AndroidShareChallenge shareChallenge = new AndroidShareChallenge(this);
initialize(new Klooni(shareChallenge), config); initialize(new Klooni(shareChallenge), config);

View file

@ -18,7 +18,7 @@ buildscript {
allprojects { allprojects {
apply plugin: "eclipse" apply plugin: "eclipse"
version = '0.8.4' version = '0.8.6'
ext { ext {
appName = "1010! Klooni" appName = "1010! Klooni"
gdxVersion = '1.9.10' gdxVersion = '1.9.10'

View file

@ -323,7 +323,7 @@ class GameScreen implements Screen, InputProcessor, BinSerializable {
} }
} }
private void deleteSave() { private static void deleteSave() {
final FileHandle handle = Gdx.files.local(SAVE_DAT_FILENAME); final FileHandle handle = Gdx.files.local(SAVE_DAT_FILENAME);
if (handle.exists()) if (handle.exists())
handle.delete(); handle.delete();

View file

@ -26,7 +26,6 @@ import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.Stage; import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener; import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
import com.badlogic.gdx.utils.viewport.FitViewport;
import dev.lonami.klooni.Klooni; import dev.lonami.klooni.Klooni;
import dev.lonami.klooni.actors.SoftButton; import dev.lonami.klooni.actors.SoftButton;
@ -58,7 +57,6 @@ public class MainMenuScreen extends InputListener implements Screen {
Table table = new Table(); Table table = new Table();
table.setFillParent(true); table.setFillParent(true);
stage.addActor(table); stage.addActor(table);
stage.setViewport(new FitViewport(Klooni.GAME_WIDTH, Klooni.GAME_HEIGHT));
// Play button // Play button
final SoftButton playButton = new SoftButton( final SoftButton playButton = new SoftButton(

View file

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View file

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View file

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB