|
| 1 | +module(name = "anvil-example") |
| 2 | + |
| 3 | +bazel_dep(name = "rules_android", version = "0.7.0") |
| 4 | +bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 5 | +bazel_dep(name = "rules_java", version = "8.9.0") |
| 6 | +bazel_dep(name = "rules_kotlin", version = "2.2.0") |
| 7 | +bazel_dep(name = "rules_jvm_external", version = "6.6") |
| 8 | + |
| 9 | +android_sdk_repository_extension = use_extension("@rules_android//rules/android_sdk_repository:rule.bzl", "android_sdk_repository_extension") |
| 10 | +use_repo(android_sdk_repository_extension, "androidsdk") |
| 11 | + |
| 12 | +register_toolchains("@androidsdk//:sdk-toolchain", "@androidsdk//:all") |
| 13 | + |
| 14 | +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 15 | +maven.install( |
| 16 | + name = "maven_rules_kotlin_example", |
| 17 | + aar_import_bzl_label = "@rules_android//rules:rules.bzl", |
| 18 | + artifacts = [ |
| 19 | + "com.google.dagger:dagger:2.50", |
| 20 | + "com.google.dagger:dagger-compiler:2.50", |
| 21 | + "com.google.dagger:dagger-producers:2.50", |
| 22 | + "com.squareup.anvil:compiler:2.4.9", |
| 23 | + "com.squareup.anvil:annotations:2.4.9", |
| 24 | + "androidx.activity:activity:1.0.0", |
| 25 | + "androidx.annotation:annotation:1.1.0", |
| 26 | + "androidx.appcompat:appcompat-resources:1.1.0", |
| 27 | + "androidx.appcompat:appcompat:1.1.0", |
| 28 | + "androidx.arch.core:core-common:2.1.0", |
| 29 | + "androidx.arch.core:core-runtime:2.0.0", |
| 30 | + "androidx.cardview:cardview:1.0.0", |
| 31 | + "androidx.collection:collection:1.1.0", |
| 32 | + "androidx.coordinatorlayout:coordinatorlayout:1.1.0", |
| 33 | + "androidx.core:core-ktx:1.3.0", |
| 34 | + "androidx.core:core:1.3.0", |
| 35 | + "androidx.cursoradapter:cursoradapter:1.0.0", |
| 36 | + "androidx.customview:customview:1.0.0", |
| 37 | + "androidx.drawerlayout:drawerlayout:1.0.0", |
| 38 | + "androidx.fragment:fragment:1.1.0", |
| 39 | + "androidx.interpolator:interpolator:1.0.0", |
| 40 | + "androidx.lifecycle:lifecycle-common:2.1.0", |
| 41 | + "androidx.lifecycle:lifecycle-livedata-core:2.0.0", |
| 42 | + "androidx.lifecycle:lifecycle-livedata:2.0.0", |
| 43 | + "androidx.lifecycle:lifecycle-runtime:2.1.0", |
| 44 | + "androidx.lifecycle:lifecycle-viewmodel:2.1.0", |
| 45 | + "androidx.loader:loader:1.0.0", |
| 46 | + "androidx.recyclerview:recyclerview:1.1.0", |
| 47 | + "androidx.savedstate:savedstate:1.0.0", |
| 48 | + "androidx.transition:transition:1.2.0", |
| 49 | + "androidx.vectordrawable:vectordrawable-animated:1.1.0", |
| 50 | + "androidx.vectordrawable:vectordrawable:1.1.0", |
| 51 | + "androidx.versionedparcelable:versionedparcelable:1.1.0", |
| 52 | + "androidx.viewpager2:viewpager2:1.0.0", |
| 53 | + "androidx.viewpager:viewpager:1.0.0", |
| 54 | + "com.google.android.material:material:1.1.0", |
| 55 | + "javax.inject:javax.inject:1", |
| 56 | + "junit:junit:4.13", |
| 57 | + "org.jetbrains.kotlin:kotlin-test:1.5.10", |
| 58 | + "com.google.truth:truth:1.0.1", |
| 59 | + "org.jetbrains:annotations:13.0", |
| 60 | + ], |
| 61 | + excluded_artifacts = [ |
| 62 | + "org.jetbrains.kotlin:kotlin-stdlib", |
| 63 | + "org.jetbrains.kotlin:kotlin-stdlib-jdk8", |
| 64 | + "org.jetbrains.kotlin:kotlin-stdlib-jdk7", |
| 65 | + "org.jetbrains.kotlin:kotlin-compiler-embeddable", |
| 66 | + "org.jetbrains.kotlin:kotlin-reflect", |
| 67 | + "org.jetbrains.kotlin:kotlin-script-runtime", |
| 68 | + ], |
| 69 | + repositories = [ |
| 70 | + "https://maven.google.com", |
| 71 | + "https://repo1.maven.org/maven2", |
| 72 | + ], |
| 73 | + use_starlark_android_rules = True, |
| 74 | +) |
| 75 | +use_repo(maven, "maven_rules_kotlin_example") |
0 commit comments