From 7b516505cdd6b51d06b1d7912dde6a057b8f42cc Mon Sep 17 00:00:00 2001 From: Mathias Claassen Date: Mon, 18 Apr 2016 15:31:28 -0300 Subject: [PATCH] minor Readme update --- Example.xcodeproj/project.pbxproj | 18 ++++++++++++++++++ GooglePlacesRow.podspec | 2 +- GooglePlacesRow.xcodeproj/project.pbxproj | 8 ++++++++ README.md | 12 +++++++----- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/Example.xcodeproj/project.pbxproj b/Example.xcodeproj/project.pbxproj index 0395f3c..89336e9 100644 --- a/Example.xcodeproj/project.pbxproj +++ b/Example.xcodeproj/project.pbxproj @@ -164,6 +164,7 @@ 28F828C91C4B714D00330CF4 /* Frameworks */, 28F828CA1C4B714D00330CF4 /* Resources */, 287D0A811C4B7B55004566D6 /* Embed Frameworks */, + 8F70A5411CC53E8400E7793A /* ShellScript */, ); buildRules = ( ); @@ -273,6 +274,23 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 8F70A5411CC53E8400E7793A /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "$(SRCROOT)/Carthage/Build/iOS/Eureka.framework", + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/usr/local/bin/carthage copy-frameworks"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 28F828C81C4B714D00330CF4 /* Sources */ = { isa = PBXSourcesBuildPhase; diff --git a/GooglePlacesRow.podspec b/GooglePlacesRow.podspec index c05febc..5cfe0b3 100644 --- a/GooglePlacesRow.podspec +++ b/GooglePlacesRow.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| s.frameworks = "Accelerate", "AVFoundation", "CoreData", "CoreGraphics", "CoreBluetooth", "CoreLocation", "CoreText", "Foundation", "GLKit", "ImageIO", "OpenGLES", "QuartzCore", "SystemConfiguration", "GoogleMaps" # required for GoogleMaps.framework s.vendored_frameworks = "Frameworks/GoogleMaps.framework" s.prepare_command = <<-CMD - curl -o GoogleMaps 'https://raw.githubusercontent.com/Reflejo/GoogleMapsPodspec/master/369280b0e1f04cb7-GoogleMaps-1.13.0.tar.gz' + curl -o GoogleMaps 'https://www.gstatic.com/cpdc/369280b0e1f04cb7-GoogleMaps-1.13.0.tar.gz' tar -zxvf GoogleMaps CMD #s.dependency 'GoogleMaps', '~> 1.13' diff --git a/GooglePlacesRow.xcodeproj/project.pbxproj b/GooglePlacesRow.xcodeproj/project.pbxproj index e1479da..542479a 100644 --- a/GooglePlacesRow.xcodeproj/project.pbxproj +++ b/GooglePlacesRow.xcodeproj/project.pbxproj @@ -368,6 +368,10 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.2; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; + OTHER_LDFLAGS = ( + "-ObjC", + "$(inherited)", + ); SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; TARGETED_DEVICE_FAMILY = "1,2"; @@ -409,6 +413,10 @@ GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 9.2; MTL_ENABLE_DEBUG_INFO = NO; + OTHER_LDFLAGS = ( + "-ObjC", + "$(inherited)", + ); SDKROOT = iphoneos; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; diff --git a/README.md b/README.md index c561a4d..c3a4864 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,10 @@ The project is experimental and open to changes although it is already quite cus ## Usage ```swift -// in AppDelegate.swift, specifically application:didFinishLaunchingWithOptions: -// or where ever you want +// in AppDelegate.swift +import GoogleMaps +// then in application:didFinishLaunchingWithOptions: let apiKey = "YOUR_API_KEY" GMSServices.provideAPIKey(apiKey) @@ -73,9 +74,10 @@ If you use **GooglePlacesRow** in your app we would love to hear about it! Drop Follow these steps to run Example project: * Clone GooglePlacesRow repository +* Run `carthage update` in the root of the project +* Due to the fact that the Google Maps binary is too large to be uploaded to Github you will have to get that framework by another means and paste it inside the `Frameworks` folder (create it, if it does not exist). You can for example download it from [here](https://www.gstatic.com/cpdc/369280b0e1f04cb7-GoogleMaps-1.13.0.tar.gz). * Open GooglePlacesRow workspace * **Set your Google places API KEY in `AppDelegate.swift`** -* Due to the fact that the Google Maps binary is too large to be uploaded to Github you will have to get that frame work by another means and paste it inside the `Frameworks` folder (create it, if it does not exist). You can for example download it from [here](https://www.gstatic.com/cpdc/369280b0e1f04cb7-GoogleMaps-1.13.0.tar.gz) * and run the *Example* project. @@ -88,7 +90,7 @@ Follow these steps to run Example project: To install GooglePlacesRow, simply add the following line to your Podfile: ```ruby -pod 'GooglePlacesRow', '~> 1.0' +pod 'GooglePlacesRow' ``` #### Carthage @@ -98,7 +100,7 @@ pod 'GooglePlacesRow', '~> 1.0' To install GooglePlacesRow, simply add the following line to your Cartfile: ```ogdl -github "EurekaCommunity/GooglePlacesRow" ~> 1.0 +github "EurekaCommunity/GooglePlacesRow" ``` ## Customization