Skip to content

Commit

Permalink
Merge pull request #1 from joaomanaia/compose-multiplatform
Browse files Browse the repository at this point in the history
Compose multiplatform
  • Loading branch information
joaomanaia authored Jul 2, 2024
2 parents 9328b80 + 7cd9bea commit 075e8d7
Show file tree
Hide file tree
Showing 144 changed files with 2,018 additions and 1,034 deletions.
67 changes: 67 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Build CI

on:
workflow_dispatch:
push:
branches: [ "main" ]
paths-ignore:
- '**.md'
pull_request:
branches: [ "main" ]
paths-ignore:
- '**.md'

permissions:
contents: read
checks: write
pages: write
id-token: write

concurrency:
group: "build"
cancel-in-progress: false

env:
JAVA_VERSION: "17"
JAVA_DISTR: 'corretto'

jobs:
package-web:
name: "📦 Build Web"
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: ${{ env.JAVA_DISTR }}
java-version: ${{ env.JAVA_VERSION }}

- name: Setup gradle
uses: gradle/actions/setup-gradle@v3

- name: Build Web
run: ./gradlew wasmJsBrowserDistribution --stacktrace

- name: Upload Web artifacts
uses: actions/upload-pages-artifact@v3
with:
path: ./composeApp/build/dist/wasmJs/productionExecutable/

deploy-web:
name: "🚀 Deploy Web"
runs-on: ubuntu-latest
environment:
name: gh-pages
url: ${{ steps.deployment.outputs.page_url }}
needs:
- package-web
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,28 @@ local.properties
/app/release

.kotlin

**/build/
xcuserdata
!src/**/build/
.idea
captures
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcodeproj/xcshareddata/
!*.xcodeproj/project.xcworkspace/
!*.xcworkspace/contents.xcworkspacedata
**/xcshareddata/WorkspaceSettings.xcsettings

.idea/*
!.idea/copyright
# Keep the code styles.
!/.idea/codeStyles
/.idea/codeStyles/*
!/.idea/codeStyles/Project.xml
!/.idea/codeStyles/codeStyleConfig.xml
!.idea/runConfigurations/

kotlin-js-store

*.preferences_pb
3 changes: 3 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

94 changes: 0 additions & 94 deletions app/build.gradle.kts

This file was deleted.

18 changes: 0 additions & 18 deletions app/proguard-rules.pro

This file was deleted.

Binary file removed app/release/app-release.apk
Binary file not shown.
20 changes: 0 additions & 20 deletions app/release/output-metadata.json

This file was deleted.

Binary file removed app/src/main/ic_launcher-playstore.png
Binary file not shown.
7 changes: 0 additions & 7 deletions app/src/main/java/com/joaomanaia/game2048/Game2048App.kt

This file was deleted.

119 changes: 0 additions & 119 deletions app/src/main/java/com/joaomanaia/game2048/MainActivity.kt

This file was deleted.

This file was deleted.

Loading

0 comments on commit 075e8d7

Please sign in to comment.