Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'com.google.gms.google-services'
id 'androidx.navigation.safeargs'
id 'com.google.android.libraries.mapsplatform.secrets-gradle-plugin'
// ADDED: The Protobuf Plugin
id 'com.google.protobuf' version '0.9.4'
}

// (Optional) load local secrets file:
Expand Down Expand Up @@ -57,6 +59,22 @@ android {
}
}

// ADDED: The Protobuf Compiler Configuration
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.21.7'
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option 'lite'
}
}
}
}
}

dependencies {
// Core AndroidX
implementation 'androidx.appcompat:appcompat:1.7.0-alpha03' // or stable: 1.6.1
Expand All @@ -83,6 +101,9 @@ dependencies {
def nav_version = "2.8.6"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation 'com.google.code.gson:gson:2.10.1'
//implementation 'com.google.protobuf:protobuf-java-util:3.21.7'
implementation 'com.google.guava:guava:31.1-android'

// Optional: Jetpack Compose (Material 3)
// implementation "androidx.compose.material3:material3:1.3.1"
Expand All @@ -92,4 +113,8 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

implementation 'com.google.protobuf:protobuf-java:3.25.3'
implementation 'com.google.protobuf:protobuf-java-util:3.25.3'

}
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<!-- Google Maps API key metadata -->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key"/>
android:value="AIzaSyCYcyjihkTeu6hyuQ9W2svhtf9eczFiImM"/>

<activity
android:name="com.openpositioning.PositionMe.presentation.activity.MainActivity"
Expand Down
Loading