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

Fixes part of #59: Testing module builds with both Bazel + Gradle [BLOCKED: #1482] #1488

Merged
merged 142 commits into from
Aug 9, 2020
Merged
Show file tree
Hide file tree
Changes from 131 commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
d68f0a9
Working on having one module build with bazel
miaboloix Jun 29, 2020
3115352
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
miaboloix Jul 8, 2020
897bf6d
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
miaboloix Jul 16, 2020
37a13f8
Created initial app-level WORKSPACE file
miaboloix Jul 16, 2020
f522846
Added proto_library rule to build model app module
miaboloix Jul 16, 2020
372deae
Added newline at end of WORKSPACE file
miaboloix Jul 16, 2020
5c0b6f5
Created macro to process proto files
miaboloix Jul 17, 2020
9408e27
Both Bazel and Gradle now build /model successfully
miaboloix Jul 17, 2020
7d44fea
Fixed typo in BUILD
miaboloix Jul 17, 2020
5c44743
Added missing end of file empty lines
miaboloix Jul 17, 2020
0204754
Added Robolectric dependencies and general build rule
miaboloix Jul 17, 2020
cb11a09
Source files building in both systems - added a TODO for test files
miaboloix Jul 17, 2020
a8b989f
Turned two kt_android_library rules into one
miaboloix Jul 17, 2020
ad2cb36
Added dependencies for test files
miaboloix Jul 17, 2020
379990e
Created kt_android_library rule for source files
miaboloix Jul 17, 2020
6d9f244
Add TODO for android_local_test rule
miaboloix Jul 17, 2020
c45c72e
Added a test manifest for android_local_test()
miaboloix Jul 17, 2020
04d2281
Added Firebase dependencies and git_repository for tools_android
miaboloix Jul 17, 2020
f486024
Refactored google-services.json, imported new dependencies
miaboloix Jul 20, 2020
fa16eb4
Fixed Bens nits
miaboloix Jul 20, 2020
5d31b5c
Fixed space in WORKSPACE comment
miaboloix Jul 20, 2020
3f9ed65
Got a demo test working in both Java and Kotlin
miaboloix Jul 21, 2020
1c982a9
Added rules_java dependencies for protocol buffers
miaboloix Jul 21, 2020
a7346e1
Added java_proto_library rules, each proto file now has its own rule
miaboloix Jul 21, 2020
6fc021b
Remove unnecessary srcs attribute for android_library
miaboloix Jul 21, 2020
b3d55e8
Rename bzl file macro
miaboloix Jul 21, 2020
7030c83
Added Robolectric dependencies and general build rule
miaboloix Jul 17, 2020
7c35ecf
Source files building in both systems - added a TODO for test files
miaboloix Jul 17, 2020
dfd545a
Turned two kt_android_library rules into one
miaboloix Jul 17, 2020
866a00a
Added dependencies for test files
miaboloix Jul 17, 2020
c0a791a
Created kt_android_library rule for source files
miaboloix Jul 17, 2020
6975169
Add TODO for android_local_test rule
miaboloix Jul 17, 2020
e16ee96
Changed model visability, added model and util dependencies to testing
miaboloix Jul 21, 2020
11094d0
Added dependencies to testing_main_lib
miaboloix Jul 21, 2020
6a9058a
Testing source files now build
miaboloix Jul 21, 2020
12deabe
Test files are building
miaboloix Jul 21, 2020
a8fe758
Changed to java_lite
miaboloix Jul 21, 2020
3295c12
Fixed merge conflicts
miaboloix Jul 21, 2020
3f27b22
Added EOF newlines
miaboloix Jul 21, 2020
bb1b906
Each library now has its own build rule
miaboloix Jul 21, 2020
a1bd255
Merged with utility
miaboloix Jul 21, 2020
3c6b257
Utility is now one module again
miaboloix Jul 21, 2020
30a8ac2
Utility is now one rule
miaboloix Jul 21, 2020
a233e50
Merge branch 'stage1_bazel_utility' into stage1_bazel_testing
miaboloix Jul 21, 2020
4df473d
Resolved merge conflicts
miaboloix Jul 21, 2020
ef3e857
Changed visibility for utility_lib
miaboloix Jul 21, 2020
d107b07
Added duplicate google-services.json file to please Gradle
miaboloix Jul 21, 2020
560d2b9
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 21, 2020
d4d40c2
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
miaboloix Jul 22, 2020
94213cd
Changed event_logger.proto to oppia_logger.proto
miaboloix Jul 22, 2020
5aaf72f
Merge branch 'stage1_bazel' of https://github.com/oppia/oppia-android…
miaboloix Jul 22, 2020
b718dd1
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 22, 2020
24e8537
Added missing EOF newlines
miaboloix Jul 22, 2020
e1ce0d1
Fixed bug in import statements for exploration.proto, topic.proto, an…
miaboloix Jul 22, 2020
8f34cfe
Merge branch 'stage1_bazel' of https://github.com/oppia/oppia-android…
miaboloix Jul 22, 2020
1999cf1
Merged with stage1_bazel_utility
miaboloix Jul 22, 2020
23cd84a
Deleted DemoJava
miaboloix Jul 22, 2020
788bcf3
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 22, 2020
67fee18
CHanged rules_kotlin version
miaboloix Jul 23, 2020
48eb9be
Added Firebase dependencies
miaboloix Jul 24, 2020
31eb543
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 24, 2020
c466d3c
Removed AsyncResultTest example
miaboloix Jul 24, 2020
a5e9039
Removed AsynchResultTest example
miaboloix Jul 24, 2020
99d43f2
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 24, 2020
8d6b28f
Removed unnecessary comments in WORKSPACE and moved rules_kotlin
miaboloix Jul 27, 2020
d712b5e
Added re-naming TODOs
miaboloix Jul 27, 2020
3105144
Renamed java_proto rules java_proto_lite
miaboloix Jul 27, 2020
2f50207
Added doc comments to model/BUILD.bazel and format_import_proto_library
miaboloix Jul 27, 2020
323a0cb
Added comments to WORKSPACE file
miaboloix Jul 27, 2020
7ce51a9
Merge branch 'stage1_bazel' of https://github.com/oppia/oppia-android…
miaboloix Jul 27, 2020
d87c95c
Fixed nits
miaboloix Jul 27, 2020
20d2c5d
Added comment to kt_android_library() rule
miaboloix Jul 27, 2020
9857eaf
Fixed more nits
miaboloix Jul 27, 2020
1a35aad
Fixed merge conflicts
miaboloix Jul 27, 2020
522993f
Added Firebase comment
miaboloix Jul 27, 2020
f5abd8e
Fixed merge conflicts
miaboloix Jul 27, 2020
dfa8e0b
Fixed merge conflicts and nits
miaboloix Jul 27, 2020
9789204
Deleted unused dependencies from testing_main_lib
miaboloix Jul 27, 2020
364435d
Changed library name to model
miaboloix Jul 28, 2020
7e61655
Formatted WORKSPACE comment
miaboloix Jul 28, 2020
9773e66
Formatted TODO statement
miaboloix Jul 28, 2020
9fc0d53
Changed format_import_proto_library comment
miaboloix Jul 28, 2020
fdcb154
Added EOF newline
miaboloix Jul 28, 2020
8185bdd
Created Issue and linked TODO in WORKSPACE
miaboloix Jul 28, 2020
3d21d6f
Edited model BUILD file top comment
miaboloix Jul 28, 2020
8e368b4
Addressed nits
miaboloix Jul 28, 2020
29f19dd
Fixed merge conflicts
miaboloix Jul 28, 2020
af7832b
Fixed nits and added comments
miaboloix Jul 28, 2020
8fb1541
Fixing nits
miaboloix Jul 28, 2020
2b9d7c6
Deleted unnecessary dependencies and testing example file
miaboloix Jul 28, 2020
980ca88
Fixed manifest issues
miaboloix Jul 28, 2020
a63ad7f
Move google json file
miaboloix Jul 28, 2020
fff3d89
Restore app version of json
miaboloix Jul 28, 2020
54a7728
Merge branch 'test-git-copy' into stage1_bazel_utility
miaboloix Jul 28, 2020
c7cad13
Edit TODO
miaboloix Jul 28, 2020
654328e
Deleted TODO
miaboloix Jul 28, 2020
a842aec
Changed Firebase comment
miaboloix Jul 28, 2020
146f48a
Fixed merge conflicts
miaboloix Jul 28, 2020
9360972
Added testing functionality from later PR
miaboloix Jul 29, 2020
705d195
Added comments to bzl files
miaboloix Jul 29, 2020
2b7be73
Added targetSDK to manifests
miaboloix Jul 29, 2020
0621744
Changed crashlytics_lib to crashlytics
miaboloix Jul 29, 2020
54ec7fb
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 29, 2020
af931e9
Changed testing_tests visibility
miaboloix Jul 29, 2020
0b9c14a
Changed type of comment ticks
miaboloix Jul 29, 2020
32ce87a
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
miaboloix Jul 29, 2020
65f13c1
Fixed nits and added TODOs
miaboloix Jul 29, 2020
b6dd154
Merge branch 'stage1_bazel' of https://github.com/oppia/oppia-android…
miaboloix Jul 29, 2020
a4ec778
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 29, 2020
f466e8f
Added Args to document comment
miaboloix Jul 29, 2020
3638d43
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
miaboloix Jul 30, 2020
58752b4
Changed targetSDK to 29
miaboloix Jul 30, 2020
705355c
Merge branch 'stage1_bazel' of https://github.com/oppia/oppia-android…
miaboloix Jul 30, 2020
d152713
Formatted TODO
miaboloix Jul 30, 2020
fb515ec
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Jul 30, 2020
74e4e52
Moved google-services.json
miaboloix Jul 30, 2020
0c9d197
Added gogle-services.json back to app
miaboloix Jul 30, 2020
72e0acd
Trying to remove combined testing library
miaboloix Jul 31, 2020
0aa646d
Changed targetSDK to 29
miaboloix Aug 3, 2020
7660d7d
Tests pass now with deps passed in.
miaboloix Aug 3, 2020
8aa8c59
Created TEST_DEPS list to avoid duplicate list of dependencies
miaboloix Aug 3, 2020
d4f53c4
Removed unused resources and manifest
miaboloix Aug 3, 2020
a275d9c
Updated comments to reflect changes
miaboloix Aug 3, 2020
297cfa1
Updated comment for testing_test
miaboloix Aug 3, 2020
51bcc06
Formatted dependencies and removed unused dependency
miaboloix Aug 3, 2020
ab8ea0b
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Aug 3, 2020
fd4386f
Updated dependency list
miaboloix Aug 3, 2020
0d1bd33
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Aug 3, 2020
33d8e2a
Header for oppia_android_test now fits on one line
miaboloix Aug 3, 2020
1294d08
Edited documentation for oppia_android_test
miaboloix Aug 3, 2020
b0637dc
Updated documentation for utility and testing BUILD files
miaboloix Aug 3, 2020
122f451
Changed src to srcs
miaboloix Aug 3, 2020
84e5051
Fixed the duplicate google-services.json issue
miaboloix Aug 6, 2020
3c0932d
Created Issue and added TODO
miaboloix Aug 6, 2020
b5b20f9
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
miaboloix Aug 6, 2020
714ffa2
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Aug 6, 2020
62a2fa7
Added minSDK back
miaboloix Aug 6, 2020
8eac40c
Alphabetized dependencies
miaboloix Aug 6, 2020
a1843d2
Changed targetSdk to 28
miaboloix Aug 7, 2020
0cf3415
Merge branch 'develop' into stage1_bazel_utility
miaboloix Aug 9, 2020
5f90f7b
Merge branch 'stage1_bazel_utility' of https://github.com/oppia/oppia…
miaboloix Aug 9, 2020
44236da
Merge branch 'develop' of https://github.com/oppia/oppia-android into…
miaboloix Aug 9, 2020
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
Empty file added BUILD.bazel
Empty file.
140 changes: 140 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
'''
This file lists and imports all external dependencies needed to build Oppia Android.
'''

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

# Android SDK configuration. For more details, see:
# https://docs.bazel.build/versions/master/be/android.html#android_sdk_repository
# TODO(#1542): Sync Android SDK version with the manifest.
android_sdk_repository(
name = "androidsdk",
api_level = 28,
)

# Add support for JVM rules: https://github.com/bazelbuild/rules_jvm_external
RULES_JVM_EXTERNAL_TAG = "2.9"
RULES_JVM_EXTERNAL_SHA = "e5b97a31a3e8feed91636f42e19b11c49487b85e5de2f387c999ea14d77c7f45"
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
)

# Add support for Kotlin: https://github.com/bazelbuild/rules_kotlin.
RULES_KOTLIN_VERSION = "legacy-1.4.0-rcx-oppia-exclusive-rc01"
RULES_KOTLIN_SHA = "600f3d916eda5531dd70614ec96dc92b4ac24da0e1d815eb94559976e9bea8aa"
http_archive(
name = "io_bazel_rules_kotlin",
urls = ["https://github.com/oppia/rules_kotlin/archive/%s.zip" % RULES_KOTLIN_VERSION],
type = "zip",
strip_prefix = "rules_kotlin-%s" % RULES_KOTLIN_VERSION,
sha256 = RULES_KOTLIN_SHA,
)

# TODO(#1535): Remove once rules_kotlin is released because these lines become unnecessary
load("@io_bazel_rules_kotlin//kotlin:dependencies.bzl", "kt_download_local_dev_dependencies")
kt_download_local_dev_dependencies()

load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories()
kt_register_toolchains()

# rules_proto defines abstract rules for building Protocol Buffers.
http_archive(
name = "rules_proto",
sha256 = "2490dca4f249b8a9a3ab07bd1ba6eca085aaf8e45a734af92aad0c42d9dc7aaf",
strip_prefix = "rules_proto-218ffa7dfa5408492dc86c01ee637614f8695c45",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/218ffa7dfa5408492dc86c01ee637614f8695c45.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/218ffa7dfa5408492dc86c01ee637614f8695c45.tar.gz",
],
)

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()

# rules_java defines rules for generating Java code from Protocol Buffers.
http_archive(
name = "rules_java",
sha256 = "ccf00372878d141f7d5568cedc4c42ad4811ba367ea3e26bc7c43445bbc52895",
strip_prefix = "rules_java-d7bf804c8731edd232cb061cb2a9fe003a85d8ee",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/d7bf804c8731edd232cb061cb2a9fe003a85d8ee.tar.gz",
"https://github.com/bazelbuild/rules_java/archive/d7bf804c8731edd232cb061cb2a9fe003a85d8ee.tar.gz",
],
)

load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
rules_java_dependencies()
rules_java_toolchains()

# Add support for Dagger
DAGGER_TAG = "2.28.1"
DAGGER_SHA = "9e69ab2f9a47e0f74e71fe49098bea908c528aa02fa0c5995334447b310d0cdd"
http_archive(
name = "dagger",
strip_prefix = "dagger-dagger-%s" % DAGGER_TAG,
sha256 = DAGGER_SHA,
urls = ["https://github.com/google/dagger/archive/dagger-%s.zip" % DAGGER_TAG],
)

load("@dagger//:workspace_defs.bzl", "DAGGER_ARTIFACTS", "DAGGER_REPOSITORIES")

# Add support for Robolectric: https://github.com/robolectric/robolectric-bazel
http_archive(
name = "robolectric",
urls = ["https://github.com/oppia/robolectric-bazel/archive/4.x-oppia-exclusive-rc02.tar.gz"],
strip_prefix = "robolectric-bazel-4.x-oppia-exclusive-rc02",
)
load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories")
robolectric_repositories()

# Add support for Firebase Crashlytics
git_repository(
name = "tools_android",
commit = "00e6f4b7bdd75911e33c618a9bc57bab7a6e8930",
remote = "https://github.com/bazelbuild/tools_android",
)

load("@tools_android//tools/googleservices:defs.bzl", "google_services_workspace_dependencies")
google_services_workspace_dependencies()

load("@rules_jvm_external//:defs.bzl", "maven_install")

maven_install(
artifacts = DAGGER_ARTIFACTS + [
"org.robolectric:robolectric:4.3",
"org.robolectric:annotations:4.3",
"androidx.appcompat:appcompat:1.0.2",
"androidx.annotation:annotation:1.1.0",
"androidx.core:core-ktx:1.0.1",
"androidx.lifecycle:lifecycle-livedata-ktx:2.2.0-alpha03",
"androidx.test.ext:junit:1.1.1",
"com.android.support:support-annotations:28.0.0",
"org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.2",
"org.jetbrains.kotlinx:kotlinx-coroutines-test:1.2.2",
"org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.3.72",
"org.jetbrains.kotlin:kotlin-test-junit:1.3.72",
"com.google.truth:truth:0.43",
"com.google.firebase:firebase-analytics:17.4.4",
"com.google.firebase:firebase-crashlytics:17.1.1",
"com.crashlytics.sdk.android:crashlytics:2.9.8",
"io.fabric.sdk.android:fabric:1.4.7",
BenHenning marked this conversation as resolved.
Show resolved Hide resolved
"com.github.bumptech.glide:glide:4.11.0",
"com.caverock:androidsvg-aar:1.4",
"org.mockito:mockito-core:2.19.0",
"junit:junit:4.12",
],
repositories = DAGGER_REPOSITORIES + [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
"https://jcenter.bintray.com/",
"https://bintray.com/bintray/jcenter",
"https://maven.fabric.io/public",
],
)
35 changes: 35 additions & 0 deletions firebase/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# TODO(#1532): Rename file to 'BUILD' post-Gradle.
'''
Package for all Firebase dependencies.
To reference these dependencies, add '//firebase:crashlytics' and '//firebase:crashlytics_deps'
to your build rule's dependency list.
'''

load("@rules_jvm_external//:defs.bzl", "artifact")
load("@dagger//:workspace_defs.bzl", "dagger_rules")
load("@tools_android//tools/crashlytics:defs.bzl", "crashlytics_android_library")
load("@tools_android//tools/googleservices:defs.bzl", "google_services_xml")

package(default_visibility = ["//visibility:public"])

GOOGLE_SERVICES_RESOURCES = google_services_xml(
package_name = "org.oppia.app",
google_services_json = "google-services.json",
)

crashlytics_android_library(
name = "crashlytics",
package_name = "org.oppia.app",
build_id = "48fc9d17-e102-444c-8e0d-638d75ec0942",
resource_files = GOOGLE_SERVICES_RESOURCES,
)

android_library(
name = "crashlytics_deps",
exports = [
artifact("com.crashlytics.sdk.android:crashlytics"),
artifact("io.fabric.sdk.android:fabric"),
artifact("com.google.firebase:firebase-analytics"),
artifact("com.google.firebase:firebase-crashlytics"),
],
)
40 changes: 40 additions & 0 deletions firebase/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"project_info": {
"project_number": "215533462679",
"firebase_url": "https://oppia-android-dev.firebaseio.com",
"project_id": "oppia-android-dev",
"storage_bucket": "oppia-android-dev.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:215533462679:android:a25a70347460cd014035d2",
"android_client_info": {
"package_name": "org.oppia.app"
}
},
"oauth_client": [
{
"client_id": "215533462679-rjdq4c32s9mh9ouq0vlmo80u83a7kjdr.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyCI5yOe1vF9g_e3tcIQb64C5i64AUNT1fc"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "215533462679-rjdq4c32s9mh9ouq0vlmo80u83a7kjdr.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
],
"configuration_version": "1"
}
166 changes: 166 additions & 0 deletions model/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
# TODO(#1532): Rename file to 'BUILD' post-Gradle.
'''
This library contains all protos used in the app and is a dependency for all other modules.
In Bazel, proto files are built using the proto_library() and java_lite_proto_library() rules.
The proto_library() rule creates a proto file library to be used in multiple languages.
The java_lite_proto_library() rule takes in a proto_library target and generates java code.
'''

load("@rules_proto//proto:defs.bzl", "proto_library")
load("@rules_java//java:defs.bzl", "java_lite_proto_library")
load("//model:src/main/proto/format_import_proto_library.bzl", "format_import_proto_library")

proto_library(
name = "event_logger_proto",
srcs = ["src/main/proto/oppia_logger.proto"],
)

java_lite_proto_library(
name = "event_logger_java_proto_lite",
deps = [":event_logger_proto"],
)

proto_library(
name = "example_proto",
srcs = ["src/main/proto/example.proto"],
)

java_lite_proto_library(
name = "example_java_proto_lite",
deps = [":example_proto"],
)

proto_library(
name = "interaction_object_proto",
srcs = ["src/main/proto/interaction_object.proto"],
)

java_lite_proto_library(
name = "interaction_object_java_proto_lite",
deps = [":interaction_object_proto"],
)

proto_library(
name = "onboarding_proto",
srcs = ["src/main/proto/onboarding.proto"],
)

java_lite_proto_library(
name = "onboarding_java_proto_lite",
deps = [":onboarding_proto"],
)

proto_library(
name = "profile_proto",
srcs = ["src/main/proto/profile.proto"],
)

java_lite_proto_library(
name = "profile_java_proto_lite",
deps = [":profile_proto"],
)

proto_library(
name = "subtitled_html_proto",
srcs = ["src/main/proto/subtitled_html.proto"],
)

java_lite_proto_library(
name = "subtitled_html_java_proto_lite",
deps = [":subtitled_html_proto"],
)

proto_library(
name = "thumbnail_proto",
srcs = ["src/main/proto/thumbnail.proto"],
)

java_lite_proto_library(
name = "thumbnail_java_proto_lite",
deps = [":thumbnail_proto"],
)

proto_library(
name = "translation_proto",
srcs = ["src/main/proto/translation.proto"],
)

java_lite_proto_library(
name = "translation_java_proto_lite",
deps = [":translation_proto"],
)

proto_library(
name = "voiceover_proto",
srcs = ["src/main/proto/voiceover.proto"],
)

java_lite_proto_library(
name = "voiceover_java_proto_lite",
deps = [":voiceover_proto"],
)

format_import_proto_library(
name = "question",
src = "src/main/proto/question.proto",
deps = [
":exploration_proto",
":subtitled_html_proto",
],
)

java_lite_proto_library(
name = "question_java_proto_lite",
deps = [":question_proto"],
)

format_import_proto_library(
name = "topic",
src = "src/main/proto/topic.proto",
deps = [
":subtitled_html_proto",
":thumbnail_proto",
":translation_proto",
":voiceover_proto",
],
)

java_lite_proto_library(
name = "topic_java_proto_lite",
deps = [":topic_proto"],
)

format_import_proto_library(
name = "exploration",
src = "src/main/proto/exploration.proto",
deps = [
":subtitled_html_proto",
":interaction_object_proto",
":translation_proto",
":voiceover_proto",
],
)

java_lite_proto_library(
name = "exploration_java_proto_lite",
deps = [":exploration_proto"],
)

android_library(
name = "model",
exports = [
":event_logger_java_proto_lite",
":example_java_proto_lite",
":interaction_object_java_proto_lite",
":onboarding_java_proto_lite",
":profile_java_proto_lite",
":subtitled_html_java_proto_lite",
":thumbnail_java_proto_lite",
":translation_java_proto_lite",
":voiceover_java_proto_lite",
":exploration_java_proto_lite",
":question_java_proto_lite",
":topic_java_proto_lite",
],
visibility = ["//visibility:public"],
)
Loading