Skip to content
Merged
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
7 changes: 4 additions & 3 deletions android/AllInOneJava/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
}

android {
compileSdk 33
compileSdk 35

defaultConfig {
applicationId "com.example.allinonejava"
minSdk 26
targetSdk 33
targetSdk 35
versionCode 1
versionName "1.0"

Expand All @@ -29,6 +29,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'com.example.allinonejava'
}

dependencies {
Expand All @@ -40,5 +41,5 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation "com.trimblemaps.navigation:ui-components:1.6.2"
implementation "com.trimblemaps.navigation:ui-components:2.0.0"
}
3 changes: 1 addition & 2 deletions android/AllInOneJava/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.allinonejava">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand Down
4 changes: 2 additions & 2 deletions android/AllInOneJava/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
id 'com.android.application' version '8.3.0' apply false
id 'com.android.library' version '8.3.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
}

Expand Down
4 changes: 3 additions & 1 deletion android/AllInOneJava/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jun 22 14:58:41 EDT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
7 changes: 4 additions & 3 deletions android/AllInOneKotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
}

android {
compileSdk 33
compileSdk 35

defaultConfig {
applicationId "com.example.allinonekotlin"
minSdk 26
targetSdk 33
targetSdk 35
versionCode 1
versionName "1.0"

Expand All @@ -29,6 +29,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'com.example.allinonekotlin'
}

dependencies {
Expand All @@ -40,6 +41,6 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation "com.trimblemaps.navigation:ui-components:1.6.2"
implementation "com.trimblemaps.navigation:ui-components:2.0.0"

}
3 changes: 1 addition & 2 deletions android/AllInOneKotlin/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.allinonekotlin">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand Down
4 changes: 2 additions & 2 deletions android/AllInOneKotlin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
id 'com.android.application' version '8.3.0' apply false
id 'com.android.library' version '8.3.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
}

Expand Down
4 changes: 3 additions & 1 deletion android/AllInOneKotlin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ kotlin.code.style=official
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.enableJetifier=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jun 22 10:25:05 EDT 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
9 changes: 5 additions & 4 deletions android/MapLayersKotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
}

android {
compileSdk 33
compileSdk 35

defaultConfig {
applicationId "com.trimblemaps.maplayerskotlin"
minSdk 26
targetSdk 33
targetSdk 35
versionCode 1
versionName "1.0"

Expand All @@ -29,6 +29,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'com.trimblemaps.maplayerskotlin'
}

dependencies {
Expand All @@ -40,7 +41,7 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'com.trimblemaps.mapsdk:maps-android-sdk:2.1.2'
implementation 'com.trimblemaps.mapsdk:maps-sdk-account:1.5.0'
implementation 'com.trimblemaps.mapsdk:maps-android-sdk:2.2.0'
implementation 'com.trimblemaps.mapsdk:maps-sdk-account:2.0.0'
implementation 'com.trimblemaps.mapsdk:maps-android-core:1.1.0'
}
3 changes: 1 addition & 2 deletions android/MapLayersKotlin/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.trimblemaps.maplayerskotlin">
xmlns:tools="http://schemas.android.com/tools">

<application
android:allowBackup="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class MapActivity : AppCompatActivity() {

mapView.getMapAsync { map ->
map.setStyle( Style.Builder()
.fromUri(Style.MOBILE_DAY)
.fromUri(Style.TrimbleMobileStyle.MOBILE_DAY)
.withSource(lineSource)
.withLayer(LineLayer("1", lineSourceName)
.withProperties(lineColor(Color.BLUE), lineWidth(1.0f)))
Expand Down
4 changes: 2 additions & 2 deletions android/MapLayersKotlin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
id 'com.android.application' version '8.3.0' apply false
id 'com.android.library' version '8.3.0' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
}

Expand Down
4 changes: 3 additions & 1 deletion android/MapLayersKotlin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true
android.defaults.buildfeatures.buildconfig=true
android.nonFinalResIds=false
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Jan 10 13:18:04 EST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
13 changes: 7 additions & 6 deletions android/MapsSDKExamplesKotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ plugins {
}

android {
compileSdk 33
compileSdk 35

defaultConfig {
applicationId "com.trimblemaps.mapssdkexampleskotlin"
minSdk 26
targetSdk 33
targetSdk 35
versionCode 1
versionName "1.0"

Expand All @@ -32,6 +32,7 @@ android {
buildFeatures {
viewBinding true
}
namespace 'com.trimblemaps.mapssdkexampleskotlin'
}

dependencies {
Expand All @@ -44,8 +45,8 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'

implementation "com.trimblemaps.mapsdk:maps-sdk-services:1.5.0"
implementation "com.trimblemaps.mapsdk:maps-android-sdk:2.1.2"
implementation "com.trimblemaps.mapsdk:maps-android-plugin-route:1.6.2"
implementation "com.trimblemaps.mapsdk:maps-android-plugin-places:1.6.2"
implementation "com.trimblemaps.mapsdk:maps-sdk-services:2.0.0"
implementation "com.trimblemaps.mapsdk:maps-android-sdk:2.2.0"
implementation "com.trimblemaps.mapsdk:maps-android-plugin-route:2.0.0"
implementation "com.trimblemaps.mapsdk:maps-android-plugin-places:2.0.0"
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.trimblemaps.mapssdkexampleskotlin">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Sample3DBuildingsActivity : AppCompatActivity() {
mapView?.getMapAsync { trimbleMapsMap ->
map = trimbleMapsMap
// The TrimbleMapsMap object is created, now a style can be applied to render a map.
trimbleMapsMap.setStyle(Style.MOBILE_DAY)
trimbleMapsMap.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY)

// Set the initial position of the camera, as well as tilting the camera slightly
// tilting the camera will make the 3D extrusions more obvious.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SampleAnimatedCameraActivity : AppCompatActivity() {
mapView?.getMapAsync { trimbleMapsMap ->
map = trimbleMapsMap
// The TrimbleMapsMap object is created, now a style can be applied to render a map.
trimbleMapsMap.setStyle(Style.MOBILE_DAY)
trimbleMapsMap.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY)

// Set the initial position of the camera.
map?.cameraPosition = CameraPosition.Builder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SampleAnimateAroundActivity : AppCompatActivity() {
// Adding the source and layer for the buildings highlighted. Building outlines will be
// displayed in yellow

trimbleMapsMap.setStyle(Style.MOBILE_DAY)
trimbleMapsMap.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY)

map?.cameraPosition = CameraPosition.Builder()
.target(LatLng(39.90073499962372, -75.16745401827387))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class SampleBasicMapActivity : Activity() {
// the onMapReadyCallback is fired when the map is ready to be worked with
mapView?.getMapAsync(OnMapReadyCallback { trimbleMapsMap ->
// The TrimbleMapsMap object is created, now a style can be applied to render a map.
trimbleMapsMap.setStyle(Style.MOBILE_DAY) {
trimbleMapsMap.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY) {
// The style is loaded, you can add content to the map, move it etc.
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SampleChangeStylesActivity : Activity(), Style.OnStyleLoaded {
map!!.cameraPosition = position

// Set the style, the callback is implemented into the class.
map!!.setStyle(Style.MOBILE_DAY, this@SampleChangeStylesActivity)
map!!.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY, this@SampleChangeStylesActivity)
}
}

Expand All @@ -47,15 +47,15 @@ class SampleChangeStylesActivity : Activity(), Style.OnStyleLoaded {
when ((view as Button).text.toString()) {
"Satellite" -> {
chosenStyle = "Satellite Style"
map?.setStyle(Style.SATELLITE, this)
map?.setStyle(Style.TrimbleMobileStyle.MOBILE_SATELLITE, this)
}
"Day" -> {
chosenStyle = "Day Style"
map?.setStyle(Style.MOBILE_DAY, this)
map?.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY, this)
}
"Night" -> {
chosenStyle = "Night Style"
map?.setStyle(Style.MOBILE_NIGHT, this)
map?.setStyle(Style.TrimbleMobileStyle.MOBILE_NIGHT, this)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class SampleClickablePointsActivity : Activity(), Style.OnStyleLoaded {
.zoom(13.0)
.build()
map?.cameraPosition = position
map?.setStyle(Style.SATELLITE, this@SampleClickablePointsActivity)
map?.setStyle(Style.TrimbleMobileStyle.MOBILE_SATELLITE, this@SampleClickablePointsActivity)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SampleDataDrivenStylingActivity : Activity(), Style.OnStyleLoaded {

// This class implements the onStyleLoaded method, that will be called when
// the style has been loaded.
map!!.setStyle(Style.MOBILE_NIGHT, this@SampleDataDrivenStylingActivity)
map!!.setStyle(Style.TrimbleMobileStyle.MOBILE_NIGHT, this@SampleDataDrivenStylingActivity)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SampleDotsOnAMapActivity : Activity(), Style.OnStyleLoaded {

// This class implements the onStyleLoaded method, that will be called when
// the style has been loaded.
map!!.setStyle(Style.MOBILE_NIGHT, this@SampleDotsOnAMapActivity)
map!!.setStyle(Style.TrimbleMobileStyle.MOBILE_NIGHT, this@SampleDotsOnAMapActivity)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SampleFollowMeActivity : Activity(), OnMapReadyCallback,
// The TrimbleMapsMap object is created, now a style can be applied to render a map.
map = trimbleMapsMap
map!!.addOnMoveListener(this)
map!!.setStyle(Style.MOBILE_DEFAULT) { // Not setting the start location here, as that will be tracked by the user's
map!!.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY) { // Not setting the start location here, as that will be tracked by the user's
// location. Instead, just defining the initial zoom.
map!!.cameraPosition = CameraPosition.Builder().zoom(15.0).build()
setupLocationComponent()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SampleFramingActivity : Activity(), Style.OnStyleLoaded {
.zoom(2.5)
.build()
map?.cameraPosition = position
map?.setStyle(Style.MOBILE_DAY, this@SampleFramingActivity)
map?.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY, this@SampleFramingActivity)
}

// When the button is clicked, cycle through the lines using trimbleMapsMap.moveCamera
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class SampleGeocodingActivity : Activity() {
mapView!!.getMapAsync { trimbleMapsMap ->
// The TrimbleMapsMap object is created, now a style can be applied to render a map.
map = trimbleMapsMap
map!!.setStyle(Style.MOBILE_DEFAULT) { // The style is loaded, you can add content to the map, move it etc.
map!!.setStyle(Style.TrimbleMobileStyle.MOBILE_DAY) { // The style is loaded, you can add content to the map, move it etc.
// Style was loaded, do a geocode.
geocode()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class SampleHighlightBuildingActivity : AppCompatActivity() {

trimbleMapsMap.setStyle(Style
.Builder()
.fromUri(Style.MOBILE_NIGHT)
.fromUri(Style.TrimbleMobileStyle.MOBILE_NIGHT)
.withSource(GeoJsonSource(highlightsSrcLayer, FeatureCollection.fromFeatures(highlights)))
.withLayer(LineLayer(highlightsSrcLayer, highlightsSrcLayer).withProperties(
lineWidth(4f),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SampleHighlightFeaturesAfterPanningActivity : AppCompatActivity() {
trimbleMapsMap.setStyle(
Style
.Builder()
.fromUri(Style.MOBILE_NIGHT)
.fromUri(Style.TrimbleMobileStyle.MOBILE_NIGHT)
.withSource(GeoJsonSource(highlightsSrcLayer, FeatureCollection.fromFeatures(highlights)))
.withLayer(
LineLayer(highlightsSrcLayer, highlightsSrcLayer).withProperties(
Expand Down
Loading