Guest User

Untitled

a guest
Apr 21st, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  2.  
  3. buildscript {
  4.  
  5. repositories {
  6. google()
  7. jcenter()
  8. mavenCentral()
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:3.1.1'
  12.  
  13.  
  14. // NOTE: Do not place your application dependencies here; they belong
  15. // in the individual module build.gradle files
  16. }
  17. }
  18.  
  19. allprojects {
  20. repositories {
  21. google()
  22. jcenter()
  23. mavenCentral()
  24. }
  25. }
  26.  
  27. task clean(type: Delete) {
  28. delete rootProject.buildDir
  29. }
  30.  
  31. apply plugin: 'com.android.application'
  32.  
  33. android {
  34. compileSdkVersion 27
  35. defaultConfig {
  36. applicationId "com.hosttrafford.mapboxdemoapp"
  37. minSdkVersion 19
  38. targetSdkVersion 27
  39. versionCode 1
  40. versionName "1.0"
  41. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  42. }
  43. buildTypes {
  44. release {
  45. minifyEnabled false
  46. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  47. }
  48. }
  49. }
  50.  
  51. dependencies {
  52. implementation fileTree(dir: 'libs', include: ['*.jar'])
  53. implementation 'com.android.support:appcompat-v7:27.1.1'
  54. implementation 'com.android.support.constraint:constraint-layout:1.1.0'
  55. testImplementation 'junit:junit:4.12'
  56. androidTestImplementation 'com.android.support.test:runner:1.0.1'
  57. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
  58.  
  59. implementation ('com.mapbox.mapboxsdk:mapbox-android-sdk:6.0.1@aar') {
  60. transitive=true
  61. }
  62. implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.12.0'
  63. implementation ('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.12.0') {
  64. transitive = true
  65. }
  66. }
  67.  
  68. import com.mapbox.services.android.telemetry.location.LocationEngine;
  69. import com.mapbox.services.android.telemetry.location.LocationEngineListener;
  70. import com.mapbox.services.android.telemetry.location.LocationEnginePriority;
  71. import com.mapbox.services.android.telemetry.permissions.PermissionsListener;
  72. import com.mapbox.services.android.telemetry.permissions.PermissionsManager;
Add Comment
Please, Sign In to add comment