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"
|
||||
minSdk = 21
|
||||
targetSdk = 34
|
||||
versionCode = 29073274
|
||||
versionName = "29073274"
|
||||
versionCode = 29074010
|
||||
versionName = "29074010"
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -139,6 +139,7 @@ class MainActivity : android.app.Activity() {
|
|||
return true
|
||||
}
|
||||
|
||||
|
||||
override fun onShowFileChooser(
|
||||
webView: WebView?,
|
||||
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
|
||||
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
|
||||
|
||||
|
||||
# generate signed apk for itch.io
|
||||
./gradlew assembleRelease
|
||||
|
||||
# generate signed bundle for play store
|
||||
./gradlew bundleRelease
|
||||
|
||||
|
||||
# Create a release commit
|
||||
git add .
|
||||
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.
|
||||
const VERSION = "29073274";
|
||||
const VERSION = "29074010";
|
||||
|
||||
// The name of the cache
|
||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||
|
|
|
@ -1 +1 @@
|
|||
"29073274"
|
||||
"29074010"
|
||||
|
|
|
@ -221,7 +221,10 @@ window.addEventListener("fullscreenchange", () => fitSize(gameState));
|
|||
|
||||
setInterval(() => {
|
||||
// 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)
|
||||
fitSize(gameState);
|
||||
}, 1000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue