Skip to content

Commit

Permalink
fix: build mode when using a flutter flavor (#51)
Browse files Browse the repository at this point in the history
plugin.gradle: Use variant.buildType.name instead of variant.name.
The latter is equal to flavor + buildMode while the former is just
buildMode

It fixes this issue
fzyzcjy/flutter_rust_bridge#1606
  • Loading branch information
pixelshot91 authored Jan 10, 2024
1 parent c6d46d4 commit b063595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/plugin.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class CargoKitPlugin implements Plugin<Project> {
}

def task = project.tasks.create(taskName, CargoKitBuildTask.class) {
buildMode = variant.name
buildMode = variant.buildType.name
buildDir = cargoBuildDir
outputDir = cargoOutputDir
ndkVersion = plugin.project.android.ndkVersion
Expand Down

0 comments on commit b063595

Please sign in to comment.