Skip to content

Commit

Permalink
Merge pull request #40 from Esri/shubham/resolve-warnings
Browse files Browse the repository at this point in the history
Samples resolve warnings
  • Loading branch information
shubham7109 authored Dec 22, 2022
2 parents c2c3d24 + b2b476d commit ccd500f
Show file tree
Hide file tree
Showing 61 changed files with 123 additions and 137 deletions.
4 changes: 3 additions & 1 deletion add-feature-layers/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.kotlin.android'

android {
compileSdkVersion rootProject.ext.compileSdkVersion
Expand All @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.addfeaturelayers'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions add-feature-layers/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.addfeaturelayers">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ subprojects {
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
}
kotlinOptions {
jvmTarget = "11"
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions change-viewpoint/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.changeviewpoint'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions change-viewpoint/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.changeviewpoint">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
7 changes: 4 additions & 3 deletions clip-geometry/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'org.jetbrains.kotlin.android'

android {
compileSdkVersion rootProject.ext.compileSdkVersion

Expand All @@ -24,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.clipgeometry'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions clip-geometry/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.clipgeometry">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
2 changes: 2 additions & 0 deletions create-planar-and-geodetic-buffers/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.createplanarandgeodeticbuffers'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.createplanarandgeodeticbuffers">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
2 changes: 2 additions & 0 deletions cut-geometry/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.cutgeometry'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions cut-geometry/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.cutgeometry">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
2 changes: 2 additions & 0 deletions display-device-location-with-nmea-data-sources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.displaydevicelocationwithnmeadatasources'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.displaydevicelocationwithnmeadatasources">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.esri.arcgismaps.sample.displaydevicelocationwithnmeadatasources

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.esri.arcgismaps.sample.sampleslib.DownloaderActivity

class DownloadActivity : DownloaderActivity() {
Expand Down
2 changes: 2 additions & 0 deletions display-map-from-mobile-map-package/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.displaymapfrommobilemappackage'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.displaymapfrommobilemappackage">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<layout xmlns:android="http://schemas.android.com/apk/res/android">

<androidx.constraintlayout.widget.ConstraintLayout xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand Down
4 changes: 3 additions & 1 deletion display-map/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
compileSdkVersion rootProject.ext.compileSdkVersion

defaultConfig {
applicationId "com.esri.arcgismaps.demos.displaymap"
applicationId "com.esri.arcgismaps.sample.displaymap"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
Expand All @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.displaymap'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions display-map/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.displaymap">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
3 changes: 2 additions & 1 deletion download-vector-tiles-to-local-cache/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ android {

buildFeatures {
dataBinding true
viewBinding true
}

namespace 'com.esri.arcgismaps.sample.downloadvectortilestolocalcache'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.com.arcgismaps.sample.downloadvectortilestolocalcache">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
*/

package com.esri.com.arcgismaps.sample.downloadvectortilestolocalcache
package com.esri.arcgismaps.sample.downloadvectortilestolocalcache

import android.app.AlertDialog
import android.os.Bundle
Expand Down Expand Up @@ -43,8 +43,8 @@ import com.arcgismaps.tasks.exportvectortiles.ExportVectorTilesJob
import com.arcgismaps.tasks.exportvectortiles.ExportVectorTilesParameters
import com.arcgismaps.tasks.exportvectortiles.ExportVectorTilesResult
import com.arcgismaps.tasks.exportvectortiles.ExportVectorTilesTask
import com.esri.com.arcgismaps.sample.downloadvectortilestolocalcache.databinding.ActivityMainBinding
import com.esri.com.arcgismaps.sample.downloadvectortilestolocalcache.databinding.ProgressDialogLayoutBinding
import com.esri.arcgismaps.sample.downloadvectortilestolocalcache.databinding.ActivityMainBinding
import com.esri.arcgismaps.sample.downloadvectortilestolocalcache.databinding.ProgressDialogLayoutBinding
import com.google.android.material.snackbar.Snackbar
import kotlinx.coroutines.launch
import java.io.File
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
<color name="colorPrimary">#9243cf</color>
<color name="colorPrimaryDark">#7a2ab7</color>
<color name="colorAccent">#7a2ab7</color>
<color name="dimBackground">#BF000000</color>
</resources>
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<resources>
<string name="app_name">Download vector tiles to local cache</string>
<string name="export_vector_tiles">Download Vector Tiles</string>
<string name="vector_tile_cache_folder">/TileCache/</string>
<string name="preview_text">Preview</string>
<string name="close_button_text">Close</string>
<string name="close_vector_tile_preview">Close vector tile preview</string>
</resources>
2 changes: 2 additions & 0 deletions find-address-with-reverse-geocode/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.findaddresswithreversegeocode'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.findaddresswithreversegeocode">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
2 changes: 2 additions & 0 deletions find-nearest-vertex/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.findnearestvertex'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions find-nearest-vertex/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.findnearestvertex">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
2 changes: 2 additions & 0 deletions find-route/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ android {
buildFeatures {
dataBinding true
}

namespace 'com.esri.arcgismaps.sample.findroute'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions find-route/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.findroute">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
3 changes: 2 additions & 1 deletion generate-offline-map/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ android {

buildFeatures {
dataBinding true
viewBinding true
}

namespace 'com.esri.arcgismaps.sample.generateofflinemap'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions generate-offline-map/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esri.arcgismaps.sample.generateofflinemap">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Loading

0 comments on commit ccd500f

Please sign in to comment.