Skip to content

Commit 1ee8bbd

Browse files
committed
[WIP] Athena: Add packages module
Change-Id: I17d2498cc2b76beb37125503a8671959551df6d6
1 parent cd1aa02 commit 1ee8bbd

File tree

14 files changed

+721
-0
lines changed

14 files changed

+721
-0
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ dependencies {
8383
implementation(project(":module-input"))
8484
implementation(project(":module-media"))
8585
implementation(project(":module-nfc"))
86+
implementation(project(":module-packages"))
8687
implementation(project(":module-ril"))
8788
implementation(project(":module-security"))
8889
implementation(project(":module-sensors"))
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
SPDX-FileCopyrightText: Material Design Authors / Google LLC
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
7+
android:width="24dp"
8+
android:height="24dp"
9+
android:tint="#000000"
10+
android:viewportWidth="960"
11+
android:viewportHeight="960">
12+
13+
<path
14+
android:fillColor="@android:color/white"
15+
android:pathData="M280,760L680,760Q676,711 650,670Q624,629 582,605L620,537Q622,533 621,528Q620,523 615,521Q611,519 606.5,520Q602,521 600,525L561,595Q541,587 521,582.5Q501,578 480,578Q459,578 439,582.5Q419,587 399,595L360,525Q358,520 353.5,520Q349,520 344,522Q344,522 340,537L378,605Q336,629 310,670Q284,711 280,760ZM390,700Q382,700 376,694Q370,688 370,680Q370,672 376,666Q382,660 390,660Q398,660 404,666Q410,672 410,680Q410,688 404,694Q398,700 390,700ZM570,700Q562,700 556,694Q550,688 550,680Q550,672 556,666Q562,660 570,660Q578,660 584,666Q590,672 590,680Q590,688 584,694Q578,700 570,700ZM240,880Q207,880 183.5,856.5Q160,833 160,800L160,160Q160,127 183.5,103.5Q207,80 240,80L560,80L800,320L800,800Q800,833 776.5,856.5Q753,880 720,880L240,880ZM520,360L520,160L240,160Q240,160 240,160Q240,160 240,160L240,800Q240,800 240,800Q240,800 240,800L720,800Q720,800 720,800Q720,800 720,800L720,360L520,360ZM240,160L240,160L240,360L240,360L240,160L240,360L240,360L240,800Q240,800 240,800Q240,800 240,800L240,800Q240,800 240,800Q240,800 240,800L240,160Q240,160 240,160Q240,160 240,160Z" />
16+
17+
</vector>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
SPDX-FileCopyrightText: Material Design Authors / Google LLC
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
7+
android:width="24dp"
8+
android:height="24dp"
9+
android:tint="#000000"
10+
android:viewportWidth="960"
11+
android:viewportHeight="960">
12+
13+
<path
14+
android:fillColor="@android:color/white"
15+
android:pathData="M240,800Q207,800 183.5,776.5Q160,753 160,720Q160,687 183.5,663.5Q207,640 240,640Q273,640 296.5,663.5Q320,687 320,720Q320,753 296.5,776.5Q273,800 240,800ZM480,800Q447,800 423.5,776.5Q400,753 400,720Q400,687 423.5,663.5Q447,640 480,640Q513,640 536.5,663.5Q560,687 560,720Q560,753 536.5,776.5Q513,800 480,800ZM720,800Q687,800 663.5,776.5Q640,753 640,720Q640,687 663.5,663.5Q687,640 720,640Q753,640 776.5,663.5Q800,687 800,720Q800,753 776.5,776.5Q753,800 720,800ZM240,560Q207,560 183.5,536.5Q160,513 160,480Q160,447 183.5,423.5Q207,400 240,400Q273,400 296.5,423.5Q320,447 320,480Q320,513 296.5,536.5Q273,560 240,560ZM480,560Q447,560 423.5,536.5Q400,513 400,480Q400,447 423.5,423.5Q447,400 480,400Q513,400 536.5,423.5Q560,447 560,480Q560,513 536.5,536.5Q513,560 480,560ZM720,560Q687,560 663.5,536.5Q640,513 640,480Q640,447 663.5,423.5Q687,400 720,400Q753,400 776.5,423.5Q800,447 800,480Q800,513 776.5,536.5Q753,560 720,560ZM240,320Q207,320 183.5,296.5Q160,273 160,240Q160,207 183.5,183.5Q207,160 240,160Q273,160 296.5,183.5Q320,207 320,240Q320,273 296.5,296.5Q273,320 240,320ZM480,320Q447,320 423.5,296.5Q400,273 400,240Q400,207 423.5,183.5Q447,160 480,160Q513,160 536.5,183.5Q560,207 560,240Q560,273 536.5,296.5Q513,320 480,320ZM720,320Q687,320 663.5,296.5Q640,273 640,240Q640,207 663.5,183.5Q687,160 720,160Q753,160 776.5,183.5Q800,207 800,240Q800,273 776.5,296.5Q753,320 720,320Z" />
16+
17+
</vector>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
SPDX-FileCopyrightText: Material Design Authors / Google LLC
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
7+
android:width="24dp"
8+
android:height="24dp"
9+
android:tint="#000000"
10+
android:viewportWidth="960"
11+
android:viewportHeight="960">
12+
13+
<path
14+
android:fillColor="@android:color/white"
15+
android:pathData="M352,840L200,840Q167,840 143.5,816.5Q120,793 120,760L120,608Q168,608 204,577.5Q240,547 240,500Q240,453 204,422.5Q168,392 120,392L120,240Q120,207 143.5,183.5Q167,160 200,160L360,160Q360,118 389,89Q418,60 460,60Q502,60 531,89Q560,118 560,160L720,160Q753,160 776.5,183.5Q800,207 800,240L800,400Q842,400 871,429Q900,458 900,500Q900,542 871,571Q842,600 800,600L800,760Q800,793 776.5,816.5Q753,840 720,840L568,840Q568,790 536.5,755Q505,720 460,720Q415,720 383.5,755Q352,790 352,840ZM200,760L285,760Q309,694 362,667Q415,640 460,640Q505,640 558,667Q611,694 635,760L720,760L720,520L800,520Q808,520 814,514Q820,508 820,500Q820,492 814,486Q808,480 800,480L720,480L720,240L480,240L480,160Q480,152 474,146Q468,140 460,140Q452,140 446,146Q440,152 440,160L440,240L200,240L200,328Q254,348 287,395Q320,442 320,500Q320,557 287,604Q254,651 200,672L200,760ZM460,500L460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500L460,500L460,500L460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500L460,500L460,500L460,500L460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500L460,500L460,500L460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500Q460,500 460,500Z" />
16+
17+
</vector>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
SPDX-FileCopyrightText: Material Design Authors / Google LLC
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
7+
android:width="24dp"
8+
android:height="24dp"
9+
android:tint="#000000"
10+
android:viewportWidth="960"
11+
android:viewportHeight="960">
12+
13+
<path
14+
android:fillColor="@android:color/white"
15+
android:pathData="M440,777L440,503L200,364L200,638Q200,638 200,638Q200,638 200,638L440,777ZM520,777L760,638Q760,638 760,638Q760,638 760,638L760,364L520,503L520,777ZM440,869L160,708Q141,697 130.5,679Q120,661 120,639L120,321Q120,299 130.5,281Q141,263 160,252L440,91Q459,80 480,80Q501,80 520,91L800,252Q819,263 829.5,281Q840,299 840,321L840,639Q840,661 829.5,679Q819,697 800,708L520,869Q501,880 480,880Q459,880 440,869ZM640,341L717,297L480,160Q480,160 480,160Q480,160 480,160L402,205L640,341ZM480,434L558,389L321,252L243,297L480,434Z" />
16+
17+
</vector>

module-packages/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

module-packages/build.gradle.kts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* SPDX-FileCopyrightText: Sebastiano Barezzi
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
7+
8+
plugins {
9+
alias(libs.plugins.android.library)
10+
alias(libs.plugins.kotlin.android)
11+
alias(libs.plugins.kotlin.serialization)
12+
}
13+
14+
android {
15+
namespace = "dev.sebaubuntu.athena.modules.packages"
16+
compileSdk = libs.versions.android.compileSdk.get().toInt()
17+
18+
defaultConfig {
19+
minSdk = libs.versions.android.minSdk.get().toInt()
20+
21+
consumerProguardFiles("consumer-rules.pro")
22+
}
23+
24+
compileOptions {
25+
sourceCompatibility = JavaVersion.VERSION_17
26+
targetCompatibility = JavaVersion.VERSION_17
27+
}
28+
29+
kotlin {
30+
compilerOptions {
31+
jvmTarget.set(JvmTarget.JVM_17)
32+
}
33+
}
34+
}
35+
36+
dependencies {
37+
implementation(project(":core"))
38+
39+
implementation(libs.androidx.core.ktx)
40+
implementation(libs.kotlinx.coroutines.core)
41+
implementation(libs.kotlinx.serialization.json)
42+
}

module-packages/consumer-rules.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#
2+
# SPDX-FileCopyrightText: Sebastiano Barezzi
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
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+
<!--
3+
SPDX-FileCopyrightText: Sebastiano Barezzi
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
7+
xmlns:tools="http://schemas.android.com/tools">
8+
9+
<uses-permission
10+
android:name="android.permission.QUERY_ALL_PACKAGES"
11+
tools:ignore="PackageVisibilityPolicy" />
12+
13+
</manifest>

0 commit comments

Comments
 (0)