Commit a9eda724 authored by MozLando's avatar MozLando
Browse files

Merge #6835



6835: Issue #6827: Move Thumbnails into its own browser component r=gabrielluong a=gabrielluong

Fixes #6827. 



Co-authored-by: default avatarGabriel Luong <gabriel.luong@gmail.com>
parents c9ac8728 d25b8399
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -212,6 +212,10 @@ projects:
    path: components/browser/tabstray
    description: 'A tabs tray component for browsers.'
    publish: true
  browser-thumbnails:
    path: components/browser/thumbnails
    description: 'A component for loading and storing website thumbnails.'
    publish: true
  browser-toolbar:
    path: components/browser/toolbar
    description: 'A customizable toolbar for browsers.'
+2 −0
Original line number Diff line number Diff line
@@ -94,6 +94,8 @@ High-level components for building browser(-like) apps.

*[**Tabstray**](components/browser/tabstray/README.md) - A customizable tabs tray for browsers.

* 🔴 [**Thumbnails**](components/browser/thumbnails/README.md) - A component for loading and storing website thumbnails (screenshot of the website).

* 🔵 [**Toolbar**](components/browser/toolbar/README.md) - A customizable toolbar for browsers.

## Concept
+19 −0
Original line number Diff line number Diff line
# [Android Components](../../../README.md) > Browser > Thumbnails

A component for loading and storing website thumbnails (screenshot of the website).

## Usage

### Setting up the dependency

Use Gradle to download the library from [maven.mozilla.org](https://maven.mozilla.org/) ([Setup repository](../../../README.md#maven-repository)):

```Groovy
implementation "org.mozilla.components:browser-thumbnails:{latest-version}"
```

## License

    This Source Code Form is subject to the terms of the Mozilla Public
    License, v. 2.0. If a copy of the MPL was not distributed with this
    file, You can obtain one at http://mozilla.org/MPL/2.0/
+44 −0
Original line number Diff line number Diff line
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
    compileSdkVersion config.compileSdkVersion

    defaultConfig {
        minSdkVersion config.minSdkVersion
        targetSdkVersion config.targetSdkVersion
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/proguard/androidx-annotations.pro'
    }
}

dependencies {
    implementation project(':browser-session')
    implementation project(':concept-engine')
    implementation project(':support-ktx')

    implementation Dependencies.androidx_annotation

    testImplementation project(':support-test')

    testImplementation Dependencies.androidx_test_junit
    testImplementation Dependencies.testing_mockito
    testImplementation Dependencies.testing_robolectric
}

apply from: '../../../publish.gradle'
ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)
+21 −0
Original line number Diff line number Diff line
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Loading