Skip to content

Commit

Permalink
hello google maps
Browse files Browse the repository at this point in the history
  • Loading branch information
josebet1 committed Oct 3, 2016
1 parent 0b86052 commit fc87ddc
Show file tree
Hide file tree
Showing 609 changed files with 19,992 additions and 2,383 deletions.
2 changes: 2 additions & 0 deletions HackTX/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#import "AppDelegate.h"

@import Firebase;
@import GoogleMaps;

#import "AnnouncementsViewController.h"
#import "ProfileViewController.h"
Expand All @@ -30,6 +31,7 @@ @implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.

[GMSServices provideAPIKey:@"AIzaSyC8mM3hw_7LInrTqwnWQPSJmikX8O4LfeU"];

This comment has been minimized.

Copy link
@ThomasGaubert

ThomasGaubert Oct 3, 2016

Be careful with API keys. @rohitdatta can get you one from our Google developer account.

This comment has been minimized.

Copy link
@josebet1

josebet1 Oct 3, 2016

Author Collaborator

Ugh committed too early, well too late. This is a random key, so it's no big deal. I'll get a real one from @rohitdatta later on

This comment has been minimized.

Copy link
@ThomasGaubert

ThomasGaubert Oct 3, 2016

👍

This comment has been minimized.

Copy link
@rohitdatta

rohitdatta Oct 4, 2016

Contributor

Generally we have a separate plist file that contains all API keys and gitignore that file otherwise we can use git-crypt

This comment has been minimized.

Copy link
@josebet1

josebet1 Oct 4, 2016

Author Collaborator

I know, I am going to use a plist with a controller to load them all. Late night coding got the best of me in this diff.

[FIRApp configure];

ScheduleViewController *vc1 = [[ScheduleViewController alloc] init];
Expand Down
16 changes: 16 additions & 0 deletions HackTX/MapViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import "MapViewController.h"
#import <GoogleMaps/GoogleMaps.h>
#import "HTXAPI.h"

@interface MapViewController ()
Expand All @@ -15,6 +16,21 @@ @interface MapViewController ()

@implementation MapViewController

- (void)loadView {
GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:30.268915
longitude:-97.740378
zoom:19];
GMSMapView *mapView = [GMSMapView mapWithFrame:CGRectZero camera:camera];
mapView.settings.rotateGestures = NO;
self.view = mapView;

// Creates a marker in the center of the map.
GMSMarker *marker = [[GMSMarker alloc] init];
marker.position = CLLocationCoordinate2DMake(30.268915, -97.740378);
marker.title = @"HackTX 2016";
marker.map = mapView;
}

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
Expand Down
2 changes: 2 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ target 'HackTX' do
pod 'AFNetworking'
pod 'FCAlertView'
pod 'ChameleonFramework'
pod 'GoogleMaps'
pod 'GooglePlaces'
end
13 changes: 12 additions & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ PODS:
- FirebaseInstanceID (1.0.8)
- GoogleInterchangeUtilities (1.2.1):
- GoogleSymbolUtilities (~> 1.0)
- GoogleMaps (2.1.0):
- GoogleMaps/Maps (= 2.1.0)
- GoogleMaps/Base (2.1.0)
- GoogleMaps/Maps (2.1.0):
- GoogleMaps/Base (= 2.1.0)
- GooglePlaces (2.1.0):
- GoogleMaps/Base (= 2.1.0)
- GoogleSymbolUtilities (1.1.1)
- GoogleUtilities (1.3.1):
- GoogleSymbolUtilities (~> 1.0)
Expand All @@ -45,6 +52,8 @@ DEPENDENCIES:
- ChameleonFramework
- FCAlertView
- Firebase
- GoogleMaps
- GooglePlaces
- MBProgressHUD (~> 1.0.0)
- Realm

Expand All @@ -56,11 +65,13 @@ SPEC CHECKSUMS:
FirebaseAnalytics: 3f5358d9104adf159cc8d99b7b501e50099a39ad
FirebaseInstanceID: ba1e640935235e5fac39dfa816fe7660e72e1a8a
GoogleInterchangeUtilities: def8415a862effc67d549d5b5b0b9c7a2f97d4de
GoogleMaps: 06589b9a38097bce0cd6e90f0fd9b5e4b4a9344c
GooglePlaces: 16e96266483b8010e9f275399403647978523c86
GoogleSymbolUtilities: 33117db1b5f290c6fbf259585e4885b4c84b98d7
GoogleUtilities: 56c5ac05b7aa5dc417a1bb85221a9516e04d7032
MBProgressHUD: 4890f671c94e8a0f3cf959aa731e9de2f036d71a
Realm: 6dda421ae4b3e9a09742fc2cf4b876d459cbedcd

PODFILE CHECKSUM: 776c46c4e8bcad89996904f4241573b45d467231
PODFILE CHECKSUM: aac7be216466248b87e14f5f37b56593e6e7d800

COCOAPODS: 1.0.1
Loading

0 comments on commit fc87ddc

Please sign in to comment.