Skip to content

Commit

Permalink
Merge pull request #21 from android/yaraki/ci
Browse files Browse the repository at this point in the history
Enable GitHub Actions
  • Loading branch information
SigmanZero authored Feb 14, 2024
2 parents 02bbded + 6cfabfc commit 6c59a22
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Pull Request

on:
pull_request:
types: [ opened, synchronize, reopened ]

permissions:
contents: write
actions: read

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v2

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17

- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Check spotless
run: ./gradlew spotlessCheck

- name: Build App
run: ./gradlew :app:assembleDebug
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea/deploymentTargetDropDown.xml
/.idea/deploymentTargetSelector.xml
/.idea/misc.xml
/.idea/migrations.xml
/.idea/gradle.xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
Expand Down Expand Up @@ -55,9 +54,7 @@ fun Main(
) {
val modifier = Modifier.fillMaxSize()
SocialTheme {
Surface(modifier = modifier) {
MainNavigation(modifier, shortcutParams)
}
MainNavigation(modifier, shortcutParams)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ fun Home(
onDestinationChanged = { destination = it },
)
},
containerColor = Color.Transparent,
) { innerPadding ->
val navController = rememberNavController()
HomeBackground(modifier = Modifier.fillMaxSize())
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[versions]
accompanist = "0.32.0"
activity = "1.9.0-alpha01"
agp = "8.2.1"
agp = "8.2.2"
benchmarkMacroJunit4 = "1.2.2"
baselineprofile = "1.2.2"
camera = "1.3.1"
Expand Down

0 comments on commit 6c59a22

Please sign in to comment.