Skip to content
This repository was archived by the owner on Jun 17, 2024. It is now read-only.

Commit cd031ac

Browse files
pocmocsadilek
authored andcommitted
[components] Issue mozilla-mobile/android-components#85: Introduce new browser-menu component.
1 parent 81940d5 commit cd031ac

File tree

5 files changed

+81
-0
lines changed

5 files changed

+81
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
apply plugin: 'com.android.library'
6+
apply plugin: 'kotlin-android'
7+
8+
android {
9+
compileSdkVersion rootProject.ext.build['compileSdkVersion']
10+
11+
defaultConfig {
12+
minSdkVersion rootProject.ext.build['minSdkVersion']
13+
targetSdkVersion rootProject.ext.build['targetSdkVersion']
14+
}
15+
16+
lintOptions {
17+
warningsAsErrors true
18+
abortOnError true
19+
}
20+
21+
buildTypes {
22+
release {
23+
minifyEnabled false
24+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
25+
}
26+
}
27+
}
28+
29+
dependencies {
30+
implementation "com.android.support:appcompat-v7:${rootProject.ext.dependencies['supportLibraries']}"
31+
32+
implementation "org.jetbrains.kotlin:kotlin-stdlib:${rootProject.ext.dependencies['kotlin']}"
33+
34+
testImplementation "junit:junit:${rootProject.ext.dependencies['junit']}"
35+
testImplementation "org.robolectric:robolectric:${rootProject.ext.dependencies['robolectric']}"
36+
testImplementation "org.mockito:mockito-core:${rootProject.ext.dependencies['mockito']}"
37+
}
38+
39+
archivesBaseName = "menu"
40+
41+
apply from: '../../../publish.gradle'
42+
ext.configurePublish(
43+
'org.mozilla.components',
44+
'menu',
45+
'A customizable menu for browsers.')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!-- This Source Code Form is subject to the terms of the Mozilla Public
2+
- License, v. 2.0. If a copy of the MPL was not distributed with this
3+
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
4+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
5+
package="mozilla.components.browser.menu" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
package mozilla.components.browser.menu
6+
7+
class BrowserMenu

android-components/settings.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ project(':browser-engine-system').projectDir = new File(rootDir, 'components/bro
3838
include ':browser-errorpages'
3939
project(':browser-errorpages').projectDir = new File(rootDir, 'components/browser/errorpages')
4040

41+
include ':browser-menu'
42+
project(':browser-menu').projectDir = new File(rootDir, 'components/browser/menu')
43+
4144
include ':browser-search'
4245
project(':browser-search').projectDir = new File(rootDir, 'components/browser/search')
4346

0 commit comments

Comments
 (0)