Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ooni/probe-multiplatform into chore…
Browse files Browse the repository at this point in the history
…/flavor-update
  • Loading branch information
aanorbel committed Jul 30, 2024
2 parents df0def3 + bb13929 commit c5ff1da
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Validate
on:
push:
branches:
- master
- main
pull_request:

jobs:
Expand All @@ -21,7 +21,7 @@ jobs:
uses: ./.github/actions/setup

- name: Build Android
run: ./gradlew assemble${{ matrix.type }}
run: ./gradlew clean assemble${{ matrix.type }}

- name: Build iOS
run: ./gradlew link${{ matrix.type }}FrameworkIosSimulatorArm64
Expand All @@ -38,7 +38,7 @@ jobs:
uses: ./.github/actions/setup

- name: Run lint
run: ./gradlew lint
run: ./gradlew clean lint

- name: Uploads test reports
uses: actions/upload-artifact@v4
Expand All @@ -59,7 +59,7 @@ jobs:
uses: ./.github/actions/setup

- name: Run lint
run: ./gradlew ktlintCheck
run: ./gradlew clean ktlintCheck

- name: Uploads test reports
uses: actions/upload-artifact@v4
Expand Down
12 changes: 10 additions & 2 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ android {
android {
lint {
warningsAsErrors = true
disable += "AndroidGradlePluginVersion"
disable += listOf("AndroidGradlePluginVersion", "ObsoleteLintCustomCheck")
}
}
}
Expand Down Expand Up @@ -195,6 +195,10 @@ tasks.named("preBuild").configure {
dependsOn("copyCommonResourcesToFlavor")
}

tasks.named("clean").configure {
dependsOn("copyCommonResourcesToFlavor")
}

tasks.named("clean").configure {
dependsOn("cleanCopiedCommonResourcesToFlavor")
}
Expand Down Expand Up @@ -273,7 +277,11 @@ fun copyRecursive(
tasks.register("runDebug", Exec::class) {
dependsOn("clean", "uninstallDebug", "installDebug")
commandLine(
"adb", "shell", "am", "start", "-n",
"adb",
"shell",
"am",
"start",
"-n",
"${config.appId}.debug/org.ooni.probe.MainActivity",
)
}

0 comments on commit c5ff1da

Please sign in to comment.