Skip to content

Commit f626c1a

Browse files
Compile plugins during native:package builds (#22)
PackageCommand::buildAndroid() was missing the compileAndroidPlugins() call that RunCommand uses via runAndroid(). This meant plugin bridge functions (like SecureStorage) were never registered in Bifrost/release builds, causing nativephp_call() to return null for all plugin methods.
1 parent 8ed9a70 commit f626c1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Commands/PackageCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ protected function buildAndroid(): void
157157
$this->prepareAndroidBuild();
158158
}
159159

160+
if (! $this->compileAndroidPlugins()) {
161+
return;
162+
}
163+
160164
// Build with signing
161165
$gradleTask = $this->buildType === 'bundle' ? 'bundleRelease' : 'assembleRelease';
162166

0 commit comments

Comments
 (0)