Skip to content

Commit 2075fc7

Browse files
allisonbm92schmidt-sebastian
authored andcommitted
Migrate ExperimentPayload to AB Testing (#563)
* Migrate ExperimentPayload to AB Testing * Add issue link. * Export proto definition.
1 parent afc4382 commit 2075fc7

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

firebase-abt/firebase-abt.gradle

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,50 @@
1414

1515
plugins {
1616
id 'firebase-library'
17+
id 'com.google.protobuf'
1718
}
1819

1920
firebaseLibrary {
2021
testLab.enabled = false
2122
publishSources = true
2223
}
2324

25+
// TODO(issue/568): Remove this once legacy logic is removed from Remote Config.
26+
protobuf {
27+
protoc {
28+
artifact = 'com.google.protobuf:protoc:3.4.0'
29+
}
30+
plugins {
31+
javalite {
32+
artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
33+
}
34+
}
35+
generateProtoTasks {
36+
all().each { task ->
37+
task.builtins {
38+
remove java
39+
}
40+
task.plugins {
41+
javalite {}
42+
}
43+
}
44+
}
45+
}
46+
2447
android {
2548

2649
lintOptions {
2750
abortOnError false
2851
}
2952
sourceSets {
3053
main {
31-
java {
32-
}
33-
}
34-
test {
35-
java {
54+
proto {
55+
srcDir 'src/proto'
3656
}
57+
58+
resources {
59+
srcDir 'src/proto/com/google/protos'
60+
}
3761
}
3862
}
3963

@@ -61,6 +85,7 @@ dependencies {
6185
implementation ('com.google.firebase:firebase-measurement-connector:18.0.0') {
6286
exclude group: "com.google.firebase", module: "firebase-common"
6387
}
88+
implementation 'com.google.protobuf:protobuf-lite:3.0.1'
6489
testImplementation 'org.mockito:mockito-core:2.25.0'
6590
testImplementation 'com.google.truth:truth:0.44'
6691
testImplementation 'junit:junit:4.13-beta-2'

firebase-config/firebase-config.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ protobuf {
5050
}
5151
}
5252

53-
firebaseLibrary {
54-
testLab.enabled = true
55-
publishSources = true
56-
}
57-
5853
android {
5954
compileSdkVersion project.targetSdkVersion
6055
defaultConfig {

0 commit comments

Comments
 (0)