Skip to content

Commit ae0d2ec

Browse files
committed
Bug 2010695 - Created A-C module structure for S2S
1 parent 1f4a931 commit ae0d2ec

File tree

15 files changed

+232
-0
lines changed

15 files changed

+232
-0
lines changed

mobile/android/android-components/.buildconfig.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2480,3 +2480,32 @@ projects:
24802480
- components:tooling-lint
24812481
- components:ui-colors
24822482
- components:ui-icons
2483+
components:feature-summarization-api:
2484+
description: Contracts and configuration for the Summarization (S2S) feature.
2485+
path: components/feature/summarization/api
2486+
publish: false
2487+
upstream_dependencies:
2488+
- components:tooling-lint
2489+
components:feature-summarization:
2490+
description: UI/store layer for the Summarization (S2S) feature.
2491+
path: components/feature/summarization/ui
2492+
publish: false
2493+
upstream_dependencies:
2494+
- components:feature-summarization-api
2495+
- components:tooling-lint
2496+
components:feature-summarization-impl:
2497+
description: Default implementations for the Summarization (S2S) feature.
2498+
path: components/feature/summarization/impl
2499+
publish: false
2500+
upstream_dependencies:
2501+
- components:feature-summarization-api
2502+
- components:tooling-lint
2503+
components:feature-summarization-wiring:
2504+
description: Wiring factory for assembling the Summarization (S2S) feature.
2505+
path: components/feature/summarization/wiring
2506+
publish: false
2507+
upstream_dependencies:
2508+
- components:feature-summarization
2509+
- components:feature-summarization-impl
2510+
- components:feature-summarization-api
2511+
- components:tooling-lint
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
plugins {
6+
alias(libs.plugins.dependency.analysis)
7+
}
8+
9+
apply plugin: 'com.android.library'
10+
apply plugin: 'kotlin-android'
11+
12+
android {
13+
namespace = "mozilla.components.feature.summarization.api"
14+
}
15+
16+
dependencies {
17+
}
18+
19+
apply from: '../../../../common-config.gradle'
20+
apply from: '../../../../publish.gradle'
21+
ext.configurePublish(config.componentsGroupId, project.name, project.ext.description)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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 />
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
plugins {
6+
alias(libs.plugins.dependency.analysis)
7+
}
8+
9+
apply plugin: 'com.android.library'
10+
apply plugin: 'kotlin-android'
11+
12+
android {
13+
namespace = "mozilla.components.feature.summarization.impl"
14+
}
15+
16+
dependencies {
17+
implementation project(':components:feature-summarization-api')
18+
19+
testImplementation project(':components:support-test')
20+
21+
testImplementation libs.androidx.test.core
22+
testImplementation libs.androidx.test.junit
23+
testImplementation libs.kotlinx.coroutines.test
24+
testImplementation libs.robolectric
25+
}
26+
27+
apply from: '../../../../common-config.gradle'
28+
apply from: '../../../../publish.gradle'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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 />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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 org.mozilla.summarization
6+
7+
class Example {
8+
fun check(): Boolean = true
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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 org.mozilla.summarization
6+
7+
import org.junit.Assert.assertEquals
8+
import org.junit.Test
9+
10+
11+
class ExampleTest {
12+
13+
@Test
14+
fun trueCheck() {
15+
val ex = Example()
16+
assertEquals(true, ex.check())
17+
}
18+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
plugins {
6+
alias(libs.plugins.dependency.analysis)
7+
}
8+
9+
apply plugin: 'com.android.library'
10+
apply plugin: 'kotlin-android'
11+
12+
android {
13+
namespace = "mozilla.components.feature.summarization.ui"
14+
}
15+
16+
dependencies {
17+
api project(':components:feature-summarization-api')
18+
19+
testImplementation project(':components:support-test')
20+
21+
testImplementation libs.androidx.test.core
22+
testImplementation libs.androidx.test.junit
23+
testImplementation libs.kotlinx.coroutines.test
24+
testImplementation libs.robolectric
25+
}
26+
27+
apply from: '../../../../common-config.gradle'
28+
apply from: '../../../../publish.gradle'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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 />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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 org.mozilla.summarization
6+
7+
class Example {
8+
fun check(): Boolean = true
9+
}

0 commit comments

Comments
 (0)