Skip to content

Commit 9efa1e6

Browse files
committed
2 parents 4572b9a + b7e805d commit 9efa1e6

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

app/build.gradle

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,18 @@ android {
2727

2828
dependencies {
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
}

app/src/debug/res/values/google_maps_api.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
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
@@ -22,3 +23,4 @@
2223
-->
2324
<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">YOUR_KEY_HERE</string>
2425
</resources>
26+

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
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
@@ -44,6 +43,7 @@
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"

app/src/main/java/com/cmput301f17t11/cupofjava/Views/MapsActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)