Skip to content

Commit

Permalink
Migrate StarboardBridge to Chromium standard JNI
Browse files Browse the repository at this point in the history
b/372559388
  • Loading branch information
haozheng-cobalt committed Dec 17, 2024
1 parent cc55e87 commit 4f85854
Show file tree
Hide file tree
Showing 8 changed files with 225 additions and 76 deletions.
9 changes: 9 additions & 0 deletions cobalt/android/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,21 @@ jinja_template("cobalt_manifest") {
variables = [ "manifest_package=dev.cobalt.coat" ]
}

generate_jni("jni_headers") {
sources = [ "apk/app/src/main/java/dev/cobalt/coat/StarboardBridge.java" ]
}

# TODO(cobalt): Re-enable or remove disabled java files.
android_library("cobalt_apk_java") {
testonly = true
resources_package = "dev.cobalt.coat"
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]

deps = [
":cobalt_java_resources",
":jni_headers",
"//base:base_java",
"//base:jni_java",
"//base:process_launcher_java",
"//build/android:build_java",
"//components/embedder_support/android:view_java",
Expand All @@ -56,6 +64,7 @@ android_library("cobalt_apk_java") {
"//ui/android:ui_no_recycler_view_java",
"//url:gurl_java",
]

sources = [
"apk/app/src/app/java/dev/cobalt/app/CobaltApplication.java",
"apk/app/src/app/java/dev/cobalt/app/MainActivity.java",
Expand Down
Loading

0 comments on commit 4f85854

Please sign in to comment.