Skip to content

fix(android): Use cdvPluginPostBuildExtras instead of ext.postBuildExtras (CB-14163) #236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ to config.xml in order for the application to find previously stored files.
<merges target="cordova" />
<runs/>
</js-module>
<framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
</platform>

<!-- ios -->
Expand Down
4 changes: 2 additions & 2 deletions src/android/build-extras.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
specific language governing permissions and limitations
under the License.
*/
ext.postBuildExtras = {
cdvPluginPostBuildExtras.add({
def inAssetsDir = file("assets")
def outAssetsDir = inAssetsDir
def outFile = new File(outAssetsDir, "cdvasset.manifest")
Expand Down Expand Up @@ -44,4 +44,4 @@ ext.postBuildExtras = {
newTask.outputs.file outFile
def preBuildTask = tasks["preBuild"]
preBuildTask.dependsOn(newTask)
}
})