File tree Expand file tree Collapse file tree
java/com/cmput301f17t11/cupofjava/Views Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,19 +27,18 @@ android {
2727
2828dependencies {
2929 api fileTree(include : [' *.jar' ], dir : ' libs' )
30- implementation ' com.google.android.gms:play-services-maps:11.6.0'
3130 androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
3231 exclude group : ' com.android.support' , module : ' support-annotations'
3332 })
34- compile ' com.android.support.constraint:constraint-layout:1.0.2'
35- compile ' com.android.support:appcompat-v7:25.3.1'
33+ implementation ' com.android.support.constraint:constraint-layout:1.0.2'
34+ implementation ' com.android.support:appcompat-v7:25.3.1'
3635 // compile 'io.searchbox:jest-droid:2.0.0'
37- compile ' com.android.support:design:25.3.1'
36+ implementation ' com.android.support:design:25.3.1'
3837 testCompile ' junit:junit:4.12'
3938 compile files(' src/include/jest-droid-2.0.1-SNAPSHOT.jar' )
4039 implementation ' com.jayway.android.robotium:robotium-solo:5.6.3'
4140 // Map Support Features
42- // compile 'com.google.android.gms:play-services:11.6.2'
43- compile ' com.google.android.gms:play-services-maps :11.6.2'
44- compile ' com.google.android.gms:play-services-location :11.6.2'
41+ implementation ' com.google.android.gms:play-services-maps :11.6.2'
42+ implementation ' com.google.android.gms:play-services-location :11.6.2'
43+ // implementation 'com.google.android.gms:play-services:11.6.2'
4544}
Original file line number Diff line number Diff line change 77 https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=AF:51:71:DA:6C:35:07:9A:FD:7A:0B:2A:DC:3E:BF:F7:66:A0:B5:B6%3Bcom.cmput301f17t11.cupofjava
88
99 You can also add your credentials to an existing key, using these values:
10+ AIzaSyA0JZmP-iJddAOx8hI4RM6jO0J16zMW2M0
1011
1112 Package name:
1213 AF:51:71:DA:6C:35:07:9A:FD:7A:0B:2A:DC:3E:BF:F7:66:A0:B5:B6
2223 -->
2324 <string name =" google_maps_key" templateMergeStrategy =" preserve" translatable =" false" >YOUR_KEY_HERE</string >
2425</resources >
26+
Original file line number Diff line number Diff line change 3333 <uses-permission android : name =" android.permission.WRITE_EXTERNAL_STORAGE" />
3434
3535 <uses-feature android : name =" android.hardware.camera" />
36-
3736 <!--
3837 The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
3938 Google Maps Android API v2, but you must specify either coarse or fine
4443
4544 <application
4645 android : allowBackup =" true"
46+ android : largeHeap =" true"
4747 android : icon =" @drawable/ic_launcher"
4848 android : label =" @string/app_name"
4949 android : roundIcon =" @mipmap/ic_launcher"
Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ protected void onCreate(Bundle savedInstanceState) {
6969 //do nothing
7070 }
7171 else {
72- latitudes [i ] = 0 ;
73- longitudes [i ] = 0 ;
72+ latitudes [i ] = 0.0 ;
73+ longitudes [i ] = 0.0 ;
7474 }
7575 }
7676
You can’t perform that action at this time.
0 commit comments