Skip to content

Commit 80a0406

Browse files
committed
Release 4.3.2
1 parent dc9bf77 commit 80a0406

File tree

8 files changed

+30
-18
lines changed

8 files changed

+30
-18
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [4.3.2]
7+
8+
- Bugfix volume < 0.
9+
- Temp. fix for small font size on desktop.
10+
- Update to publish to the new maven central.
11+
612
## [4.3.1]
713

814
- Bugfix small font size.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
androidAPILevel=33
22
androidGradlePluginVersion=8.1.0
33
bladeInkVersion=1.1.2
4-
libgdxVersion=1.12.1
4+
libgdxVersion=1.13.1
55
roboVMVersion=2.3.20
6-
version=4.3.1
6+
version=4.3.2

blade-engine-spine-plugin/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66

77
group = 'com.bladecoder.engine'
88

9-
// java
109
sourceCompatibility = 1.8
1110
targetCompatibility=1.8
1211
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
@@ -86,19 +85,20 @@ publishing {
8685
}
8786
repositories {
8887
maven {
89-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
90-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
88+
def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
89+
def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
9190
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
9291
credentials {
93-
username findProperty("sonatypeUsername")
94-
password findProperty("sonatypePassword")
92+
username project.hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : "$System.env.NEXUS_USERNAME"
93+
password project.hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : "$System.env.NEXUS_PASSWORD"
9594
}
9695
}
9796
}
9897
}
9998

10099
signing {
101100
if(!version.endsWith('SNAPSHOT')) {
101+
useGpgCmd()
102102
sign publishing.publications.mavenJava
103103
}
104104
}

blade-engine/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ plugins {
66

77
group = 'com.bladecoder.engine'
88

9-
// java
109
sourceCompatibility=1.8
1110
targetCompatibility=1.8
1211

@@ -96,19 +95,20 @@ publishing {
9695
}
9796
repositories {
9897
maven {
99-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
100-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
98+
def releasesRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
99+
def snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
101100
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
102101
credentials {
103-
username findProperty("sonatypeUsername")
104-
password findProperty("sonatypePassword")
102+
username project.hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : "$System.env.NEXUS_USERNAME"
103+
password project.hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : "$System.env.NEXUS_PASSWORD"
105104
}
106105
}
107106
}
108107
}
109108

110109
signing {
111110
if(!version.endsWith('SNAPSHOT')) {
111+
useGpgCmd()
112112
sign publishing.publications.mavenJava
113113
}
114114
}

blade-engine/src/com/bladecoder/engine/model/MusicManager.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ private void loadTask() {
129129
}
130130

131131
public void setVolume(float volume) {
132+
if(volume < 0f)
133+
volume = 0;
134+
132135
if (desc != null)
133136
desc.setVolume(volume);
134137

blade-engine/src/com/bladecoder/engine/util/DPIUtils.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.bladecoder.engine.util;
22

3+
import com.badlogic.gdx.Application;
34
import com.badlogic.gdx.Gdx;
45

56
public class DPIUtils {
@@ -107,8 +108,10 @@ public static float getSpacing() {
107108
// }
108109

109110
public static float getSizeMultiplier() {
110-
float inches = pixelsToInches(Gdx.graphics.getWidth());
111-
float s = inches / 6f;
111+
// FIX: In Wayland, the Gdx.graphics.getWidth() does not return the correct value in the first call.
112+
int width = Gdx.graphics.isFullscreen() && Gdx.app.getType() == Application.ApplicationType.Desktop ? Gdx.graphics.getDisplayMode().width : Gdx.graphics.getWidth();
113+
float inches = pixelsToInches(width);
114+
float s = inches / 6f;
112115

113116
return Math.max(1.0f, s);
114117

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
version=4.3.1
2-
libgdxVersion=1.12.1
1+
version=4.3.2
2+
libgdxVersion=1.13.1
33
roboVMVersion=2.3.20
44
androidAPILevel=33
55
androidGradlePluginVersion=8.1.0
66
bladeInkVersion=1.1.2
7-
gdxControllersVersion=2.2.3
7+
gdxControllersVersion=2.2.4
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)