Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ This repository contains a subset of the Firebase Android SDK source. It
currently includes the following Firebase libraries, and some of their
dependencies:

* `firebase-abt`
* `firebase-common`
* `firebase-common-ktx`
* `firebase-database`
* `firebase-functions`
* `firebase-database-collection`
* `firebase-datatransport`
* `firebase-firestore`
* `firebase-storage`
* `firebase-firestore-ktx`
* `firebase-functions`
* `firebase-functions-ktx`
* `firebase-inappmessaging-display`
* `firebase-remote-config`
* `firebase-storage`


Firebase is an app development platform with tools to help you build, grow and
Expand Down
72 changes: 72 additions & 0 deletions firebase-abt/firebase-abt.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

plugins {
id 'firebase-library'
}

firebaseLibrary {
testLab.enabled = true
publishSources = true
}

android {

lintOptions {
abortOnError false
}
sourceSets {
main {
java {
}
}
test {
java {
}
}
}

compileSdkVersion project.targetSdkVersion
defaultConfig {
minSdkVersion project.minSdkVersion
targetSdkVersion project.targetSdkVersion
versionName version
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}

dependencies {
implementation project(':firebase-common')
implementation project(':protolite-well-known-types')
implementation ('com.google.firebase:firebase-measurement-connector:18.0.0') {
exclude group: "com.google.firebase", module: "firebase-common"
}
testImplementation 'org.mockito:mockito-core:2.25.0'
testImplementation 'com.google.truth:truth:0.44'
testImplementation 'junit:junit:4.13-beta-2'
testImplementation 'androidx.test:runner:1.2.0'
testImplementation 'org.robolectric:robolectric:4.2'
testImplementation 'io.grpc:grpc-testing:1.12.0'
testImplementation 'androidx.test.espresso:espresso-core:3.2.0'

}
2 changes: 2 additions & 0 deletions firebase-abt/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=17.1.2
latestReleasedVersion=17.1.1
13 changes: 13 additions & 0 deletions firebase-abt/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.firebase.abt">
<!--Although the *SdkVersion is captured in gradle build files, this is required for non gradle builds-->
<!--<uses-sdk android:minSdkVersion="14"/>-->
<application>
<service android:name="com.google.firebase.components.ComponentDiscoveryService">
<meta-data
android:name="com.google.firebase.components:com.google.firebase.abt.component.AbtRegistrar"
android:value="com.google.firebase.components.ComponentRegistrar"/>
</service>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package com.google.firebase.abt;

/**
* An exception thrown when there's an issue with a call to the {@link
* com.google.firebase.abt.FirebaseABTesting} API.
*
* @author Miraziz Yusupov
*/
public class AbtException extends Exception {

/** Creates an ABT exception with the given message. */
public AbtException(String message) {
super(message);
}

/** Creates an ABT exception with the given message and cause. */
public AbtException(String message, Exception cause) {
super(message, cause);
}
}
Loading