Skip to content

Commit

Permalink
Adding rudimentary logging feature
Browse files Browse the repository at this point in the history
  • Loading branch information
BubbaJuice committed Aug 1, 2024
1 parent 0bd7db7 commit 0f7c49a
Show file tree
Hide file tree
Showing 5 changed files with 366 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.jetbrains.kotlin.android)
id 'org.jetbrains.kotlin.plugin.serialization' version '2.0.20-RC'
id 'kotlin-android'
id 'kotlin-kapt'
}

android {
Expand All @@ -19,6 +21,16 @@ android {
vectorDrawables {
useSupportLibrary true
}

javaCompileOptions {
annotationProcessorOptions {
arguments += [
"room.schemaLocation": "$projectDir/schemas".toString(),
"room.incremental": "true",
"room.expandProjection": "true"
]
}
}
}

signingConfigs {
Expand Down Expand Up @@ -58,6 +70,8 @@ android {
}

dependencies {
implementation libs.androidx.databinding.adapters
def room_version = "2.5.1"
implementation libs.androidx.core.ktx
implementation libs.androidx.lifecycle.runtime.ktx
implementation libs.androidx.activity.compose
Expand All @@ -69,6 +83,12 @@ dependencies {
implementation "org.burnoutcrew.composereorderable:reorderable:0.9.6"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2"
implementation libs.androidx.runtime.livedata
implementation libs.androidx.room.common
implementation libs.androidx.room.ktx
implementation "androidx.room:room-runtime:$room_version"
annotationProcessor "androidx.room:room-compiler:$room_version"
kapt "androidx.room:room-compiler:$room_version"
implementation "androidx.room:room-ktx:$room_version"
testImplementation libs.junit
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.espresso.core
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_LOCATION"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

<application
android:allowBackup="true"
Expand All @@ -25,6 +28,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name=".CellLoggingService"
android:exported="false"
android:foregroundServiceType="location" />
</application>

</manifest>
Loading

0 comments on commit 0f7c49a

Please sign in to comment.