mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 04:05:06 -04:00
Build 29074010
This commit is contained in:
parent
613b7cce58
commit
7e8643ceed
9 changed files with 20 additions and 14 deletions
|
@ -29,8 +29,8 @@ android {
|
||||||
applicationId = "me.lecaro.breakout"
|
applicationId = "me.lecaro.breakout"
|
||||||
minSdk = 21
|
minSdk = 21
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 29073274
|
versionCode = 29074010
|
||||||
versionName = "29073274"
|
versionName = "29074010"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables {
|
vectorDrawables {
|
||||||
useSupportLibrary = true
|
useSupportLibrary = true
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -139,6 +139,7 @@ class MainActivity : android.app.Activity() {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
override fun onShowFileChooser(
|
override fun onShowFileChooser(
|
||||||
webView: WebView?,
|
webView: WebView?,
|
||||||
filePathCallback: ValueCallback<Array<Uri>>?,
|
filePathCallback: ValueCallback<Array<Uri>>?,
|
||||||
|
|
6
build.sh
6
build.sh
|
@ -53,10 +53,4 @@ cp public/* build
|
||||||
# Add only index.html file to the apk, it should be enough
|
# Add only index.html file to the apk, it should be enough
|
||||||
cp build/index.html ./app/src/main/assets/
|
cp build/index.html ./app/src/main/assets/
|
||||||
|
|
||||||
# generate signed apk for itch.io
|
|
||||||
./gradlew assembleRelease
|
|
||||||
|
|
||||||
# generate signed bundle for play store
|
|
||||||
./gradlew bundleRelease
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,14 @@ versionCode=$(($(date +%s) / 60))
|
||||||
|
|
||||||
bash ./build.sh $versionCode
|
bash ./build.sh $versionCode
|
||||||
|
|
||||||
|
|
||||||
|
# generate signed apk for itch.io
|
||||||
|
./gradlew assembleRelease
|
||||||
|
|
||||||
|
# generate signed bundle for play store
|
||||||
|
./gradlew bundleRelease
|
||||||
|
|
||||||
|
|
||||||
# Create a release commit
|
# Create a release commit
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Build $versionCode"
|
git commit -m "Build $versionCode"
|
||||||
|
|
4
dist/index.html
vendored
4
dist/index.html
vendored
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
// The version of the cache.
|
// The version of the cache.
|
||||||
const VERSION = "29073274";
|
const VERSION = "29074010";
|
||||||
|
|
||||||
// The name of the cache
|
// The name of the cache
|
||||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
"29073274"
|
"29074010"
|
||||||
|
|
|
@ -221,7 +221,10 @@ window.addEventListener("fullscreenchange", () => fitSize(gameState));
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
// Sometimes, the page changes size without triggering the event (when switching to fullscreen, closing debug panel...)
|
// Sometimes, the page changes size without triggering the event (when switching to fullscreen, closing debug panel...)
|
||||||
const { width, height } = gameCanvas.getBoundingClientRect();
|
|
||||||
|
const width = window.innerWidth,
|
||||||
|
height = window.innerHeight;
|
||||||
|
|
||||||
if (width !== gameState.canvasWidth || height !== gameState.canvasHeight)
|
if (width !== gameState.canvasWidth || height !== gameState.canvasHeight)
|
||||||
fitSize(gameState);
|
fitSize(gameState);
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue