Skip to content
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

feat: Use Filament as a native dependency instead of shipping the submodule #14

Open
wants to merge 2 commits into
base: main
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion filament
Submodule filament deleted from 5d9337
26 changes: 26 additions & 0 deletions package/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,35 @@ task deleteCmakeCache() {
}
}

task extractFilament(type: Copy) {
// Define the AAR file as an input
def filamentAar = configurations.compileClasspath.filter { it.name.contains("filament-android") }.singleFile
inputs.file(filamentAar)

// Define the output directory
def outputDir = file("$buildDir/filament")
outputs.dir(outputDir)

from zipTree(filamentAar)
into outputDir

include "jni/**/*"
include "libs/**/*.so"

doFirst {
println "Extracting Filament AAR..."
}
doLast {
println "Extraction complete."
}
}

tasks.configureEach { task ->
// C++ clean
if (task.name.contains("clean")) {
task.dependsOn(deleteCmakeCache)
}
if (task.name.startsWith('externalNativeBuild')) {
task.dependsOn(extractFilament)
}
}
202 changes: 0 additions & 202 deletions package/android/libs/filament/LICENSE

This file was deleted.

Loading