Skip to content

Commit

Permalink
build: fix android build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
xfqwdsj committed Jan 20, 2024
1 parent 97dcc42 commit 222ee1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build-number.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# You should have received a copy of the GNU General Public License along
# with Fhraise. If not, see <https://www.gnu.org/licenses/>.
#
buildNumber=18
buildNumber=19
11 changes: 11 additions & 0 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
* with Fhraise. If not, see <https://www.gnu.org/licenses/>.
*/

import com.android.build.gradle.internal.lint.AndroidLintAnalysisTask
import com.android.build.gradle.internal.lint.LintModelWriterTask
import org.jetbrains.compose.ExperimentalComposeLibrary
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalDistributionDsl
Expand Down Expand Up @@ -222,3 +224,12 @@ compose.desktop {
compose.experimental {
web.application {}
}

// TODO: Workaround for https://github.com/JetBrains/compose-multiplatform/issues/4085, remove when fixed
tasks.withType<LintModelWriterTask> {
dependsOn("copyFontsToAndroidAssets")
}

tasks.withType<AndroidLintAnalysisTask> {
dependsOn("copyFontsToAndroidAssets")
}

0 comments on commit 222ee1c

Please sign in to comment.