Skip to content

Commit 4f8af55

Browse files
committed
Athena: Rewrite
Change-Id: Ifdffd0690a1895ce6ce40c2139643b854ab36e41
1 parent 98c5974 commit 4f8af55

File tree

486 files changed

+13201
-34788
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

486 files changed

+13201
-34788
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "app/src/main/cpp/cpu/cpuinfo"]
2-
path = app/src/main/cpp/cpu/cpuinfo
1+
[submodule "cpuinfo"]
2+
path = module-cpu/src/main/cpp/cpuinfo
33
url = https://github.com/pytorch/cpuinfo

app/build.gradle.kts

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
88
plugins {
99
alias(libs.plugins.android.application)
1010
alias(libs.plugins.kotlin.android)
11+
alias(libs.plugins.kotlin.compose)
1112
alias(libs.plugins.kotlin.serialization)
1213
}
1314

@@ -21,15 +22,6 @@ android {
2122
targetSdk = libs.versions.android.targetSdk.get().toInt()
2223
versionCode = 13
2324
versionName = "1.1.0"
24-
25-
externalNativeBuild {
26-
cmake {
27-
arguments(
28-
"-DANDROID_STL=c++_shared",
29-
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
30-
)
31-
}
32-
}
3325
}
3426

3527
buildTypes {
@@ -64,25 +56,51 @@ android {
6456
}
6557
}
6658

67-
externalNativeBuild {
68-
cmake {
69-
path = file("src/main/cpp/CMakeLists.txt")
70-
version = libs.versions.cmake.get()
71-
}
59+
buildFeatures {
60+
compose = true
7261
}
7362
}
7463

7564
dependencies {
76-
implementation(libs.androidx.appcompat)
77-
implementation(libs.androidx.biometric)
78-
implementation(libs.androidx.constraintlayout)
65+
implementation(project(":core"))
66+
implementation(project(":module-audio"))
67+
implementation(project(":module-biometrics"))
68+
implementation(project(":module-bluetooth"))
69+
implementation(project(":module-build"))
70+
implementation(project(":module-camera"))
71+
implementation(project(":module-cpu"))
72+
implementation(project(":module-device"))
73+
implementation(project(":module-display"))
74+
implementation(project(":module-drm"))
75+
implementation(project(":module-gnss"))
76+
implementation(project(":module-gpu"))
77+
implementation(project(":module-health"))
78+
implementation(project(":module-input"))
79+
implementation(project(":module-media"))
80+
implementation(project(":module-nfc"))
81+
implementation(project(":module-ril"))
82+
implementation(project(":module-security"))
83+
implementation(project(":module-sensors"))
84+
implementation(project(":module-services"))
85+
implementation(project(":module-storage"))
86+
implementation(project(":module-systemproperties"))
87+
implementation(project(":module-thermal"))
88+
implementation(project(":module-treble"))
89+
implementation(project(":module-user"))
90+
implementation(project(":module-uwb"))
91+
implementation(project(":module-wifi"))
92+
93+
implementation(libs.androidx.activity.compose)
94+
implementation(libs.androidx.compose.material3)
95+
//implementation(libs.androidx.compose.material3.adaptive.navigation3)
96+
debugImplementation(libs.androidx.compose.ui.tooling)
97+
implementation(libs.androidx.compose.ui.tooling.preview)
7998
implementation(libs.androidx.core.ktx)
80-
implementation(libs.androidx.core.uwb)
8199
implementation(libs.androidx.lifecycle.livedata.ktx)
82-
implementation(libs.androidx.navigation.fragment.ktx)
83-
implementation(libs.androidx.navigation.ui.ktx)
84-
implementation(libs.androidx.security.state)
100+
implementation(libs.androidx.lifecycle.viewmodel.compose)
101+
implementation(libs.androidx.lifecycle.viewmodel.navigation3)
102+
implementation(libs.androidx.navigation3.runtime)
103+
implementation(libs.androidx.navigation3.ui)
85104
implementation(libs.kotlinx.serialization.json)
86105
implementation(libs.material)
87-
implementation(libs.okhttp)
88106
}

app/proguard-rules.pro

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,3 @@
2424
# If you keep the line number information, uncomment this to
2525
# hide the original source file name.
2626
#-renamesourcefileattribute SourceFile
27-
28-
# JNI
29-
-keep public class dev.sebaubuntu.athena.models.cpu.* {
30-
public *;
31-
}
32-
-keep public class dev.sebaubuntu.athena.utils.VkUtils$VkPhysicalDevices {
33-
public *;
34-
}

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,6 @@
66
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
77
xmlns:tools="http://schemas.android.com/tools">
88

9-
<uses-feature
10-
android:name="android.hardware.camera"
11-
android:required="false" />
12-
<uses-feature
13-
android:name="android.hardware.nfc"
14-
android:required="false" />
15-
16-
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
17-
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
18-
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
19-
<uses-permission
20-
android:name="android.permission.BLUETOOTH"
21-
android:maxSdkVersion="30" />
22-
<uses-permission
23-
android:name="android.permission.BLUETOOTH_ADMIN"
24-
android:maxSdkVersion="30" />
25-
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
26-
<uses-permission android:name="android.permission.BODY_SENSORS" />
27-
<uses-permission android:name="android.permission.CAMERA" />
28-
<uses-permission android:name="android.permission.HIGH_SAMPLING_RATE_SENSORS"
29-
tools:ignore="HighSamplingRate" />
30-
<uses-permission android:name="android.permission.INTERNET" />
31-
<uses-permission android:name="android.permission.NFC" />
32-
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
33-
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
34-
<uses-permission
35-
android:name="android.permission.USE_FINGERPRINT"
36-
android:maxSdkVersion="28" />
37-
<uses-permission android:name="android.permission.UWB_RANGING" />
38-
399
<application
4010
android:name=".AthenaApplication"
4111
android:enableOnBackInvokedCallback="true"
@@ -44,14 +14,18 @@
4414
android:supportsRtl="true"
4515
android:theme="@style/Theme.Athena"
4616
tools:targetApi="tiramisu">
17+
4718
<activity
4819
android:name=".MainActivity"
20+
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode"
4921
android:exported="true">
5022
<intent-filter>
5123
<action android:name="android.intent.action.MAIN" />
5224

5325
<category android:name="android.intent.category.LAUNCHER" />
5426
</intent-filter>
5527
</activity>
28+
5629
</application>
30+
5731
</manifest>

app/src/main/cpp/Athena.cpp

Lines changed: 0 additions & 6 deletions
This file was deleted.

app/src/main/cpp/cpu/CMakeLists.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/src/main/cpp/cpu/logging.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/src/main/cpp/jni/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/src/main/cpp/jni/jni_utils.cpp

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/src/main/cpp/vulkan/CMakeLists.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)