Skip to content

Commit d60bb85

Browse files
Merge branch 'master' into mrschmidt/querywithoutproto
2 parents c76f65a + 895fa7b commit d60bb85

File tree

124 files changed

+15566
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+15566
-170
lines changed

.idea/runConfigurations/FirestoreProdIntegrationTest.xml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Firestore_Integration_Tests.xml renamed to .idea/runConfigurations/Firestore_Integration_Tests__Firestore_Emulator_.xml

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ This repository contains a subset of the Firebase Android SDK source. It
44
currently includes the following Firebase libraries, and some of their
55
dependencies:
66

7+
* `firebase-abt`
78
* `firebase-common`
9+
* `firebase-common-ktx`
810
* `firebase-database`
9-
* `firebase-functions`
11+
* `firebase-database-collection`
12+
* `firebase-datatransport`
1013
* `firebase-firestore`
11-
* `firebase-storage`
14+
* `firebase-firestore-ktx`
15+
* `firebase-functions`
16+
* `firebase-functions-ktx`
1217
* `firebase-inappmessaging-display`
18+
* `firebase-remote-config`
19+
* `firebase-storage`
1320

1421

1522
Firebase is an app development platform with tools to help you build, grow and

firebase-abt/firebase-abt.gradle

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// Copyright 2018 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
plugins {
16+
id 'firebase-library'
17+
}
18+
19+
firebaseLibrary {
20+
testLab.enabled = false
21+
publishSources = true
22+
}
23+
24+
android {
25+
26+
lintOptions {
27+
abortOnError false
28+
}
29+
sourceSets {
30+
main {
31+
java {
32+
}
33+
}
34+
test {
35+
java {
36+
}
37+
}
38+
}
39+
40+
compileSdkVersion project.targetSdkVersion
41+
defaultConfig {
42+
minSdkVersion project.minSdkVersion
43+
targetSdkVersion project.targetSdkVersion
44+
versionName version
45+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
46+
}
47+
compileOptions {
48+
sourceCompatibility JavaVersion.VERSION_1_8
49+
targetCompatibility JavaVersion.VERSION_1_8
50+
}
51+
testOptions {
52+
unitTests {
53+
includeAndroidResources = true
54+
}
55+
}
56+
}
57+
58+
dependencies {
59+
implementation project(':firebase-common')
60+
implementation project(':protolite-well-known-types')
61+
implementation ('com.google.firebase:firebase-measurement-connector:18.0.0') {
62+
exclude group: "com.google.firebase", module: "firebase-common"
63+
}
64+
testImplementation 'org.mockito:mockito-core:2.25.0'
65+
testImplementation 'com.google.truth:truth:0.44'
66+
testImplementation 'junit:junit:4.13-beta-2'
67+
testImplementation 'androidx.test:runner:1.2.0'
68+
testImplementation 'org.robolectric:robolectric:4.2'
69+
testImplementation 'io.grpc:grpc-testing:1.12.0'
70+
testImplementation 'androidx.test.espresso:espresso-core:3.2.0'
71+
72+
}

firebase-abt/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version=18.0.1
2+
latestReleasedVersion=18.0.0
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.google.firebase.abt">
4+
<!--Although the *SdkVersion is captured in gradle build files, this is required for non gradle builds-->
5+
<!--<uses-sdk android:minSdkVersion="14"/>-->
6+
<application>
7+
<service android:name="com.google.firebase.components.ComponentDiscoveryService">
8+
<meta-data
9+
android:name="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar"
10+
android:value="com.google.firebase.components.ComponentRegistrar"/>
11+
</service>
12+
</application>
13+
</manifest>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Copyright 2018 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
package com.google.firebase.abt;
16+
17+
/**
18+
* An exception thrown when there's an issue with a call to the {@link
19+
* com.google.firebase.abt.FirebaseABTesting} API.
20+
*
21+
* @author Miraziz Yusupov
22+
*/
23+
public class AbtException extends Exception {
24+
25+
/** Creates an ABT exception with the given message. */
26+
public AbtException(String message) {
27+
super(message);
28+
}
29+
30+
/** Creates an ABT exception with the given message and cause. */
31+
public AbtException(String message, Exception cause) {
32+
super(message, cause);
33+
}
34+
}

0 commit comments

Comments
 (0)