Merge branch 'googleios-update' into update-16-04

This commit is contained in:
Israel Soto 2016-05-05 13:25:24 -05:00
Родитель 8f88c3bd37 f1a8dd2d38
Коммит 179158426e
53 изменённых файлов: 908 добавлений и 1771 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -6,3 +6,4 @@ tools
externals
tmp-nugets
*.designer.cs
*.userprefs

Просмотреть файл

@ -14,8 +14,8 @@
<iconUrl>https://xamarin-component-icons.s3.amazonaws.com/Xamarin.Google.iOS.png</iconUrl>
<dependencies>
<dependency id="Xamarin.Build.Download" version="0.2.1"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.3.0"/>
<dependency id="Xamarin.Google.iOS.SignIn" version="2.4.0.3"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.4.0"/>
<dependency id="Xamarin.Google.iOS.SignIn" version="3.0.0.0"/>
</dependencies>
</metadata>
<files>

2
Google.Core/externals/Podfile поставляемый
Просмотреть файл

@ -2,5 +2,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'Google/Core', '2.0.3'
pod 'Google/Core', '2.0.4'
pod 'GoogleInterchangeUtilities', '1.2.0'

Просмотреть файл

@ -3,7 +3,7 @@
<metadata>
<id>Xamarin.Google.iOS.Core</id>
<title>Google APIs Core iOS Library</title>
<version>2.0.3.0</version>
<version>2.0.4.0</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>

Просмотреть файл

@ -64,8 +64,8 @@
<Compile Include="libGTM_KVO_external.linkwith.cs">
<DependentUpon>libGTM_KVO_external.a</DependentUpon>
</Compile>
<Compile Include="libGTM_NSData+zlib_external.linkwith.cs">
<DependentUpon>libGTM_NSData+zlib_external.a</DependentUpon>
<Compile Include="libGTM_NSData+zlib.linkwith.cs">
<DependentUpon>libGTM_NSData+zlib.a</DependentUpon>
</Compile>
<Compile Include="libGTM_NSDictionary+URLArguments_external.linkwith.cs">
<DependentUpon>libGTM_NSDictionary+URLArguments_external.a</DependentUpon>

Просмотреть файл

@ -2,15 +2,15 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_GoogleCoreAssemblyName>Google.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleCoreAssemblyName>
<_GoogleCoreItemsFolder>GCre-2.0.3</_GoogleCoreItemsFolder>
<_GoogleCoreItemsFolder>GCre-2.0.4</_GoogleCoreItemsFolder>
<_GoogleInterchangeUtilitiesItemsFolder>GIntrchngeU-1.2.0</_GoogleInterchangeUtilitiesItemsFolder>
<_GoogleNetworkingUtilitiesItemsFolder>GNtwrkngU-1.2.0</_GoogleNetworkingUtilitiesItemsFolder>
<_GoogleSymbolUtilitiesItemsFolder>GSymblU-1.1.0</_GoogleSymbolUtilitiesItemsFolder>
<_GoogleUtilitiesItemsFolder>GUtls-1.2.0</_GoogleUtilitiesItemsFolder>
<_GoogleUtilitiesItemsFolder>GUtls-1.3.0</_GoogleUtilitiesItemsFolder>
</PropertyGroup>
<ItemGroup Condition="'$(OutputType)'!='Library'">
<XamarinBuildDownload Include="$(_GoogleCoreItemsFolder)">
<Url>https://www.gstatic.com/cpdc/a96d915a636d0afb-Google-2.0.3.tar.gz</Url>
<Url>https://www.gstatic.com/cpdc/a96d915a636d0afb-Google-2.0.4.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GoogleInterchangeUtilitiesItemsFolder)">
@ -26,7 +26,7 @@
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GoogleUtilitiesItemsFolder)">
<Url>https://www.gstatic.com/cpdc/5a907179e75e34cf-GoogleUtilities-1.2.0.tar.gz</Url>
<Url>https://www.gstatic.com/cpdc/5a907179e75e34cf-GoogleUtilities-1.3.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildRestoreResources Include="_GoogleCoreItems" />
@ -57,8 +57,8 @@
<LogicalName>libGTM_KVO_external.a</LogicalName>
<AssemblyName>$(_GoogleCoreAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleUtilitiesItemsFolder)\Libraries\libGTM_NSData+zlib_external.a">
<LogicalName>libGTM_NSData+zlib_external.a</LogicalName>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleUtilitiesItemsFolder)\Libraries\libGTM_NSData+zlib.a">
<LogicalName>libGTM_NSData+zlib.a</LogicalName>
<AssemblyName>$(_GoogleCoreAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleUtilitiesItemsFolder)\Libraries\libGTM_NSDictionary+URLArguments_external.a">

Просмотреть файл

@ -0,0 +1,4 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libGTM_NSData+zlib.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -1,4 +0,0 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libGTM_NSData+zlib_external.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -14,8 +14,8 @@
<iconUrl>https://xamarin-component-icons.s3.amazonaws.com/Xamarin.Google.iOS.png</iconUrl>
<dependencies>
<dependency id="Xamarin.Build.Download" version="0.2.1"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.3.0"/>
<dependency id="Xamarin.Google.iOS.InstanceID" version="1.1.6.0"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.4.0"/>
<dependency id="Xamarin.Google.iOS.InstanceID" version="1.2.1.0"/>
</dependencies>
</metadata>
<files>

Просмотреть файл

@ -1,4 +1,4 @@
version: 1.1.6.0
version: 1.2.1.0
name: Google Instance ID for iOS
id: googleiosinstanceid
publisher: Xamarin Inc.
@ -16,7 +16,7 @@ libraries:
is_shell: true
packages:
ios-unified:
- Xamarin.Google.iOS.InstanceID, Version=1.1.6.0
- Xamarin.Google.iOS.InstanceID, Version=1.2.1.0
samples:
- name: "InstanceID Sample"
path: ../samples/InstanceIDSample/InstanceIDSample.sln

2
Google.InstanceID/externals/Podfile поставляемый
Просмотреть файл

@ -2,6 +2,6 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'GGLInstanceID', '1.1.6'
pod 'GGLInstanceID', '1.2.1'
pod 'GoogleIPhoneUtilities', '1.2.0'

Просмотреть файл

@ -3,7 +3,7 @@
<metadata>
<id>Xamarin.Google.iOS.InstanceID</id>
<title>Google APIs Instance ID iOS Library</title>
<version>1.1.6.0</version>
<version>1.2.1.0</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@ -14,7 +14,7 @@
<iconUrl>https://xamarin-component-icons.s3.amazonaws.com/Xamarin.Google.iOS.png</iconUrl>
<dependencies>
<dependency id="Xamarin.Build.Download" version="0.2.1"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.3.0"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.4.0"/>
</dependencies>
</metadata>
<files>

Просмотреть файл

@ -2,13 +2,13 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_GoogleInstanceIDAssemblyName>Google.InstanceID, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleInstanceIDAssemblyName>
<_GGLInstanceIDId>GGLInstncID-1.1.6</_GGLInstanceIDId>
<_GGLInstanceIDId>GGLInstncID-1.2.1</_GGLInstanceIDId>
<_GoogleIIDIPhoneUtilitiesId>GIPhnU-1.2.0</_GoogleIIDIPhoneUtilitiesId>
</PropertyGroup>
<ItemGroup Condition="'$(OutputType)'!='Library'">
<XamarinBuildRestoreResources Include="_GoogleInstanceIDItems" />
<XamarinBuildDownload Include="$(_GGLInstanceIDId)">
<Url>https://www.gstatic.com/cpdc/152d2053eec41749-GGLInstanceID-1.1.6.tar.gz</Url>
<Url>https://www.gstatic.com/cpdc/170d1b170ae1d063-GGLInstanceID-1.2.1.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GoogleIIDIPhoneUtilitiesId)">

Просмотреть файл

@ -1,4 +1,4 @@
version: 1.13.0.0
version: 1.13.1.0
name: Google Maps for iOS
id: googleiosmaps
publisher: Xamarin Inc.
@ -15,7 +15,7 @@ libraries:
is_shell: true
packages:
ios-unified:
- Xamarin.Google.iOS.Maps, Version=1.13.0.0
- Xamarin.Google.iOS.Maps, Version=1.13.1.0
samples:
- name: "Google Maps Sample"
path: ../samples/GoogleMapsSample/GoogleMapsSample.sln

Просмотреть файл

@ -1,265 +0,0 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
2114C2E61BBED6B60094D143 /* FieldExporter.m in Sources */ = {isa = PBXBuildFile; fileRef = 2114C2E11BBED6B60094D143 /* FieldExporter.m */; settings = {ASSET_TAGS = (); }; };
2114C2E71BBED6B60094D143 /* GeometryUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 2114C2E31BBED6B60094D143 /* GeometryUtils.m */; settings = {ASSET_TAGS = (); }; };
2114C2E81BBED6B60094D143 /* PlaceTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 2114C2E51BBED6B60094D143 /* PlaceTypes.m */; settings = {ASSET_TAGS = (); }; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
2114C2D21BBED65A0094D143 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/$(PRODUCT_NAME)";
dstSubfolderSpec = 16;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
2114C2D41BBED65A0094D143 /* libFieldExporter.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libFieldExporter.a; sourceTree = BUILT_PRODUCTS_DIR; };
2114C2E01BBED6B60094D143 /* FieldExporter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FieldExporter.h; sourceTree = "<group>"; };
2114C2E11BBED6B60094D143 /* FieldExporter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FieldExporter.m; sourceTree = "<group>"; };
2114C2E21BBED6B60094D143 /* GeometryUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GeometryUtils.h; sourceTree = "<group>"; };
2114C2E31BBED6B60094D143 /* GeometryUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeometryUtils.m; sourceTree = "<group>"; };
2114C2E41BBED6B60094D143 /* PlaceTypes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PlaceTypes.h; sourceTree = "<group>"; };
2114C2E51BBED6B60094D143 /* PlaceTypes.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PlaceTypes.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
2114C2D11BBED65A0094D143 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
2114C2CB1BBED65A0094D143 = {
isa = PBXGroup;
children = (
2114C2D61BBED65A0094D143 /* FieldExporter */,
2114C2D51BBED65A0094D143 /* Products */,
);
sourceTree = "<group>";
};
2114C2D51BBED65A0094D143 /* Products */ = {
isa = PBXGroup;
children = (
2114C2D41BBED65A0094D143 /* libFieldExporter.a */,
);
name = Products;
sourceTree = "<group>";
};
2114C2D61BBED65A0094D143 /* FieldExporter */ = {
isa = PBXGroup;
children = (
2114C2E01BBED6B60094D143 /* FieldExporter.h */,
2114C2E11BBED6B60094D143 /* FieldExporter.m */,
2114C2E21BBED6B60094D143 /* GeometryUtils.h */,
2114C2E31BBED6B60094D143 /* GeometryUtils.m */,
2114C2E41BBED6B60094D143 /* PlaceTypes.h */,
2114C2E51BBED6B60094D143 /* PlaceTypes.m */,
);
path = FieldExporter;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
2114C2D31BBED65A0094D143 /* FieldExporter */ = {
isa = PBXNativeTarget;
buildConfigurationList = 2114C2DD1BBED65A0094D143 /* Build configuration list for PBXNativeTarget "FieldExporter" */;
buildPhases = (
2114C2D01BBED65A0094D143 /* Sources */,
2114C2D11BBED65A0094D143 /* Frameworks */,
2114C2D21BBED65A0094D143 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = FieldExporter;
productName = FieldExporter;
productReference = 2114C2D41BBED65A0094D143 /* libFieldExporter.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
2114C2CC1BBED65A0094D143 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = Xamarin;
TargetAttributes = {
2114C2D31BBED65A0094D143 = {
CreatedOnToolsVersion = 7.0;
};
};
};
buildConfigurationList = 2114C2CF1BBED65A0094D143 /* Build configuration list for PBXProject "FieldExporter" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
);
mainGroup = 2114C2CB1BBED65A0094D143;
productRefGroup = 2114C2D51BBED65A0094D143 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
2114C2D31BBED65A0094D143 /* FieldExporter */,
);
};
/* End PBXProject section */
/* Begin PBXSourcesBuildPhase section */
2114C2D01BBED65A0094D143 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2114C2E81BBED6B60094D143 /* PlaceTypes.m in Sources */,
2114C2E61BBED6B60094D143 /* FieldExporter.m in Sources */,
2114C2E71BBED6B60094D143 /* GeometryUtils.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
2114C2DB1BBED65A0094D143 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
2114C2DC1BBED65A0094D143 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
2114C2DE1BBED65A0094D143 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
HEADER_SEARCH_PATHS = ../Pods/Headers/Public/GoogleMaps;
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Debug;
};
2114C2DF1BBED65A0094D143 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
HEADER_SEARCH_PATHS = ../Pods/Headers/Public/GoogleMaps;
IPHONEOS_DEPLOYMENT_TARGET = 7.1;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
2114C2CF1BBED65A0094D143 /* Build configuration list for PBXProject "FieldExporter" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2114C2DB1BBED65A0094D143 /* Debug */,
2114C2DC1BBED65A0094D143 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
2114C2DD1BBED65A0094D143 /* Build configuration list for PBXNativeTarget "FieldExporter" */ = {
isa = XCConfigurationList;
buildConfigurations = (
2114C2DE1BBED65A0094D143 /* Debug */,
2114C2DF1BBED65A0094D143 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 2114C2CC1BBED65A0094D143 /* Project object */;
}

Просмотреть файл

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:FieldExporter.xcodeproj">
</FileRef>
</Workspace>

Просмотреть файл

@ -1,43 +0,0 @@
//
// GAFieldExporter.h
// GAFieldExporter
//
// Created by Jonathan Dick on 2015-07-10.
// Copyright (c) 2015 Xamarin. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "GoogleMaps/GoogleMaps.h"
@interface GMSFieldExporter : NSObject {
}
+ (NSString *) kGMSLayerCameraLatitudeKeyExported;
+ (NSString *) kGMSLayerCameraLongitudeKeyExported;
+ (NSString *) kGMSLayerCameraBearingKeyExported;
+ (NSString *) kGMSLayerCameraZoomLevelKeyExported;
+ (NSString *) kGMSLayerCameraViewingAngleKeyExported;
+ (float) kGMSMaxZoomLevelExported;
+ (float) kGMSMinZoomLevelExported;
+ (CGPoint) kGMSGroundOverlayDefaultAnchorExported;
+ (CGPoint) kGMSMarkerDefaultGroundAnchorExported;
+ (CGPoint) kGMSMarkerDefaultInfoWindowAnchorExported;
+ (UIImage *) kGMSTileLayerNoTileExported;
+ (NSString *) kGMSLayerPanoramaFOVKeyExported;
+ (NSString *)kGMSLayerPanoramaHeadingKeyExported;
+ (NSString *) kGMSLayerPanoramaPitchKeyExported;
+ (NSString *) kGMSLayerPanoramaZoomKeyExported;
+ (NSString *) kGMSMarkerLayerLatitudeExported;
+ (NSString *) kGMSMarkerLayerLongitudeExported;
+ (NSString *) kGMSMarkerLayerRotationExported;
+ (double) kGMSEarthRadiusExported;
+ (NSString *) kGMSAccessibilityCompassExported;
+ (NSString *) kGMSAccessibilityMyLocationExported;
+ (double) kGMSEquatorProjectedMeterExported;
+ (NSString *) kGMSAutocompleteMatchAttributeExported;
+ (NSString *) kGMSPlacePickerErrorDomainExported;
+ (NSString *) kGMSPlacesErrorDomainExported;
@end

Просмотреть файл

@ -1,114 +0,0 @@
//
// FieldExporter.m
// FieldExporter
//
// Created by Jonathan Dick on 2015-07-10.
// Copyright (c) 2015 Xamarin. All rights reserved.
//
#import "FieldExporter.h"
@implementation GMSFieldExporter
+ (NSString *) kGMSLayerCameraLatitudeKeyExported {
return kGMSLayerCameraLatitudeKey;
}
+ (NSString *) kGMSLayerCameraLongitudeKeyExported
{
return kGMSLayerCameraLongitudeKey;
}
+ (NSString *) kGMSLayerCameraBearingKeyExported {
return kGMSLayerCameraBearingKey;
}
+ (NSString *) kGMSLayerCameraZoomLevelKeyExported {
return kGMSLayerCameraZoomLevelKey;
}
+ (NSString *) kGMSLayerCameraViewingAngleKeyExported {
return kGMSLayerCameraViewingAngleKey;
}
+ (float) kGMSMaxZoomLevelExported {
return kGMSMaxZoomLevel;
}
+ (float) kGMSMinZoomLevelExported {
return kGMSMinZoomLevel;
}
+ (CGPoint) kGMSGroundOverlayDefaultAnchorExported {
return kGMSGroundOverlayDefaultAnchor;
}
+ (CGPoint) kGMSMarkerDefaultGroundAnchorExported {
return kGMSMarkerDefaultGroundAnchor;
}
+ (CGPoint) kGMSMarkerDefaultInfoWindowAnchorExported {
return kGMSMarkerDefaultInfoWindowAnchor;
}
+ (UIImage *) kGMSTileLayerNoTileExported {
return kGMSTileLayerNoTile;
}
+ (NSString *) kGMSLayerPanoramaFOVKeyExported {
return kGMSLayerPanoramaFOVKey;
}
+ (NSString *) kGMSLayerPanoramaHeadingKeyExported {
return kGMSLayerPanoramaHeadingKey;
}
+ (NSString *) kGMSLayerPanoramaPitchKeyExported {
return kGMSLayerPanoramaPitchKey;
}
+ (NSString *) kGMSLayerPanoramaZoomKeyExported {
return kGMSLayerPanoramaZoomKey;
}
+ (NSString *) kGMSMarkerLayerLatitudeExported {
return kGMSMarkerLayerLatitude;
}
+ (NSString *) kGMSMarkerLayerLongitudeExported {
return kGMSMarkerLayerLongitude;
}
+ (NSString *) kGMSMarkerLayerRotationExported {
return kGMSMarkerLayerRotation;
}
+ (double) kGMSEarthRadiusExported {
return kGMSEarthRadius;
}
+ (NSString *) kGMSAccessibilityCompassExported {
return kGMSAccessibilityCompass;
}
+ (NSString *) kGMSAccessibilityMyLocationExported {
return kGMSAccessibilityMyLocation;
}
+ (double) kGMSEquatorProjectedMeterExported {
return kGMSEquatorProjectedMeter;
}
+ (NSString *) kGMSAutocompleteMatchAttributeExported {
return kGMSAutocompleteMatchAttribute;
}
+ (NSString *) kGMSPlacePickerErrorDomainExported {
return kGMSPlacePickerErrorDomain;
}
+ (NSString *) kGMSPlacesErrorDomainExported {
return kGMSPlacesErrorDomain;
}
@end

Просмотреть файл

@ -1,48 +0,0 @@
//
// GeometryUtils.h
// libGoogleMapsExporter
//
// Created by Alex Soto on 9/9/13.
// Copyright (c) 2013 Alex Soto. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <GoogleMaps/GoogleMaps.h>
@interface GeometryUtils : NSObject {
}
+ (GMSMapPoint) projectWithCoordinate:(CLLocationCoordinate2D)coordinate;
+ (CLLocationCoordinate2D) unprojectWithMapPoint:(GMSMapPoint)point;
+ (GMSMapPoint) mapPointInterpolateWithMapPoint:(GMSMapPoint)a andMapPoint:(GMSMapPoint)b andT:(double)t;
+ (double) mapPointDistanceFromPoint:(GMSMapPoint)a andMapPoint:(GMSMapPoint)b;
+ (BOOL) geometryContainsLocation:(CLLocationCoordinate2D)point path:(GMSPath *)path geodesic:(BOOL)geodesic;
+ (BOOL) geometryIsLocationOnPath:(CLLocationCoordinate2D)point path:(GMSPath *)path geodesic:(BOOL)geodesic tolerance:(CLLocationDistance)tolerance;
+ (BOOL) geometryIsLocationOnPath:(CLLocationCoordinate2D)point path:(GMSPath *)path geodesic:(BOOL)geodesic;
+ (CLLocationDistance) geometryDistance:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to;
+ (CLLocationDistance) geometryLength:(GMSPath *)path;
+ (double) geometryArea:(GMSPath *)path;
+ (double) geometrySignedArea:(GMSPath *)path;
+ (CLLocationDirection) geometryHeading:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to;
+ (CLLocationCoordinate2D) geometryOffset:(CLLocationCoordinate2D)from distance:(CLLocationDistance)distance heading:(CLLocationDirection)heading;
+ (CLLocationCoordinate2D) geometryInterpolate:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to fraction:(double)fraction;
+ (NSArray *) styleSpansFrom:(GMSPath *)path andStyles:(NSArray *)styles andLengths:(NSArray *)lengths andLenghtKind:(GMSLengthKind)lengthKind;
+ (NSArray *) styleSpansFrom:(GMSPath *)path andStyles:(NSArray *)styles andLengths:(NSArray *)lengths andLenghtKind:(GMSLengthKind)lengthKind andLengthOffset:(double)lengthOffset;
@end

Просмотреть файл

@ -1,77 +0,0 @@
//
// GeometryUtils.m
// libGoogleMapsExporter
//
// Created by Alex Soto on 9/9/13.
// Copyright (c) 2013 Alex Soto. All rights reserved.
//
#import "GeometryUtils.h"
@implementation GeometryUtils
+ (GMSMapPoint) projectWithCoordinate:(CLLocationCoordinate2D)coordinate {
return GMSProject(coordinate);
}
+ (CLLocationCoordinate2D) unprojectWithMapPoint:(GMSMapPoint)point {
return GMSUnproject(point);
}
+ (GMSMapPoint) mapPointInterpolateWithMapPoint:(GMSMapPoint)a andMapPoint:(GMSMapPoint)b andT:(double)t {
return GMSMapPointInterpolate(a,b,t);
}
+ (double) mapPointDistanceFromPoint:(GMSMapPoint)a andMapPoint:(GMSMapPoint)b {
return GMSMapPointDistance(a,b);
}
+ (BOOL) geometryContainsLocation:(CLLocationCoordinate2D)point path:(GMSPath *)path geodesic:(BOOL)geodesic {
return GMSGeometryContainsLocation(point, path, geodesic);
}
+ (BOOL) geometryIsLocationOnPath:(CLLocationCoordinate2D)point path:(GMSPath *)path geodesic:(BOOL)geodesic tolerance:(CLLocationDistance)tolerance {
return GMSGeometryIsLocationOnPathTolerance(point, path, geodesic, tolerance);
}
+ (BOOL) geometryIsLocationOnPath:(CLLocationCoordinate2D)point path:(GMSPath *)path geodesic:(BOOL)geodesic {
return GMSGeometryIsLocationOnPath(point, path, geodesic);
}
+ (CLLocationDistance) geometryDistance:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to {
return GMSGeometryDistance(from, to);
}
+ (CLLocationDistance) geometryLength:(GMSPath *)path {
return GMSGeometryLength(path);
}
+ (double) geometryArea:(GMSPath *)path {
return GMSGeometryArea(path);
}
+ (double) geometrySignedArea:(GMSPath *)path {
return GMSGeometrySignedArea(path);
}
+ (CLLocationDirection) geometryHeading:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to {
return GMSGeometryHeading(from, to);
}
+ (CLLocationCoordinate2D) geometryOffset:(CLLocationCoordinate2D)from distance:(CLLocationDistance)distance heading:(CLLocationDirection)heading {
return GMSGeometryOffset(from, distance, heading);
}
+ (CLLocationCoordinate2D) geometryInterpolate:(CLLocationCoordinate2D)from to:(CLLocationCoordinate2D)to fraction:(double)fraction {
return GMSGeometryInterpolate(from, to, fraction);
}
+ (NSArray *) styleSpansFrom:(GMSPath *)path andStyles:(NSArray *)styles andLengths:(NSArray *)lengths andLenghtKind:(GMSLengthKind)lengthKind {
return GMSStyleSpans(path, styles, lengths, lengthKind);
}
+ (NSArray *) styleSpansFrom:(GMSPath *)path andStyles:(NSArray *)styles andLengths:(NSArray *)lengths andLenghtKind:(GMSLengthKind)lengthKind andLengthOffset:(double)lengthOffset {
return GMSStyleSpansOffset(path, styles, lengths, lengthKind, lengthOffset);
}
@end

Просмотреть файл

@ -1,140 +0,0 @@
//
// PlaceTypes.h
// libGoogleMapsExporter
//
// Created by Israel Soto on 6/17/15.
// Copyright (c) 2015 Alex Soto. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <GoogleMaps/GMSPlaceTypes.h>
@interface PlaceTypes : NSObject
+ (NSString *)kGMSPlaceTypeAccountingExported;
+ (NSString *)kGMSPlaceTypeAdministrativeAreaLevel1Exported;
+ (NSString *)kGMSPlaceTypeAdministrativeAreaLevel2Exported;
+ (NSString *)kGMSPlaceTypeAdministrativeAreaLevel3Exported;
+ (NSString *)kGMSPlaceTypeAirportExported;
+ (NSString *)kGMSPlaceTypeAmusementParkExported;
+ (NSString *)kGMSPlaceTypeAquariumExported;
+ (NSString *)kGMSPlaceTypeArtGalleryExported;
+ (NSString *)kGMSPlaceTypeAtmExported;
+ (NSString *)kGMSPlaceTypeBakeryExported;
+ (NSString *)kGMSPlaceTypeBankExported;
+ (NSString *)kGMSPlaceTypeBarExported;
+ (NSString *)kGMSPlaceTypeBeautySalonExported;
+ (NSString *)kGMSPlaceTypeBicycleStoreExported;
+ (NSString *)kGMSPlaceTypeBookStoreExported;
+ (NSString *)kGMSPlaceTypeBowlingAlleyExported;
+ (NSString *)kGMSPlaceTypeBusStationExported;
+ (NSString *)kGMSPlaceTypeCafeExported;
+ (NSString *)kGMSPlaceTypeCampgroundExported;
+ (NSString *)kGMSPlaceTypeCarDealerExported;
+ (NSString *)kGMSPlaceTypeCarRentalExported;
+ (NSString *)kGMSPlaceTypeCarRepairExported;
+ (NSString *)kGMSPlaceTypeCarWashExported;
+ (NSString *)kGMSPlaceTypeCasinoExported;
+ (NSString *)kGMSPlaceTypeCemeteryExported;
+ (NSString *)kGMSPlaceTypeChurchExported;
+ (NSString *)kGMSPlaceTypeCityHallExported;
+ (NSString *)kGMSPlaceTypeClothingStoreExported;
+ (NSString *)kGMSPlaceTypeColloquialAreaExported;
+ (NSString *)kGMSPlaceTypeConvenienceStoreExported;
+ (NSString *)kGMSPlaceTypeCountryExported;
+ (NSString *)kGMSPlaceTypeCourthouseExported;
+ (NSString *)kGMSPlaceTypeDentistExported;
+ (NSString *)kGMSPlaceTypeDepartmentStoreExported;
+ (NSString *)kGMSPlaceTypeDoctorExported;
+ (NSString *)kGMSPlaceTypeElectricianExported;
+ (NSString *)kGMSPlaceTypeElectronicsStoreExported;
+ (NSString *)kGMSPlaceTypeEmbassyExported;
+ (NSString *)kGMSPlaceTypeEstablishmentExported;
+ (NSString *)kGMSPlaceTypeFinanceExported;
+ (NSString *)kGMSPlaceTypeFireStationExported;
+ (NSString *)kGMSPlaceTypeFloorExported;
+ (NSString *)kGMSPlaceTypeFloristExported;
+ (NSString *)kGMSPlaceTypeFoodExported;
+ (NSString *)kGMSPlaceTypeFuneralHomeExported;
+ (NSString *)kGMSPlaceTypeFurnitureStoreExported;
+ (NSString *)kGMSPlaceTypeGasStationExported;
+ (NSString *)kGMSPlaceTypeGeneralContractorExported;
+ (NSString *)kGMSPlaceTypeGeocodeExported;
+ (NSString *)kGMSPlaceTypeGroceryOrSupermarketExported;
+ (NSString *)kGMSPlaceTypeGymExported;
+ (NSString *)kGMSPlaceTypeHairCareExported;
+ (NSString *)kGMSPlaceTypeHardwareStoreExported;
+ (NSString *)kGMSPlaceTypeHealthExported;
+ (NSString *)kGMSPlaceTypeHinduTempleExported;
+ (NSString *)kGMSPlaceTypeHomeGoodsStoreExported;
+ (NSString *)kGMSPlaceTypeHospitalExported;
+ (NSString *)kGMSPlaceTypeInsuranceAgencyExported;
+ (NSString *)kGMSPlaceTypeIntersectionExported;
+ (NSString *)kGMSPlaceTypeJewelryStoreExported;
+ (NSString *)kGMSPlaceTypeLaundryExported;
+ (NSString *)kGMSPlaceTypeLawyerExported;
+ (NSString *)kGMSPlaceTypeLibraryExported;
+ (NSString *)kGMSPlaceTypeLiquorStoreExported;
+ (NSString *)kGMSPlaceTypeLocalGovernmentOfficeExported;
+ (NSString *)kGMSPlaceTypeLocalityExported;
+ (NSString *)kGMSPlaceTypeLocksmithExported;
+ (NSString *)kGMSPlaceTypeLodgingExported;
+ (NSString *)kGMSPlaceTypeMealDeliveryExported;
+ (NSString *)kGMSPlaceTypeMealTakeawayExported;
+ (NSString *)kGMSPlaceTypeMosqueExported;
+ (NSString *)kGMSPlaceTypeMovieRentalExported;
+ (NSString *)kGMSPlaceTypeMovieTheaterExported;
+ (NSString *)kGMSPlaceTypeMovingCompanyExported;
+ (NSString *)kGMSPlaceTypeMuseumExported;
+ (NSString *)kGMSPlaceTypeNaturalFeatureExported;
+ (NSString *)kGMSPlaceTypeNeighborhoodExported;
+ (NSString *)kGMSPlaceTypeNightClubExported;
+ (NSString *)kGMSPlaceTypePainterExported;
+ (NSString *)kGMSPlaceTypeParkExported;
+ (NSString *)kGMSPlaceTypeParkingExported;
+ (NSString *)kGMSPlaceTypePetStoreExported;
+ (NSString *)kGMSPlaceTypePharmacyExported;
+ (NSString *)kGMSPlaceTypePhysiotherapistExported;
+ (NSString *)kGMSPlaceTypePlaceOfWorshipExported;
+ (NSString *)kGMSPlaceTypePlumberExported;
+ (NSString *)kGMSPlaceTypePointOfInterestExported;
+ (NSString *)kGMSPlaceTypePoliceExported;
+ (NSString *)kGMSPlaceTypePoliticalExported;
+ (NSString *)kGMSPlaceTypePostBoxExported;
+ (NSString *)kGMSPlaceTypePostOfficeExported;
+ (NSString *)kGMSPlaceTypePostalCodeExported;
+ (NSString *)kGMSPlaceTypePostalCodePrefixExported;
+ (NSString *)kGMSPlaceTypePostalTownExported;
+ (NSString *)kGMSPlaceTypePremiseExported;
+ (NSString *)kGMSPlaceTypeRealEstateAgencyExported;
+ (NSString *)kGMSPlaceTypeRestaurantExported;
+ (NSString *)kGMSPlaceTypeRoofingContractorExported;
+ (NSString *)kGMSPlaceTypeRoomExported;
+ (NSString *)kGMSPlaceTypeRouteExported;
+ (NSString *)kGMSPlaceTypeRvParkExported;
+ (NSString *)kGMSPlaceTypeSchoolExported;
+ (NSString *)kGMSPlaceTypeShoeStoreExported;
+ (NSString *)kGMSPlaceTypeShoppingMallExported;
+ (NSString *)kGMSPlaceTypeSpaExported;
+ (NSString *)kGMSPlaceTypeStadiumExported;
+ (NSString *)kGMSPlaceTypeStorageExported;
+ (NSString *)kGMSPlaceTypeStoreExported;
+ (NSString *)kGMSPlaceTypeStreetAddressExported;
+ (NSString *)kGMSPlaceTypeSublocalityExported;
+ (NSString *)kGMSPlaceTypeSublocalityLevel1Exported;
+ (NSString *)kGMSPlaceTypeSublocalityLevel2Exported;
+ (NSString *)kGMSPlaceTypeSublocalityLevel3Exported;
+ (NSString *)kGMSPlaceTypeSublocalityLevel4Exported;
+ (NSString *)kGMSPlaceTypeSublocalityLevel5Exported;
+ (NSString *)kGMSPlaceTypeSubpremiseExported;
+ (NSString *)kGMSPlaceTypeSubwayStationExported;
+ (NSString *)kGMSPlaceTypeSynagogueExported;
+ (NSString *)kGMSPlaceTypeTaxiStandExported;
+ (NSString *)kGMSPlaceTypeTrainStationExported;
+ (NSString *)kGMSPlaceTypeTransitStationExported;
+ (NSString *)kGMSPlaceTypeTravelAgencyExported;
+ (NSString *)kGMSPlaceTypeUniversityExported;
+ (NSString *)kGMSPlaceTypeVeterinaryCareExported;
+ (NSString *)kGMSPlaceTypeZooExported;
@end

Просмотреть файл

@ -1,515 +0,0 @@
//
// PlaceTypes.m
// libGoogleMapsExporter
//
// Created by Israel Soto on 6/17/15.
// Copyright (c) 2015 Alex Soto. All rights reserved.
//
#import "PlaceTypes.h"
@implementation PlaceTypes
+ (NSString *)kGMSPlaceTypeAccountingExported {
return kGMSPlaceTypeAccounting;
}
+ (NSString *)kGMSPlaceTypeAdministrativeAreaLevel1Exported {
return kGMSPlaceTypeAdministrativeAreaLevel1;
}
+ (NSString *)kGMSPlaceTypeAdministrativeAreaLevel2Exported {
return kGMSPlaceTypeAdministrativeAreaLevel2;
}
+ (NSString *)kGMSPlaceTypeAdministrativeAreaLevel3Exported {
return kGMSPlaceTypeAdministrativeAreaLevel3;
}
+ (NSString *)kGMSPlaceTypeAirportExported {
return kGMSPlaceTypeAirport;
}
+ (NSString *)kGMSPlaceTypeAmusementParkExported {
return kGMSPlaceTypeAmusementPark;
}
+ (NSString *)kGMSPlaceTypeAquariumExported {
return kGMSPlaceTypeAquarium;
}
+ (NSString *)kGMSPlaceTypeArtGalleryExported {
return kGMSPlaceTypeArtGallery;
}
+ (NSString *)kGMSPlaceTypeAtmExported {
return kGMSPlaceTypeAtm;
}
+ (NSString *)kGMSPlaceTypeBakeryExported {
return kGMSPlaceTypeBakery;
}
+ (NSString *)kGMSPlaceTypeBankExported {
return kGMSPlaceTypeBank;
}
+ (NSString *)kGMSPlaceTypeBarExported {
return kGMSPlaceTypeBar;
}
+ (NSString *)kGMSPlaceTypeBeautySalonExported {
return kGMSPlaceTypeBeautySalon;
}
+ (NSString *)kGMSPlaceTypeBicycleStoreExported {
return kGMSPlaceTypeBicycleStore;
}
+ (NSString *)kGMSPlaceTypeBookStoreExported {
return kGMSPlaceTypeBookStore;
}
+ (NSString *)kGMSPlaceTypeBowlingAlleyExported {
return kGMSPlaceTypeBowlingAlley;
}
+ (NSString *)kGMSPlaceTypeBusStationExported {
return kGMSPlaceTypeBusStation;
}
+ (NSString *)kGMSPlaceTypeCafeExported {
return kGMSPlaceTypeCafe;
}
+ (NSString *)kGMSPlaceTypeCampgroundExported {
return kGMSPlaceTypeCampground;
}
+ (NSString *)kGMSPlaceTypeCarDealerExported {
return kGMSPlaceTypeCarDealer;
}
+ (NSString *)kGMSPlaceTypeCarRentalExported {
return kGMSPlaceTypeCarRental;
}
+ (NSString *)kGMSPlaceTypeCarRepairExported {
return kGMSPlaceTypeCarRepair;
}
+ (NSString *)kGMSPlaceTypeCarWashExported {
return kGMSPlaceTypeCarWash;
}
+ (NSString *)kGMSPlaceTypeCasinoExported {
return kGMSPlaceTypeCasino;
}
+ (NSString *)kGMSPlaceTypeCemeteryExported {
return kGMSPlaceTypeCemetery;
}
+ (NSString *)kGMSPlaceTypeChurchExported {
return kGMSPlaceTypeChurch;
}
+ (NSString *)kGMSPlaceTypeCityHallExported {
return kGMSPlaceTypeCityHall;
}
+ (NSString *)kGMSPlaceTypeClothingStoreExported {
return kGMSPlaceTypeClothingStore;
}
+ (NSString *)kGMSPlaceTypeColloquialAreaExported {
return kGMSPlaceTypeColloquialArea;
}
+ (NSString *)kGMSPlaceTypeConvenienceStoreExported {
return kGMSPlaceTypeConvenienceStore;
}
+ (NSString *)kGMSPlaceTypeCountryExported {
return kGMSPlaceTypeCountry;
}
+ (NSString *)kGMSPlaceTypeCourthouseExported {
return kGMSPlaceTypeCourthouse;
}
+ (NSString *)kGMSPlaceTypeDentistExported {
return kGMSPlaceTypeDentist;
}
+ (NSString *)kGMSPlaceTypeDepartmentStoreExported {
return kGMSPlaceTypeDepartmentStore;
}
+ (NSString *)kGMSPlaceTypeDoctorExported {
return kGMSPlaceTypeDoctor;
}
+ (NSString *)kGMSPlaceTypeElectricianExported {
return kGMSPlaceTypeElectrician;
}
+ (NSString *)kGMSPlaceTypeElectronicsStoreExported {
return kGMSPlaceTypeElectronicsStore;
}
+ (NSString *)kGMSPlaceTypeEmbassyExported {
return kGMSPlaceTypeEmbassy;
}
+ (NSString *)kGMSPlaceTypeEstablishmentExported {
return kGMSPlaceTypeEstablishment;
}
+ (NSString *)kGMSPlaceTypeFinanceExported {
return kGMSPlaceTypeFinance;
}
+ (NSString *)kGMSPlaceTypeFireStationExported {
return kGMSPlaceTypeFireStation;
}
+ (NSString *)kGMSPlaceTypeFloorExported {
return kGMSPlaceTypeFloor;
}
+ (NSString *)kGMSPlaceTypeFloristExported {
return kGMSPlaceTypeFlorist;
}
+ (NSString *)kGMSPlaceTypeFoodExported {
return kGMSPlaceTypeFood;
}
+ (NSString *)kGMSPlaceTypeFuneralHomeExported {
return kGMSPlaceTypeFuneralHome;
}
+ (NSString *)kGMSPlaceTypeFurnitureStoreExported {
return kGMSPlaceTypeFurnitureStore;
}
+ (NSString *)kGMSPlaceTypeGasStationExported {
return kGMSPlaceTypeGasStation;
}
+ (NSString *)kGMSPlaceTypeGeneralContractorExported {
return kGMSPlaceTypeGeneralContractor;
}
+ (NSString *)kGMSPlaceTypeGeocodeExported {
return kGMSPlaceTypeGeocode;
}
+ (NSString *)kGMSPlaceTypeGroceryOrSupermarketExported {
return kGMSPlaceTypeGroceryOrSupermarket;
}
+ (NSString *)kGMSPlaceTypeGymExported {
return kGMSPlaceTypeGym;
}
+ (NSString *)kGMSPlaceTypeHairCareExported {
return kGMSPlaceTypeHairCare;
}
+ (NSString *)kGMSPlaceTypeHardwareStoreExported {
return kGMSPlaceTypeHardwareStore;
}
+ (NSString *)kGMSPlaceTypeHealthExported {
return kGMSPlaceTypeHealth;
}
+ (NSString *)kGMSPlaceTypeHinduTempleExported {
return kGMSPlaceTypeHinduTemple;
}
+ (NSString *)kGMSPlaceTypeHomeGoodsStoreExported {
return kGMSPlaceTypeHomeGoodsStore;
}
+ (NSString *)kGMSPlaceTypeHospitalExported {
return kGMSPlaceTypeHospital;
}
+ (NSString *)kGMSPlaceTypeInsuranceAgencyExported {
return kGMSPlaceTypeInsuranceAgency;
}
+ (NSString *)kGMSPlaceTypeIntersectionExported {
return kGMSPlaceTypeIntersection;
}
+ (NSString *)kGMSPlaceTypeJewelryStoreExported {
return kGMSPlaceTypeJewelryStore;
}
+ (NSString *)kGMSPlaceTypeLaundryExported {
return kGMSPlaceTypeLaundry;
}
+ (NSString *)kGMSPlaceTypeLawyerExported {
return kGMSPlaceTypeLawyer;
}
+ (NSString *)kGMSPlaceTypeLibraryExported {
return kGMSPlaceTypeLibrary;
}
+ (NSString *)kGMSPlaceTypeLiquorStoreExported {
return kGMSPlaceTypeLiquorStore;
}
+ (NSString *)kGMSPlaceTypeLocalGovernmentOfficeExported {
return kGMSPlaceTypeLocalGovernmentOffice;
}
+ (NSString *)kGMSPlaceTypeLocalityExported {
return kGMSPlaceTypeLocality;
}
+ (NSString *)kGMSPlaceTypeLocksmithExported {
return kGMSPlaceTypeLocksmith;
}
+ (NSString *)kGMSPlaceTypeLodgingExported {
return kGMSPlaceTypeLodging;
}
+ (NSString *)kGMSPlaceTypeMealDeliveryExported {
return kGMSPlaceTypeMealDelivery;
}
+ (NSString *)kGMSPlaceTypeMealTakeawayExported {
return kGMSPlaceTypeMealTakeaway;
}
+ (NSString *)kGMSPlaceTypeMosqueExported {
return kGMSPlaceTypeMosque;
}
+ (NSString *)kGMSPlaceTypeMovieRentalExported {
return kGMSPlaceTypeMovieRental;
}
+ (NSString *)kGMSPlaceTypeMovieTheaterExported {
return kGMSPlaceTypeMovieTheater;
}
+ (NSString *)kGMSPlaceTypeMovingCompanyExported {
return kGMSPlaceTypeMovingCompany;
}
+ (NSString *)kGMSPlaceTypeMuseumExported {
return kGMSPlaceTypeMuseum;
}
+ (NSString *)kGMSPlaceTypeNaturalFeatureExported {
return kGMSPlaceTypeNaturalFeature;
}
+ (NSString *)kGMSPlaceTypeNeighborhoodExported {
return kGMSPlaceTypeNeighborhood;
}
+ (NSString *)kGMSPlaceTypeNightClubExported {
return kGMSPlaceTypeNightClub;
}
+ (NSString *)kGMSPlaceTypePainterExported {
return kGMSPlaceTypePainter;
}
+ (NSString *)kGMSPlaceTypeParkExported {
return kGMSPlaceTypePark;
}
+ (NSString *)kGMSPlaceTypeParkingExported {
return kGMSPlaceTypeParking;
}
+ (NSString *)kGMSPlaceTypePetStoreExported {
return kGMSPlaceTypePetStore;
}
+ (NSString *)kGMSPlaceTypePharmacyExported {
return kGMSPlaceTypePharmacy;
}
+ (NSString *)kGMSPlaceTypePhysiotherapistExported {
return kGMSPlaceTypePhysiotherapist;
}
+ (NSString *)kGMSPlaceTypePlaceOfWorshipExported {
return kGMSPlaceTypePlaceOfWorship;
}
+ (NSString *)kGMSPlaceTypePlumberExported {
return kGMSPlaceTypePlumber;
}
+ (NSString *)kGMSPlaceTypePointOfInterestExported {
return kGMSPlaceTypePointOfInterest;
}
+ (NSString *)kGMSPlaceTypePoliceExported {
return kGMSPlaceTypePolice;
}
+ (NSString *)kGMSPlaceTypePoliticalExported {
return kGMSPlaceTypePolitical;
}
+ (NSString *)kGMSPlaceTypePostBoxExported {
return kGMSPlaceTypePostBox;
}
+ (NSString *)kGMSPlaceTypePostOfficeExported {
return kGMSPlaceTypePostOffice;
}
+ (NSString *)kGMSPlaceTypePostalCodeExported {
return kGMSPlaceTypePostalCode;
}
+ (NSString *)kGMSPlaceTypePostalCodePrefixExported {
return kGMSPlaceTypePostalCodePrefix;
}
+ (NSString *)kGMSPlaceTypePostalTownExported {
return kGMSPlaceTypePostalTown;
}
+ (NSString *)kGMSPlaceTypePremiseExported {
return kGMSPlaceTypePremise;
}
+ (NSString *)kGMSPlaceTypeRealEstateAgencyExported {
return kGMSPlaceTypeRealEstateAgency;
}
+ (NSString *)kGMSPlaceTypeRestaurantExported {
return kGMSPlaceTypeRestaurant;
}
+ (NSString *)kGMSPlaceTypeRoofingContractorExported {
return kGMSPlaceTypeRoofingContractor;
}
+ (NSString *)kGMSPlaceTypeRoomExported {
return kGMSPlaceTypeRoom;
}
+ (NSString *)kGMSPlaceTypeRouteExported {
return kGMSPlaceTypeRoute;
}
+ (NSString *)kGMSPlaceTypeRvParkExported {
return kGMSPlaceTypeRvPark;
}
+ (NSString *)kGMSPlaceTypeSchoolExported {
return kGMSPlaceTypeSchool;
}
+ (NSString *)kGMSPlaceTypeShoeStoreExported {
return kGMSPlaceTypeShoeStore;
}
+ (NSString *)kGMSPlaceTypeShoppingMallExported {
return kGMSPlaceTypeShoppingMall;
}
+ (NSString *)kGMSPlaceTypeSpaExported {
return kGMSPlaceTypeSpa;
}
+ (NSString *)kGMSPlaceTypeStadiumExported {
return kGMSPlaceTypeStadium;
}
+ (NSString *)kGMSPlaceTypeStorageExported {
return kGMSPlaceTypeStorage;
}
+ (NSString *)kGMSPlaceTypeStoreExported {
return kGMSPlaceTypeStore;
}
+ (NSString *)kGMSPlaceTypeStreetAddressExported {
return kGMSPlaceTypeStreetAddress;
}
+ (NSString *)kGMSPlaceTypeSublocalityExported {
return kGMSPlaceTypeSublocality;
}
+ (NSString *)kGMSPlaceTypeSublocalityLevel1Exported {
return kGMSPlaceTypeSublocalityLevel1;
}
+ (NSString *)kGMSPlaceTypeSublocalityLevel2Exported {
return kGMSPlaceTypeSublocalityLevel2;
}
+ (NSString *)kGMSPlaceTypeSublocalityLevel3Exported {
return kGMSPlaceTypeSublocalityLevel3;
}
+ (NSString *)kGMSPlaceTypeSublocalityLevel4Exported {
return kGMSPlaceTypeSublocalityLevel4;
}
+ (NSString *)kGMSPlaceTypeSublocalityLevel5Exported {
return kGMSPlaceTypeSublocalityLevel5;
}
+ (NSString *)kGMSPlaceTypeSubpremiseExported {
return kGMSPlaceTypeSubpremise;
}
+ (NSString *)kGMSPlaceTypeSubwayStationExported {
return kGMSPlaceTypeSubwayStation;
}
+ (NSString *)kGMSPlaceTypeSynagogueExported {
return kGMSPlaceTypeSynagogue;
}
+ (NSString *)kGMSPlaceTypeTaxiStandExported {
return kGMSPlaceTypeTaxiStand;
}
+ (NSString *)kGMSPlaceTypeTrainStationExported {
return kGMSPlaceTypeTrainStation;
}
+ (NSString *)kGMSPlaceTypeTransitStationExported {
return kGMSPlaceTypeTransitStation;
}
+ (NSString *)kGMSPlaceTypeTravelAgencyExported {
return kGMSPlaceTypeTravelAgency;
}
+ (NSString *)kGMSPlaceTypeUniversityExported {
return kGMSPlaceTypeUniversity;
}
+ (NSString *)kGMSPlaceTypeVeterinaryCareExported {
return kGMSPlaceTypeVeterinaryCare;
}
+ (NSString *)kGMSPlaceTypeZooExported {
return kGMSPlaceTypeZoo;
}
@end

35
Google.Maps/externals/Makefile поставляемый
Просмотреть файл

@ -1,43 +1,12 @@
POD=pod
XCODEBUILD=/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
#WORKSPACE=./FieldExporter.xcworkspace
#SCHEME=FieldExporter
#BUILD_ROOT=build/Build/Products
#VALID_ARCHS="armv7 armv7s arm64 i386 x86_64"
PROJECT_ROOT=./FieldExporter
PROJECT=$(PROJECT_ROOT)/FieldExporter.xcodeproj
TARGET=FieldExporter
all: libFieldExporter.a
all: Podfile.lock
Podfile.lock :
$(POD) --no-integrate install
libFieldExporter-i386.a: Podfile.lock
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphonesimulator -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphonesimulator/lib$(TARGET).a $@
libFieldExporter-x86_64.a: Podfile.lock
libFieldExporter-armv7.a: Podfile.lock
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@
libFieldExporter-armv7s.a: Podfile.lock
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch armv7s -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@
libFieldExporter-arm64.a: Podfile.lock
$(XCODEBUILD) -project $(PROJECT) -target $(TARGET) -sdk iphoneos -arch arm64 -configuration Release clean build
-mv $(PROJECT_ROOT)/build/Release-iphoneos/lib$(TARGET).a $@
libFieldExporter.a: libFieldExporter-i386.a libFieldExporter-armv7.a libFieldExporter-armv7s.a libFieldExporter-arm64.a
lipo -create -output $@ $^
clean:
rm -rf Podfile.lock Pods libFieldExporter*.a build/ DerivedData/ FieldExporter/build/
rm -rf Podfile.lock Pods
.PHONY: all clean

2
Google.Maps/externals/Podfile поставляемый
Просмотреть файл

@ -1,4 +1,4 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'GoogleMaps', '1.13.0'
pod 'GoogleMaps', '1.13.1'

Просмотреть файл

@ -3,7 +3,7 @@
<metadata>
<id>Xamarin.Google.iOS.Maps</id>
<title>Google APIs Maps iOS Library</title>
<version>1.13.0.0</version>
<version>1.13.1.0</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -5,6 +5,8 @@ using Foundation;
using CoreGraphics;
using ObjCRuntime;
using UIKit;
using CoreLocation;
using static ObjCRuntime.Runtime;
namespace Google.Maps
{
@ -18,10 +20,10 @@ namespace Google.Maps
get {
if (groundOverlayDefaultAnchor != null)
return groundOverlayDefaultAnchor.Value;
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0);
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kGMSGroundOverlayDefaultAnchor");
groundOverlayDefaultAnchor = (CGRect)Marshal.PtrToStructure (ptr, typeof(CGRect));
groundOverlayDefaultAnchor = (CGRect)Marshal.PtrToStructure (ptr, typeof (CGRect));
Dlfcn.dlclose (RTLD_MAIN_ONLY);
return groundOverlayDefaultAnchor.Value;
@ -37,7 +39,7 @@ namespace Google.Maps
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0);
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kGMSMarkerDefaultGroundAnchor");
markerDefaultGroundAnchor = (CGPoint)Marshal.PtrToStructure (ptr, typeof(CGPoint));
markerDefaultGroundAnchor = (CGPoint)Marshal.PtrToStructure (ptr, typeof (CGPoint));
Dlfcn.dlclose (RTLD_MAIN_ONLY);
return markerDefaultGroundAnchor.Value;
@ -50,10 +52,10 @@ namespace Google.Maps
get {
if (markerDefaultInfoWindowAnchor != null)
return markerDefaultInfoWindowAnchor.Value;
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0);
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kGMSMarkerDefaultInfoWindowAnchor");
markerDefaultInfoWindowAnchor = (CGPoint)Marshal.PtrToStructure (ptr, typeof(CGPoint));
markerDefaultInfoWindowAnchor = (CGPoint)Marshal.PtrToStructure (ptr, typeof (CGPoint));
Dlfcn.dlclose (RTLD_MAIN_ONLY);
return markerDefaultInfoWindowAnchor.Value;
@ -66,15 +68,180 @@ namespace Google.Maps
get {
if (tileLayerNoTile != null)
return tileLayerNoTile;
IntPtr RTLD_MAIN_ONLY = Dlfcn.dlopen (null, 0);
IntPtr ptr = Dlfcn.dlsym (RTLD_MAIN_ONLY, "kGMSTileLayerNoTile");
tileLayerNoTile = Runtime.GetNSObject<UIImage> (ptr);
tileLayerNoTile = GetNSObject<UIImage> (ptr);
Dlfcn.dlclose (RTLD_MAIN_ONLY);
return tileLayerNoTile;
}
}
}
public partial class GeometryUtils
{
// FOUNDATION_EXPORT GMSMapPoint GMSProject(CLLocationCoordinate2D coordinate);
[DllImport ("__Internal", EntryPoint = "GMSProject")]
extern internal static MapPoint _Project (CLLocationCoordinate2D coordinate);
public static MapPoint Project (CLLocationCoordinate2D coordinate)
{
return _Project (coordinate);
}
// FOUNDATION_EXPORT CLLocationCoordinate2D GMSUnproject(GMSMapPoint point);
[DllImport ("__Internal", EntryPoint = "GMSUnproject")]
extern internal static CLLocationCoordinate2D _Unproject (MapPoint point);
public static CLLocationCoordinate2D Unproject (MapPoint point)
{
return _Unproject (point);
}
// FOUNDATION_EXPORT GMSMapPoint GMSMapPointInterpolate(GMSMapPoint a, GMSMapPoint b, double t);
[DllImport ("__Internal", EntryPoint = "GMSMapPointInterpolate")]
extern internal static CLLocationCoordinate2D _MapPointInterpolate (MapPoint a, MapPoint b, double t);
public static CLLocationCoordinate2D MapPointInterpolate (MapPoint a, MapPoint b, double t)
{
return _MapPointInterpolate (a, b, t);
}
// FOUNDATION_EXPORT double GMSMapPointDistance(GMSMapPoint a, GMSMapPoint b);
[DllImport ("__Internal", EntryPoint = "GMSMapPointDistance")]
extern internal static double _MapPointDistance (MapPoint a, MapPoint b);
public static double MapPointDistance (MapPoint a, MapPoint b)
{
return _MapPointDistance (a, b);
}
// FOUNDATION_EXPORT BOOL GMSGeometryContainsLocation(CLLocationCoordinate2D point, GMSPath *path, BOOL geodesic);
[DllImport ("__Internal", EntryPoint = "GMSGeometryContainsLocation")]
extern internal static bool _ContainsLocation (CLLocationCoordinate2D point, Path path, bool geodesic);
public static bool ContainsLocation (CLLocationCoordinate2D point, Path path, bool geodesic)
{
return _ContainsLocation (point, path, geodesic);
}
// FOUNDATION_EXPORT BOOL GMSGeometryIsLocationOnPathTolerance(CLLocationCoordinate2D point, GMSPath *path, BOOL geodesic, CLLocationDistance tolerance);
[DllImport ("__Internal", EntryPoint = "GMSGeometryIsLocationOnPathTolerance")]
extern internal static bool _IsLocationOnPath (CLLocationCoordinate2D point, Path path, bool geodesic, double tolerance);
public static bool IsLocationOnPath (CLLocationCoordinate2D point, Path path, bool geodesic, double tolerance)
{
return _IsLocationOnPath (point, path, geodesic, tolerance);
}
// FOUNDATION_EXPORT BOOL GMSGeometryIsLocationOnPath(CLLocationCoordinate2D point, GMSPath *path, BOOL geodesic);
[DllImport ("__Internal", EntryPoint = "GMSGeometryIsLocationOnPath")]
extern internal static bool _IsLocationOnPath (CLLocationCoordinate2D point, Path path, bool geodesic);
public static bool IsLocationOnPath (CLLocationCoordinate2D point, Path path, bool geodesic)
{
return _IsLocationOnPath (point, path, geodesic);
}
// FOUNDATION_EXPORT CLLocationDistance GMSGeometryDistance(CLLocationCoordinate2D from, CLLocationCoordinate2D to);
[DllImport ("__Internal", EntryPoint = "GMSGeometryDistance")]
extern internal static double _Distance (CLLocationCoordinate2D fromCoord, CLLocationCoordinate2D toCoord);
public static double Distance (CLLocationCoordinate2D fromCoord, CLLocationCoordinate2D toCoord)
{
return _Distance (fromCoord, toCoord);
}
// FOUNDATION_EXPORT CLLocationDistance GMSGeometryLength(GMSPath *path);
[DllImport ("__Internal", EntryPoint = "GMSGeometryLength")]
extern internal static double _Length (Path path);
public static double Length (Google.Maps.Path path)
{
return _Length (path);
}
// FOUNDATION_EXPORT double GMSGeometryArea(GMSPath *path);
[DllImport ("__Internal", EntryPoint = "GMSGeometryArea")]
extern internal static double _Area (Path path);
public static double Area (Path path)
{
return _Area (path);
}
// FOUNDATION_EXPORT double GMSGeometrySignedArea(GMSPath *path);
[DllImport ("__Internal", EntryPoint = "GMSGeometrySignedArea")]
extern internal static double _SignedArea (Path path);
public static double SignedArea (Path path)
{
return _SignedArea (path);
}
// FOUNDATION_EXPORT CLLocationDirection GMSGeometryHeading(CLLocationCoordinate2D from, CLLocationCoordinate2D to);
[DllImport ("__Internal", EntryPoint = "GMSGeometryHeading")]
extern internal static double _Heading (CLLocationCoordinate2D fromCoord, CLLocationCoordinate2D toCoord);
public static double Heading (CLLocationCoordinate2D fromCoord, CLLocationCoordinate2D toCoord)
{
return _Heading (fromCoord, toCoord);
}
// FOUNDATION_EXPORT CLLocationCoordinate2D GMSGeometryOffset(CLLocationCoordinate2D from, CLLocationDistance distance, CLLocationDirection heading);
[DllImport ("__Internal", EntryPoint = "GMSGeometryOffset")]
extern internal static CLLocationCoordinate2D _Offset (CLLocationCoordinate2D fromCoord, double distance, double heading);
public static CLLocationCoordinate2D Offset (CLLocationCoordinate2D fromCoord, double distance, double heading)
{
return _Offset (fromCoord, distance, heading);
}
// FOUNDATION_EXPORT CLLocationCoordinate2D GMSGeometryInterpolate(CLLocationCoordinate2D from, CLLocationCoordinate2D to, double fraction);
[DllImport ("__Internal", EntryPoint = "GMSGeometryInterpolate")]
extern internal static CLLocationCoordinate2D _Interpolate (CLLocationCoordinate2D fromCoord, CLLocationCoordinate2D toCoord, double fraction);
public static CLLocationCoordinate2D Interpolate (CLLocationCoordinate2D fromCoord, CLLocationCoordinate2D toCoord, double fraction)
{
return _Interpolate (fromCoord, toCoord, fraction);
}
// FOUNDATION_EXPORT GMS_NSArrayOf(GMSStyleSpan *) *GMSStyleSpans(GMSPath *path, GMS_NSArrayOf(GMSStrokeStyle *) *styles, GMS_NSArrayOf(NSNumber *) *lengths, GMSLengthKind lengthKind);
[DllImport ("__Internal", EntryPoint = "GMSStyleSpans")]
extern internal static IntPtr _StyleSpans (Path path, IntPtr styles, IntPtr lengths, LengthKind lengthKind);
public static StyleSpan [] StyleSpans (Path path, StrokeStyle [] styles, NSNumber [] lengths, LengthKind lengthKind)
{
var stylesArray = NSArray.FromNSObjects (styles);
var lengthsArray = NSArray.FromNSObjects (lengths);
var result = _StyleSpans (path, stylesArray.Handle, lengthsArray.Handle, lengthKind);
var nsObjects = NSArray.ArrayFromHandle<NSObject> (result);
var resultArray = new StyleSpan [nsObjects.Length];
for (int i = 0; i < nsObjects.Length; i++)
resultArray [i] = (StyleSpan)nsObjects [i];
return resultArray;
}
// FOUNDATION_EXPORT GMS_NSArrayOf(GMSStyleSpan *) *GMSStyleSpansOffset(GMSPath *path, GMS_NSArrayOf(GMSStrokeStyle *) *styles, GMS_NSArrayOf(NSNumber *) *lengths, GMSLengthKind lengthKind, double lengthOffset);
[DllImport ("__Internal", EntryPoint = "GMSStyleSpansOffset")]
extern internal static IntPtr _StyleSpans (Path path, IntPtr styles, IntPtr lengths, LengthKind lengthKind, double lengthOffset);
public static StyleSpan [] StyleSpans (Path path, StrokeStyle [] styles, NSNumber [] lengths, LengthKind lengthKind, double lengthOffset)
{
var stylesArray = NSArray.FromNSObjects (styles);
var lengthsArray = NSArray.FromNSObjects (lengths);
var result = _StyleSpans (path, stylesArray.Handle, lengthsArray.Handle, lengthKind, lengthOffset);
var nsObjects = NSArray.ArrayFromHandle<NSObject> (result);
var resultArray = new StyleSpan [nsObjects.Length];
for (int i = 0; i < nsObjects.Length; i++)
resultArray [i] = (StyleSpan)nsObjects [i];
return resultArray;
}
}
}

Просмотреть файл

@ -42,9 +42,6 @@
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Loader.cs" />
<Compile Include="libFieldExporter.linkwith.cs">
<DependentUpon>libFieldExporter.a</DependentUpon>
</Compile>
<Compile Include="Extensions.cs" />
<Compile Include="GoogleMaps.linkwith.cs">
<DependentUpon>GoogleMaps</DependentUpon>
@ -57,11 +54,6 @@
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.ObjCBinding.CSharp.targets" />
<ItemGroup>
<ObjcBindingNativeLibrary Include="..\..\externals\libFieldExporter.a">
<Link>libFieldExporter.a</Link>
</ObjcBindingNativeLibrary>
</ItemGroup>
<ItemGroup>
<None Include="Google.Maps.targets" />
</ItemGroup>

Просмотреть файл

@ -2,12 +2,12 @@
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_GoogleMapsAssemblyName>Google.Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleMapsAssemblyName>
<_GoogleMapsId>GMaps-1.13.0</_GoogleMapsId>
<_GoogleMapsId>GMaps-1.13.1</_GoogleMapsId>
</PropertyGroup>
<ItemGroup Condition="'$(OutputType)'!='Library'">
<XamarinBuildRestoreResources Include="_GoogleMapsItems" />
<XamarinBuildDownload Include="$(_GoogleMapsId)">
<Url>https://www.gstatic.com/cpdc/369280b0e1f04cb7-GoogleMaps-1.13.0.tar.gz</Url>
<Url>https://www.gstatic.com/cpdc/41e399c159c9ab34-GoogleMaps-1.13.1.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
</ItemGroup>

Просмотреть файл

@ -1,7 +0,0 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libFieldExporter.a",
LinkTarget.Simulator | LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Arm64,
SmartLink = true,
ForceLoad = true)]

Просмотреть файл

@ -1,4 +1,4 @@
version: 7.6.0.4
version: 7.7.1.0
name: Google Mobile Ads for iOS
id: googleiosmobileads
publisher: Xamarin Inc
@ -13,7 +13,7 @@ libraries:
is_shell: true
packages:
ios-unified:
- Xamarin.Google.iOS.MobileAds, Version=7.6.0.4
- Xamarin.Google.iOS.MobileAds, Version=7.7.1.0
samples:
- name: "Google Mobile Ads AdMob Sample"
path: ../samples/MobileAdsExample/MobileAdsExample.sln

2
Google.MobileAds/externals/Podfile поставляемый
Просмотреть файл

@ -5,5 +5,5 @@ xcodeproj 'FieldExporter/GADFieldExporter.xcodeproj'
platform :ios, '6.0'
target 'GADFieldExporter' do
pod 'Google-Mobile-Ads-SDK', '7.6.0'
pod 'GoogleMobileAds', '7.7.1'
end

Просмотреть файл

@ -3,7 +3,7 @@
<metadata>
<id>Xamarin.Google.iOS.MobileAds</id>
<title>Google APIs Mobile Ads iOS Library</title>
<version>7.6.0.4</version>
<version>7.7.1.0</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>

Просмотреть файл

@ -12,7 +12,7 @@ namespace Google.MobileAds
// This is a custom class created by me and is not part of Google Admob lib
// But it is necesary for this binding to work
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GADFieldExporter")]
[BaseType (typeof (NSObject), Name = "GADFieldExporter")]
interface AdSizeCons
{
@ -71,7 +71,7 @@ namespace Google.MobileAds
// @interface GADMobileAds : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GADMobileAds")]
[BaseType (typeof (NSObject), Name = "GADMobileAds")]
interface MobileAds
{
// + (GADMobileAds *)sharedInstance;
@ -92,6 +92,10 @@ namespace Google.MobileAds
// @property(nonatomic, assign) float applicationVolume;
[Export ("applicationVolume", ArgumentSemantic.Assign)]
float ApplicationVolume { get; set; }
// @property(nonatomic, assign) BOOL applicationMuted;
[Export ("applicationMuted", ArgumentSemantic.Assign)]
bool ApplicationMuted { get; set; }
}
interface IAdNetworkExtras
@ -101,7 +105,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADAdNetworkExtras")]
[BaseType (typeof (NSObject), Name = "GADAdNetworkExtras")]
interface AdNetworkExtras
{
@ -109,7 +113,7 @@ namespace Google.MobileAds
// @interface GADAdReward : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GADAdReward")]
[BaseType (typeof (NSObject), Name = "GADAdReward")]
interface AdReward
{
// @property (readonly, copy, nonatomic) NSString * type;
@ -126,10 +130,10 @@ namespace Google.MobileAds
IntPtr Constructor (string rewardType, NSDecimalNumber rewardAmount);
}
[BaseType (typeof(UIView),
[BaseType (typeof (UIView),
Name = "GADBannerView",
Delegates = new string [] { "Delegate" },
Events = new Type [] { typeof(BannerViewDelegate) })]
Events = new Type [] { typeof (BannerViewDelegate) })]
interface BannerView
{
@ -185,7 +189,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADBannerViewDelegate")]
[BaseType (typeof (NSObject), Name = "GADBannerViewDelegate")]
interface BannerViewDelegate : AdDelegate
{
@ -218,7 +222,7 @@ namespace Google.MobileAds
}
// @interface GADCorrelator : NSObject
[BaseType (typeof(NSObject), Name = "GADCorrelator")]
[BaseType (typeof (NSObject), Name = "GADCorrelator")]
interface Correlator
{
// -(void)reset;
@ -227,7 +231,7 @@ namespace Google.MobileAds
}
// @interface GADCorrelatorAdLoaderOptions : GADAdLoaderOptions
[BaseType (typeof(AdLoaderOptions), Name = "GADCorrelatorAdLoaderOptions")]
[BaseType (typeof (AdLoaderOptions), Name = "GADCorrelatorAdLoaderOptions")]
interface CorrelatorAdLoaderOptions
{
// @property (nonatomic, strong) GADCorrelator * correlator;
@ -235,7 +239,7 @@ namespace Google.MobileAds
Correlator Correlator { get; set; }
}
[BaseType (typeof(NSObject), Name = "GADExtras")]
[BaseType (typeof (NSObject), Name = "GADExtras")]
interface Extras : AdNetworkExtras
{
@ -244,10 +248,10 @@ namespace Google.MobileAds
}
[DisableDefaultCtor]
[BaseType (typeof(NSObject),
[BaseType (typeof (NSObject),
Name = "GADInterstitial",
Delegates = new string [] { "Delegate" },
Events = new Type [] { typeof(InterstitialDelegate) })]
Events = new Type [] { typeof (InterstitialDelegate) })]
interface Interstitial
{
@ -288,7 +292,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADInterstitialDelegate")]
[BaseType (typeof (NSObject), Name = "GADInterstitialDelegate")]
interface InterstitialDelegate : AdDelegate
{
@ -322,7 +326,7 @@ namespace Google.MobileAds
}
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GADRequest")]
[BaseType (typeof (NSObject), Name = "GADRequest")]
interface Request : INSCopying
{
@ -386,7 +390,7 @@ namespace Google.MobileAds
}
[DisableDefaultCtor]
[BaseType (typeof(NSError), Name = "GADRequestError")]
[BaseType (typeof (NSError), Name = "GADRequestError")]
interface RequestError
{
@ -396,10 +400,10 @@ namespace Google.MobileAds
// @interface GADRewardBasedVideoAd : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject),
[BaseType (typeof (NSObject),
Name = "GADRewardBasedVideoAd",
Delegates = new string[] { "Delegate" },
Events = new Type[] { typeof(RewardBasedVideoAdDelegate) })]
Delegates = new string [] { "Delegate" },
Events = new Type [] { typeof (RewardBasedVideoAdDelegate) })]
interface RewardBasedVideoAd
{
// @property (nonatomic, weak) id<GADRewardBasedVideoAdDelegate> _Nullable delegate;
@ -416,9 +420,9 @@ namespace Google.MobileAds
[Export ("sharedInstance")]
RewardBasedVideoAd SharedInstance { get; }
// -(void)loadRequest:(GADRequest *)request withAdUnitID:(NSString *)adUnitID userID:(NSString *)userID;
[Export ("loadRequest:withAdUnitID:userID:")]
void LoadRequest (Request request, string adUnitId, [NullAllowed] string userId);
// -(void)loadRequest:(GADRequest *)request withAdUnitID:(NSString *)adUnitID;
[Export ("loadRequest:withAdUnitID:")]
void LoadRequest (Request request, string adUnitId);
// -(void)presentFromRootViewController:(UIViewController *)viewController;
[Export ("presentFromRootViewController:")]
@ -432,7 +436,7 @@ namespace Google.MobileAds
// @protocol GADRewardBasedVideoAdDelegate <NSObject>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADRewardBasedVideoAdDelegate")]
[BaseType (typeof (NSObject), Name = "GADRewardBasedVideoAdDelegate")]
interface RewardBasedVideoAdDelegate
{
// @optional -(void)rewardBasedVideoAdDidReceiveAd:(GADRewardBasedVideoAd *)rewardBasedVideoAd;
@ -484,7 +488,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADAdSizeDelegate")]
[BaseType (typeof (NSObject), Name = "GADAdSizeDelegate")]
interface AdSizeDelegate
{
@ -501,7 +505,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADAppEventDelegate")]
[BaseType (typeof (NSObject), Name = "GADAppEventDelegate")]
interface AppEventDelegate
{
@ -517,7 +521,7 @@ namespace Google.MobileAds
}
[BaseType (typeof(NSObject), Name = "GADSwipeableBannerViewDelegate")]
[BaseType (typeof (NSObject), Name = "GADSwipeableBannerViewDelegate")]
[Model]
[Protocol]
interface SwipeableBannerViewDelegate
@ -531,7 +535,7 @@ namespace Google.MobileAds
#region Search
[BaseType (typeof(NSObject), Name = "GADSearchRequest")]
[BaseType (typeof (NSObject), Name = "GADSearchRequest")]
interface SearchRequest
{
@ -584,7 +588,7 @@ namespace Google.MobileAds
void SetBackgroundGradient (UIColor fromColor, UIColor toColor);
}
[BaseType (typeof(BannerView), Name = "GADSearchBannerView")]
[BaseType (typeof (BannerView), Name = "GADSearchBannerView")]
interface SearchBannerView
{
@ -596,6 +600,11 @@ namespace Google.MobileAds
[Export ("initWithAdSize:")]
IntPtr Constructor (AdSize size);
// @property(nonatomic, weak) IBOutlet id<GADAdSizeDelegate> adSizeDelegate;
[NullAllowed]
[Export ("adSizeDelegate", ArgumentSemantic.Weak)]
IAdSizeDelegate AdSizeDelegate { get; set; }
}
#endregion
@ -609,7 +618,7 @@ namespace Google.MobileAds
// @protocol GADAdDelegate<NSObject>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADAdDelegate")]
[BaseType (typeof (NSObject), Name = "GADAdDelegate")]
interface AdDelegate
{
// @optional - (BOOL)ad:(id)ad shouldChangeAudioSessionToCategory:(NSString *)audioSessionCategory;
@ -618,10 +627,10 @@ namespace Google.MobileAds
}
// @interface GADAdLoader : NSObject
[BaseType (typeof(NSObject),
[BaseType (typeof (NSObject),
Name = "GADAdLoader",
Delegates = new [] { "Delegate" },
Events = new [] { typeof(AdLoaderDelegate) })]
Events = new [] { typeof (AdLoaderDelegate) })]
interface AdLoader
{
// @property (nonatomic, weak) id<GADAdLoaderDelegate> __nullable delegate;
@ -631,7 +640,7 @@ namespace Google.MobileAds
// -(instancetype)initWithAdUnitID:(NSString *)adUnitID rootViewController:(UIViewController *)rootViewController adTypes:(NSArray *)adTypes options:(NSArray *)options;
[Export ("initWithAdUnitID:rootViewController:adTypes:options:")]
IntPtr Constructor (string adUnitID, UIViewController rootViewController, [NullAllowed] NSObject[] adTypes, [NullAllowed] AdLoaderOptions[] options);
IntPtr Constructor (string adUnitID, UIViewController rootViewController, [NullAllowed] NSObject [] adTypes, [NullAllowed] AdLoaderOptions [] options);
// -(void)loadRequest:(GADRequest *)request;
[Export ("loadRequest:")]
@ -655,7 +664,7 @@ namespace Google.MobileAds
}
// @interface GADAdLoaderOptions : NSObject
[BaseType (typeof(NSObject), Name = "GADAdLoaderOptions")]
[BaseType (typeof (NSObject), Name = "GADAdLoaderOptions")]
interface AdLoaderOptions
{
}
@ -667,7 +676,7 @@ namespace Google.MobileAds
// @protocol GADAdLoaderDelegate <NSObject>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADAdLoaderDelegate")]
[BaseType (typeof (NSObject), Name = "GADAdLoaderDelegate")]
interface AdLoaderDelegate
{
// @required -(void)adLoader:(GADAdLoader *)adLoader didFailToReceiveAdWithError:(GADRequestError *)error;
@ -681,7 +690,10 @@ namespace Google.MobileAds
#region Loading.Formats
// @interface GADNativeAd : NSObject
[BaseType (typeof(NSObject), Name = "GADNativeAd")]
[BaseType (typeof (NSObject),
Name = "GADNativeAd",
Delegates = new string [] { "Delegate" },
Events = new Type [] { typeof (NativeAdDelegate) })]
interface NativeAd
{
// @property (nonatomic, weak) id<GADNativeAdDelegate> __nullable delegate;
@ -710,29 +722,34 @@ namespace Google.MobileAds
// @protocol GADNativeAdDelegate <NSObject>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADNativeAdDelegate")]
[BaseType (typeof (NSObject), Name = "GADNativeAdDelegate")]
interface NativeAdDelegate
{
// @optional -(void)nativeAdWillPresentScreen:(GADNativeAd *)nativeAd;
[EventArgs ("NativeAd")]
[Export ("nativeAdWillPresentScreen:")]
void NativeAdWillPresentScreen (NativeAd nativeAd);
void WillPresentScreen (NativeAd nativeAd);
// @optional -(void)nativeAdWillDismissScreen:(GADNativeAd *)nativeAd;
[EventArgs ("NativeAd")]
[Export ("nativeAdWillDismissScreen:")]
void NativeAdWillDismissScreen (NativeAd nativeAd);
void WillDismissScreen (NativeAd nativeAd);
// @optional -(void)nativeAdDidDismissScreen:(GADNativeAd *)nativeAd;
[EventArgs ("NativeAd")]
[EventName ("ScreenDismissed")]
[Export ("nativeAdDidDismissScreen:")]
void NativeAdDidDismissScreen (NativeAd nativeAd);
void DidDismissScreen (NativeAd nativeAd);
// @optional -(void)nativeAdWillLeaveApplication:(GADNativeAd *)nativeAd;
[EventArgs ("NativeAd")]
[Export ("nativeAdWillLeaveApplication:")]
void NativeAdWillLeaveApplication (NativeAd nativeAd);
void WillLeaveApplication (NativeAd nativeAd);
}
// @interface GADNativeAdImage : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GADNativeAdImage")]
[BaseType (typeof (NSObject), Name = "GADNativeAdImage")]
interface NativeAdImage
{
// -(instancetype)initWithImage:(UIImage *)image;
@ -757,7 +774,7 @@ namespace Google.MobileAds
}
// @interface GADNativeAppInstallAd : GADNativeAd
[BaseType (typeof(NativeAd), Name = "GADNativeAppInstallAd")]
[BaseType (typeof (NativeAd), Name = "GADNativeAppInstallAd")]
interface NativeAppInstallAd
{
// @property (readonly, copy, nonatomic) NSString * headline;
@ -786,7 +803,7 @@ namespace Google.MobileAds
// @property (readonly, nonatomic, strong) NSArray * images;
[Export ("images", ArgumentSemantic.Strong)]
NativeAdImage[] Images { get; }
NativeAdImage [] Images { get; }
// @property (readonly, copy, nonatomic) NSDecimalNumber * starRating;
[Export ("starRating", ArgumentSemantic.Copy)]
@ -800,7 +817,7 @@ namespace Google.MobileAds
// @protocol GADNativeAppInstallAdLoaderDelegate <GADAdLoaderDelegate>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADNativeAppInstallAdLoaderDelegate")]
[BaseType (typeof (NSObject), Name = "GADNativeAppInstallAdLoaderDelegate")]
interface NativeAppInstallAdLoaderDelegate : AdLoaderDelegate
{
// @required -(void)adLoader:(GADAdLoader *)adLoader didReceiveNativeAppInstallAd:(GADNativeAppInstallAd *)nativeAppInstallAd;
@ -810,7 +827,7 @@ namespace Google.MobileAds
}
// @interface GADNativeAppInstallAdView : UIView
[BaseType (typeof(UIView), Name = "GADNativeAppInstallAdView")]
[BaseType (typeof (UIView), Name = "GADNativeAppInstallAdView")]
interface NativeAppInstallAdView
{
[Export ("initWithFrame:")]
@ -862,7 +879,7 @@ namespace Google.MobileAds
}
// @interface GADNativeContentAd : GADNativeAd
[BaseType (typeof(NativeAd), Name = "GADNativeContentAd")]
[BaseType (typeof (NativeAd), Name = "GADNativeContentAd")]
interface NativeContentAd
{
// @property (readonly, copy, nonatomic) NSString * headline;
@ -875,7 +892,7 @@ namespace Google.MobileAds
// @property (readonly, copy, nonatomic) NSArray * images;
[Export ("images", ArgumentSemantic.Copy)]
NativeAdImage[] Images { get; }
NativeAdImage [] Images { get; }
// @property (readonly, nonatomic, strong) NativeAdImage * logo;
[Export ("logo", ArgumentSemantic.Strong)]
@ -896,7 +913,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADNativeContentAdLoaderDelegate")]
[BaseType (typeof (NSObject), Name = "GADNativeContentAdLoaderDelegate")]
interface NativeContentAdLoaderDelegate : AdLoaderDelegate
{
// @required -(void)adLoader:(GADAdLoader *)adLoader didReceiveNativeContentAd:(GADNativeContentAd *)nativeContentAd;
@ -906,7 +923,7 @@ namespace Google.MobileAds
}
// @interface GADNativeContentAdView : UIView
[BaseType (typeof(UIView), Name = "GADNativeContentAdView")]
[BaseType (typeof (UIView), Name = "GADNativeContentAdView")]
interface NativeContentAdView
{
[Export ("initWithFrame:")]
@ -948,7 +965,7 @@ namespace Google.MobileAds
}
// @interface GADNativeCustomTemplateAd : GADNativeAd
[BaseType (typeof(NativeAd), Name = "GADNativeCustomTemplateAd")]
[BaseType (typeof (NativeAd), Name = "GADNativeCustomTemplateAd")]
interface NativeCustomTemplateAd
{
// @property (readonly, nonatomic) NSString * templateID;
@ -957,7 +974,7 @@ namespace Google.MobileAds
// @property (readonly, nonatomic) NSArray * availableAssetKeys;
[Export ("availableAssetKeys")]
string[] AvailableAssetKeys { get; }
string [] AvailableAssetKeys { get; }
// -(GADNativeAdImage *)imageForKey:(NSString *)key;
[Export ("imageForKey:")]
@ -976,19 +993,109 @@ namespace Google.MobileAds
void RecordImpression ();
}
// @interface GADNativeExpressAdView : UIView
[DisableDefaultCtor]
[BaseType (typeof (UIView),
Name = "GADNativeExpressAdView",
Delegates = new string [] { "Delegate" },
Events = new Type [] { typeof (NativeExpressAdViewDelegate) })]
interface NativeExpressAdView
{
// -(instancetype)initWithAdSize:(id)adSize origin:(CGPoint)origin;
[Export ("initWithAdSize:origin:")]
IntPtr Constructor (NSObject adSize, CGPoint origin);
// -(instancetype)initWithAdSize:(id)adSize;
[Export ("initWithAdSize:")]
IntPtr Constructor (NSObject adSize);
// @property (copy, nonatomic) NSString * adUnitID;
[Export ("adUnitID")]
string AdUnitID { get; set; }
// @property (nonatomic, weak) UIViewController * _Nullable rootViewController __attribute__((iboutlet));
[NullAllowed]
[Export ("rootViewController", ArgumentSemantic.Weak)]
UIViewController RootViewController { get; set; }
// @property (assign, nonatomic) int adSize;
[Export ("adSize")]
int AdSize { get; set; }
// @property(nonatomic, weak) IBOutlet id<GADNativeExpressAdViewDelegate> delegate;
[NullAllowed]
[Export ("delegate", ArgumentSemantic.Weak)]
INativeExpressAdViewDelegate Delegate { get; set; }
// -(void)loadRequest:(id)request;
[Export ("loadRequest:")]
void LoadRequest (Request request);
// @property (getter = isAutoloadEnabled, assign, nonatomic) BOOL autoloadEnabled;
[Export ("autoloadEnabled")]
bool AutoloadEnabled { [Bind ("isAutoloadEnabled")] get; set; }
// @property (readonly, nonatomic, weak) NSString * _Nullable adNetworkClassName;
[Export ("adNetworkClassName", ArgumentSemantic.Weak)]
string AdNetworkClassName { get; }
}
interface INativeExpressAdViewDelegate
{
}
[Model]
[Protocol]
[BaseType (typeof (NSObject), Name = "GADNativeExpressAdViewDelegate")]
interface NativeExpressAdViewDelegate
{
// @optional -(void)nativeExpressAdViewDidReceiveAd:(GADNativeExpressAdView *)nativeExpressAdView;
[EventArgs ("NativeExpressAdView")]
[EventName ("AdReceived")]
[Export ("nativeExpressAdViewDidReceiveAd:")]
void DidReceiveAd (NativeExpressAdView nativeExpressAdView);
// @optional -(void)nativeExpressAdView:(GADNativeExpressAdView *)nativeExpressAdView didFailToReceiveAdWithError:(GADRequestError *)error;
[EventArgs ("NativeExpressAdViewError")]
[EventName ("ReceiveAdFailed")]
[Export ("nativeExpressAdView:didFailToReceiveAdWithError:")]
void DidFailToReceiveAd (NativeExpressAdView nativeExpressAdView, RequestError error);
// @optional -(void)nativeExpressAdViewWillPresentScreen:(GADNativeExpressAdView *)nativeExpressAdView;
[EventArgs ("NativeExpressAdView")]
[Export ("nativeExpressAdViewWillPresentScreen:")]
void WillPresentScreen (NativeExpressAdView nativeExpressAdView);
// @optional -(void)nativeExpressAdViewWillDismissScreen:(GADNativeExpressAdView *)nativeExpressAdView;
[EventArgs ("NativeExpressAdView")]
[Export ("nativeExpressAdViewWillDismissScreen:")]
void WillDismissScreen (NativeExpressAdView nativeExpressAdView);
// @optional -(void)nativeExpressAdViewDidDismissScreen:(GADNativeExpressAdView *)nativeExpressAdView;
[EventArgs ("NativeExpressAdView")]
[EventName ("ScreenDismissed")]
[Export ("nativeExpressAdViewDidDismissScreen:")]
void DidDismissScreen (NativeExpressAdView nativeExpressAdView);
// @optional -(void)nativeExpressAdViewWillLeaveApplication:(GADNativeExpressAdView *)nativeExpressAdView;
[EventArgs ("NativeExpressAdView")]
[Export ("nativeExpressAdViewWillLeaveApplication:")]
void WillLeaveApplication (NativeExpressAdView nativeExpressAdView);
}
interface INativeCustomTemplateAdLoaderDelegate
{
}
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADNativeCustomTemplateAdLoaderDelegate")]
[BaseType (typeof (NSObject), Name = "GADNativeCustomTemplateAdLoaderDelegate")]
interface NativeCustomTemplateAdLoaderDelegate : AdLoaderDelegate
{
// @required -(NSArray *)nativeCustomTemplateIDsForAdLoader:(GADAdLoader *)adLoader;
[Abstract]
[Export ("nativeCustomTemplateIDsForAdLoader:")]
string[] NativeCustomTemplateIDs (AdLoader adLoader);
string [] NativeCustomTemplateIDs (AdLoader adLoader);
// @required -(void)adLoader:(GADAdLoader *)adLoader didReceiveNativeCustomTemplateAd:(GADNativeCustomTemplateAd *)nativeCustomTemplateAd;
[Abstract]
@ -1001,7 +1108,7 @@ namespace Google.MobileAds
#region Loading.Options
// @interface GADNativeAdImageAdLoaderOptions : GADAdLoaderOptions
[BaseType (typeof(AdLoaderOptions), Name = "GADNativeAdImageAdLoaderOptions")]
[BaseType (typeof (AdLoaderOptions), Name = "GADNativeAdImageAdLoaderOptions")]
interface NativeAdImageAdLoaderOptions
{
// @property (assign, nonatomic) BOOL disableImageLoading;
@ -1029,7 +1136,7 @@ namespace Google.MobileAds
}
[Protocol]
[BaseType (typeof(NSObject), Name = "GADCustomEventBanner")]
[BaseType (typeof (NSObject), Name = "GADCustomEventBanner")]
interface CustomEventBanner
{
[Abstract]
@ -1037,7 +1144,8 @@ namespace Google.MobileAds
void RequestBannerAd (AdSize adSize, string serverParameter, string serverLabel, CustomEventRequest request);
[Abstract]
[Export ("delegate")][NullAllowed]
[NullAllowed]
[Export ("delegate")]
ICustomEventBannerDelegate GetDelegate ();
[Abstract]
@ -1052,7 +1160,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADCustomEventBannerDelegate")]
[BaseType (typeof (NSObject), Name = "GADCustomEventBannerDelegate")]
interface CustomEventBannerDelegate
{
@ -1089,17 +1197,19 @@ namespace Google.MobileAds
void WillLeaveApplication (ICustomEventBanner customEvent);
}
[BaseType (typeof(NSObject), Name = "GADCustomEventExtras")]
[BaseType (typeof (NSObject), Name = "GADCustomEventExtras")]
interface CustomEventExtras : AdNetworkExtras
{
[Export ("setExtras:forLabel:")] [PostGet ("AllExtras")]
[Export ("setExtras:forLabel:")]
[PostGet ("AllExtras")]
void SetExtras (NSDictionary extras, string label);
[Export ("extrasForLabel:")]
NSDictionary ExtrasForLabel (string label);
[Export ("removeAllExtras")] [PostGet ("AllExtras")]
[Export ("removeAllExtras")]
[PostGet ("AllExtras")]
void RemoveAllExtras ();
[Export ("allExtras")]
@ -1112,7 +1222,7 @@ namespace Google.MobileAds
}
[Protocol]
[BaseType (typeof(NSObject), Name = "GADCustomEventInterstitial")]
[BaseType (typeof (NSObject), Name = "GADCustomEventInterstitial")]
interface CustomEventInterstitial
{
@ -1139,7 +1249,7 @@ namespace Google.MobileAds
}
[BaseType (typeof(NSObject), Name = "GADCustomEventInterstitialDelegate")]
[BaseType (typeof (NSObject), Name = "GADCustomEventInterstitialDelegate")]
[Model]
[Protocol]
interface CustomEventInterstitialDelegate
@ -1173,13 +1283,18 @@ namespace Google.MobileAds
// @protocol GADCustomEventNativeAd <NSObject>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADCustomEventNativeAd")]
[BaseType (typeof (NSObject), Name = "GADCustomEventNativeAd")]
interface CustomEventNativeAd
{
// @required -(void)requestNativeAdWithParameter:(NSString *)serverParameter request:(GADCustomEventRequest *)request adTypes:(NSArray *)adTypes options:(NSArray *)options rootViewController:(UIViewController *)rootViewController;
[Abstract]
[Export ("requestNativeAdWithParameter:request:adTypes:options:rootViewController:")]
void Request (string serverParameter, CustomEventRequest request, NSString[] adTypes, NSNumber[] options, UIViewController rootViewController);
void Request (string serverParameter, CustomEventRequest request, NSString [] adTypes, NSNumber [] options, UIViewController rootViewController);
// - (BOOL)handlesUserClicks;
[Abstract]
[Export ("handlesUserClicks")]
bool HandlesUserClicks ();
// @required @property (nonatomic, weak) id<GADCustomEventNativeAdDelegate> _Nullable delegate;
[Abstract]
@ -1197,7 +1312,7 @@ namespace Google.MobileAds
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADCustomEventNativeAdDelegate")]
[BaseType (typeof (NSObject), Name = "GADCustomEventNativeAdDelegate")]
interface CustomEventNativeAdDelegate
{
// @required -(void)customEventNativeAd:(id<GADCustomEventNativeAd>)customEventNativeAd didReceiveMediatedNativeAd:(id<GADMediatedNativeAd>)mediatedNativeAd;
@ -1211,7 +1326,7 @@ namespace Google.MobileAds
void DidFailToLoad (ICustomEventNativeAd customEventNativeAd, NSError error);
}
[BaseType (typeof(NSObject), Name = "GADCustomEventRequest")]
[BaseType (typeof (NSObject), Name = "GADCustomEventRequest")]
interface CustomEventRequest
{
@ -1247,7 +1362,172 @@ namespace Google.MobileAds
bool IsTesting { get; }
}
[BaseType (typeof(NSObject), Name = "GADDefaultInAppPurchase")]
// @interface GADDynamicHeightSearchRequest : GADRequest
[BaseType (typeof (Request), Name = "GADDynamicHeightSearchRequest")]
interface DynamicHeightSearchRequest
{
// @property (copy, nonatomic) NSString * query;
[Export ("query")]
string Query { get; set; }
// @property (assign, nonatomic) NSInteger adPage;
[Export ("adPage")]
nint AdPage { get; set; }
// @property (assign, nonatomic) BOOL adTestEnabled;
[Export ("adTestEnabled")]
bool AdTestEnabled { get; set; }
// @property (copy, nonatomic) NSString * channel;
[Export ("channel")]
string Channel { get; set; }
// @property (copy, nonatomic) NSString * hostLanguage;
[Export ("hostLanguage")]
string HostLanguage { get; set; }
// @property (copy, nonatomic) NSString * locationExtensionTextColor;
[Export ("locationExtensionTextColor")]
string LocationExtensionTextColor { get; set; }
// @property (assign, nonatomic) CGFloat locationExtensionFontSize;
[Export ("locationExtensionFontSize")]
nfloat LocationExtensionFontSize { get; set; }
// @property (assign, nonatomic) BOOL clickToCallExtensionEnabled;
[Export ("clickToCallExtensionEnabled")]
bool ClickToCallExtensionEnabled { get; set; }
// @property (assign, nonatomic) BOOL locationExtensionEnabled;
[Export ("locationExtensionEnabled")]
bool LocationExtensionEnabled { get; set; }
// @property (assign, nonatomic) BOOL plusOnesExtensionEnabled;
[Export ("plusOnesExtensionEnabled")]
bool PlusOnesExtensionEnabled { get; set; }
// @property (assign, nonatomic) BOOL sellerRatingsExtensionEnabled;
[Export ("sellerRatingsExtensionEnabled")]
bool SellerRatingsExtensionEnabled { get; set; }
// @property (assign, nonatomic) BOOL siteLinksExtensionEnabled;
[Export ("siteLinksExtensionEnabled")]
bool SiteLinksExtensionEnabled { get; set; }
// @property (copy, nonatomic) NSString * CSSWidth;
[Export ("CSSWidth")]
string CssWidth { get; set; }
// @property (assign, nonatomic) NSInteger numberOfAds;
[Export ("numberOfAds")]
nint NumberOfAds { get; set; }
// @property (copy, nonatomic) NSString * fontFamily;
[Export ("fontFamily")]
string FontFamily { get; set; }
// @property (copy, nonatomic) NSString * attributionFontFamily;
[Export ("attributionFontFamily")]
string AttributionFontFamily { get; set; }
// @property (assign, nonatomic) CGFloat annotationFontSize;
[Export ("annotationFontSize")]
nfloat AnnotationFontSize { get; set; }
// @property (assign, nonatomic) CGFloat attributionFontSize;
[Export ("attributionFontSize")]
nfloat AttributionFontSize { get; set; }
// @property (assign, nonatomic) CGFloat descriptionFontSize;
[Export ("descriptionFontSize")]
nfloat DescriptionFontSize { get; set; }
// @property (assign, nonatomic) CGFloat domainLinkFontSize;
[Export ("domainLinkFontSize")]
nfloat DomainLinkFontSize { get; set; }
// @property (assign, nonatomic) CGFloat titleFontSize;
[Export ("titleFontSize")]
nfloat TitleFontSize { get; set; }
// @property (copy, nonatomic) NSString * adBorderColor;
[Export ("adBorderColor")]
string AdBorderColor { get; set; }
// @property (copy, nonatomic) NSString * adSeparatorColor;
[Export ("adSeparatorColor")]
string AdSeparatorColor { get; set; }
// @property (copy, nonatomic) NSString * annotationTextColor;
[Export ("annotationTextColor")]
string AnnotationTextColor { get; set; }
// @property (copy, nonatomic) NSString * attributionTextColor;
[Export ("attributionTextColor")]
string AttributionTextColor { get; set; }
// @property (copy, nonatomic) NSString * backgroundColor;
[Export ("backgroundColor")]
string BackgroundColor { get; set; }
// @property (copy, nonatomic) NSString * borderColor;
[Export ("borderColor")]
string BorderColor { get; set; }
// @property (copy, nonatomic) NSString * domainLinkColor;
[Export ("domainLinkColor")]
string DomainLinkColor { get; set; }
// @property (copy, nonatomic) NSString * textColor;
[Export ("textColor")]
string TextColor { get; set; }
// @property (copy, nonatomic) NSString * titleLinkColor;
[Export ("titleLinkColor")]
string TitleLinkColor { get; set; }
// @property (copy, nonatomic) NSString * adBorderCSSSelections;
[Export ("adBorderCSSSelections")]
string AdBorderCssSelections { get; set; }
// @property (assign, nonatomic) CGFloat adjustableLineHeight;
[Export ("adjustableLineHeight")]
nfloat AdjustableLineHeight { get; set; }
// @property (assign, nonatomic) CGFloat attributionBottomSpacing;
[Export ("attributionBottomSpacing")]
nfloat AttributionBottomSpacing { get; set; }
// @property (copy, nonatomic) NSString * borderCSSSelections;
[Export ("borderCSSSelections")]
string BorderCssSelections { get; set; }
// @property (assign, nonatomic) BOOL titleUnderlineHidden;
[Export ("titleUnderlineHidden")]
bool TitleUnderlineHidden { get; set; }
// @property (assign, nonatomic) BOOL boldTitleEnabled;
[Export ("boldTitleEnabled")]
bool BoldTitleEnabled { get; set; }
// @property (assign, nonatomic) CGFloat verticalSpacing;
[Export ("verticalSpacing")]
nfloat VerticalSpacing { get; set; }
// @property (assign, nonatomic) BOOL detailedAttributionExtensionEnabled;
[Export ("detailedAttributionExtensionEnabled")]
bool DetailedAttributionExtensionEnabled { get; set; }
// @property (assign, nonatomic) BOOL longerHeadlinesExtensionEnabled;
[Export ("longerHeadlinesExtensionEnabled")]
bool LongerHeadlinesExtensionEnabled { get; set; }
// -(void)setAdvancedOptionValue:(id)value forKey:(NSString *)key;
[Export ("setAdvancedOptionValue:forKey:")]
void SetAdvancedOptionValue (NSObject value, string key);
}
[BaseType (typeof (NSObject), Name = "GADDefaultInAppPurchase")]
interface DefaultInAppPurchase
{
[Static]
@ -1271,7 +1551,7 @@ namespace Google.MobileAds
void FinishTransaction ();
}
[BaseType (typeof(NSObject), Name = "GADInAppPurchase")]
[BaseType (typeof (NSObject), Name = "GADInAppPurchase")]
interface InAppPurchase
{
[Export ("productID", ArgumentSemantic.Copy)]
@ -1289,7 +1569,7 @@ namespace Google.MobileAds
}
[BaseType (typeof(NSObject), Name = "GADDefaultInAppPurchaseDelegate")]
[BaseType (typeof (NSObject), Name = "GADDefaultInAppPurchaseDelegate")]
[Model]
[Protocol]
interface DefaultInAppPurchaseDelegate
@ -1307,12 +1587,13 @@ namespace Google.MobileAds
}
[BaseType (typeof(NSObject), Name = "GADInAppPurchaseDelegate")]
[BaseType (typeof (NSObject), Name = "GADInAppPurchaseDelegate")]
[Model]
[Protocol]
interface InAppPurchaseDelegate
{
[Export ("didReceiveInAppPurchase:")] [EventArgs ("InAppPurchaseDelegateDidRecieve")]
[Export ("didReceiveInAppPurchase:")]
[EventArgs ("InAppPurchaseDelegateDidRecieve")]
void DidReceiveInAppPurchase (InAppPurchase purchase);
}
@ -1323,7 +1604,7 @@ namespace Google.MobileAds
// @protocol GADMediatedNativeAd <NSObject>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADMediatedNativeAd")]
[BaseType (typeof (NSObject), Name = "GADMediatedNativeAd")]
interface MediatedNativeAd
{
// @required -(id<GADMediatedNativeAdDelegate>)mediatedNativeAdDelegate;
@ -1344,12 +1625,12 @@ namespace Google.MobileAds
// @protocol GADMediatedNativeAdDelegate <NSObject>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADMediatedNativeAdDelegate")]
[BaseType (typeof (NSObject), Name = "GADMediatedNativeAdDelegate")]
interface MediatedNativeAdDelegate
{
// @optional -(void)mediatedNativeAd:(id<GADMediatedNativeAd>)mediatedNativeAd didRenderInView:(UIView *)view;
[Export ("mediatedNativeAd:didRenderInView:")]
void DidRenderInView (IMediatedNativeAd mediatedNativeAd, UIView view);
// @optional -(void)mediatedNativeAd:(id<GADMediatedNativeAd>)mediatedNativeAd didRenderInView:(UIView *)view viewController:(UIViewController *)viewController;;
[Export ("mediatedNativeAd:didRenderInView:viewController:")]
void DidRenderInView (IMediatedNativeAd mediatedNativeAd, UIView view, UIViewController viewController);
// @optional -(void)mediatedNativeAdDidRecordImpression:(id<GADMediatedNativeAd>)mediatedNativeAd;
[Export ("mediatedNativeAdDidRecordImpression:")]
@ -1362,9 +1643,14 @@ namespace Google.MobileAds
// @interface GADMediatedNativeAdNotificationSource : NSObject
[DisableDefaultCtor]
[BaseType (typeof(NSObject), Name = "GADMediatedNativeAdNotificationSource")]
[BaseType (typeof (NSObject), Name = "GADMediatedNativeAdNotificationSource")]
interface MediatedNativeAdNotificationSource
{
// + (void)mediatedNativeAdDidRecordClick:(id<GADMediatedNativeAd>)mediatedNativeAd;
[Static]
[Export ("mediatedNativeAdDidRecordClick:")]
void DidRecordClick (IMediatedNativeAd mediatedNativeAd);
// +(void)mediatedNativeAdWillPresentScreen:(id<GADMediatedNativeAd>)mediatedNativeAd;
[Static]
[Export ("mediatedNativeAdWillPresentScreen:")]
@ -1393,7 +1679,7 @@ namespace Google.MobileAds
// @protocol GADMediatedNativeAppInstallAd <GADMediatedNativeAd>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADMediatedNativeAppInstallAd")]
[BaseType (typeof (NSObject), Name = "GADMediatedNativeAppInstallAd")]
interface MediatedNativeAppInstallAd : MediatedNativeAd
{
// @required -(NSString *)headline;
@ -1404,7 +1690,7 @@ namespace Google.MobileAds
// @required -(NSArray *)images;
[Abstract]
[Export ("images")]
NativeAdImage[] GetImages ();
NativeAdImage [] GetImages ();
// @required -(NSString *)body;
[Abstract]
@ -1444,7 +1730,7 @@ namespace Google.MobileAds
// @protocol GADMediatedNativeContentAd <GADMediatedNativeAd>
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "GADMediatedNativeContentAd")]
[BaseType (typeof (NSObject), Name = "GADMediatedNativeContentAd")]
interface MediatedNativeContentAd : MediatedNativeAd
{
// @required -(NSString *)headline;
@ -1460,7 +1746,7 @@ namespace Google.MobileAds
// @required -(NSArray *)images;
[Abstract]
[Export ("images")]
NativeAdImage[] GetImages ();
NativeAdImage [] GetImages ();
// @required -(GADNativeAdImage *)logo;
[Abstract]
@ -1485,10 +1771,10 @@ namespace Google.MobileAds.DoubleClick
{
#region DoubleClick
[BaseType (typeof(Google.MobileAds.BannerView),
[BaseType (typeof (Google.MobileAds.BannerView),
Name = "DFPBannerView",
Delegates = new string [] { "AdSizeDelegate" },
Events = new Type [] { typeof(Google.MobileAds.AdSizeDelegate) })]
Events = new Type [] { typeof (Google.MobileAds.AdSizeDelegate) })]
interface BannerView
{
@ -1538,7 +1824,7 @@ namespace Google.MobileAds.DoubleClick
void SetValidAdSizes (AdSize firstSize, IntPtr sizesPtr);
}
[BaseType (typeof(NSObject), Name = "DFPCustomRenderedAd")]
[BaseType (typeof (NSObject), Name = "DFPCustomRenderedAd")]
interface CustomRenderedAd
{
@ -1565,7 +1851,7 @@ namespace Google.MobileAds.DoubleClick
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "DFPCustomRenderedBannerViewDelegate")]
[BaseType (typeof (NSObject), Name = "DFPCustomRenderedBannerViewDelegate")]
interface CustomRenderedBannerViewDelegate
{
@ -1583,7 +1869,7 @@ namespace Google.MobileAds.DoubleClick
[Model]
[Protocol]
[BaseType (typeof(NSObject), Name = "DFPCustomRenderedInterstitialDelegate")]
[BaseType (typeof (NSObject), Name = "DFPCustomRenderedInterstitialDelegate")]
interface CustomRenderedInterstitialDelegate
{
@ -1594,10 +1880,10 @@ namespace Google.MobileAds.DoubleClick
void DidReceiveCustomRenderedInterstitial (Interstitial interstitial, CustomRenderedAd customRenderedAd);
}
[BaseType (typeof(Google.MobileAds.Interstitial),
[BaseType (typeof (Google.MobileAds.Interstitial),
Name = "DFPInterstitial",
Delegates = new string [] { "CustomRenderedInterstitialDelegate" },
Events = new Type [] { typeof(CustomRenderedInterstitialDelegate) })]
Events = new Type [] { typeof (CustomRenderedInterstitialDelegate) })]
interface Interstitial
{
@ -1618,7 +1904,7 @@ namespace Google.MobileAds.DoubleClick
ICustomRenderedInterstitialDelegate CustomRenderedInterstitialDelegate { get; set; }
}
[BaseType (typeof(Google.MobileAds.Request), Name = "DFPRequest")]
[BaseType (typeof (Google.MobileAds.Request), Name = "DFPRequest")]
interface Request
{

Просмотреть файл

@ -1,33 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_GoogleMobileAdsAssemblyName>Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleMobileAdsAssemblyName>
<_GoogleMobileAdsId>Gmbladssdk-7.6.0</_GoogleMobileAdsId>
<_GoogleMobileAdsId>Gmbladssdk-7.7.1</_GoogleMobileAdsId>
</PropertyGroup>
<ItemGroup Condition="'$(OutputType)'!='Library'">
<XamarinBuildRestoreResources Include="_GoogleMobileAdsItems"/>
<XamarinBuildRestoreResources Include="_GoogleMobileAdsItems" />
<XamarinBuildDownload Include="$(_GoogleMobileAdsId)">
<Url>https://dl.google.com/googleadmobadssdk/googlemobileadssdkios-7.6.0.zip</Url>
<Kind>Zip</Kind>
<Url>https://www.gstatic.com/cpdc/55fad17a8c2158f8-GoogleMobileAds-7.7.1.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
</ItemGroup>
<Target Name="_GoogleMobileAdsItems">
<PropertyGroup>
<_GoogleMobileAdsFrameworkDir>$(XamarinBuildDownloadDir)$(_GoogleMobileAdsId)\GoogleMobileAdsSdkiOS-7.6.0\GoogleMobileAds.framework\</_GoogleMobileAdsFrameworkDir>
<_GoogleMobileAdsFrameworkDir>$(XamarinBuildDownloadDir)$(_GoogleMobileAdsId)\Frameworks\GoogleMobileAds.framework</_GoogleMobileAdsFrameworkDir>
</PropertyGroup>
<ItemGroup>
<RestoreAssemblyResource Include="$(_GoogleMobileAdsFrameworkDir)\Versions\A\GoogleMobileAds">
<LogicalName>GoogleMobileAds</LogicalName>
<AssemblyName>$(_GoogleMobileAdsAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
</ItemGroup>
</Target>
</Project>
</Project>

Просмотреть файл

@ -1,9 +1,9 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("GoogleMobileAds",
[assembly: LinkWith ("GoogleMobileAds",
LinkTarget.ArmV7 | LinkTarget.ArmV7s | LinkTarget.Arm64 | LinkTarget.Simulator | LinkTarget.Simulator64,
LinkerFlags = "-ObjC",
Frameworks = "AdSupport AudioToolbox AVFoundation CoreGraphics CoreMedia CoreTelephony EventKit EventKitUI MessageUI StoreKit SystemConfiguration",
Frameworks = "AdSupport AudioToolbox AVFoundation CoreGraphics CoreMedia CoreTelephony EventKit EventKitUI MediaPlayer MessageUI StoreKit SystemConfiguration",
ForceLoad = true,
SmartLink = true)]

Просмотреть файл

@ -15,8 +15,8 @@
<dependencies>
<group targetFramework="Xamarin.iOS10">
<dependency id="Xamarin.Build.Download" version="0.2.1"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.3.0"/>
<dependency id="Xamarin.Google.iOS.SignIn" version="2.4.0.3"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.4.0"/>
<dependency id="Xamarin.Google.iOS.SignIn" version="3.0.0.0"/>
</group>
</dependencies>
</metadata>

Просмотреть файл

@ -1,4 +1,4 @@
version: 2.4.0.3
version: 3.0.0.0
name: Google Sign-In for iOS
id: googleiossignin
publisher: Xamarin Inc.
@ -16,7 +16,7 @@ libraries:
is_shell: true
packages:
ios-unified:
- Xamarin.Google.iOS.SignIn, Version=2.4.0.3
- Xamarin.Google.iOS.SignIn, Version=3.0.0.0
samples:
- name: "Sign-In Sample"
path: ../samples/SignInExample/SignInExample.sln

2
Google.SignIn/externals/Podfile поставляемый
Просмотреть файл

@ -1,5 +1,5 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
pod 'GoogleSignIn', '2.4.0'
pod 'GoogleSignIn', '3.0.0'

Просмотреть файл

@ -3,7 +3,7 @@
<metadata>
<id>Xamarin.Google.iOS.SignIn</id>
<title>Google APIs Sign In iOS Library</title>
<version>2.4.0.3</version>
<version>3.0.0.0</version>
<authors>Xamarin Inc.</authors>
<owners>Xamarin Inc.</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
@ -14,7 +14,7 @@
<iconUrl>https://xamarin-component-icons.s3.amazonaws.com/Xamarin.Google.iOS.png</iconUrl>
<dependencies>
<dependency id="Xamarin.Build.Download" version="0.2.1"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.3.0"/>
<dependency id="Xamarin.Google.iOS.Core" version="2.0.4.0"/>
</dependencies>
</metadata>
<files>

Просмотреть файл

@ -8,13 +8,13 @@ using CoreGraphics;
namespace Google.SignIn
{
// typedef void (^GIDAuthenticationHandler)(GIDAuthentication *authentication, NSError *error);
delegate void AuthenticationHandler (Authentication authentication,NSError error);
delegate void AuthenticationHandler (Authentication authentication, NSError error);
// typedef void (^GIDAccessTokenHandler)(NSString *, NSError *);
delegate void AccessTokenHandler (string accessToken,NSError error);
delegate void AccessTokenHandler (string accessToken, NSError error);
// @interface GIDAuthentication : NSObject <NSCoding>
[BaseType (typeof(NSObject), Name = "GIDAuthentication")]
[BaseType (typeof (NSObject), Name = "GIDAuthentication")]
interface Authentication : INSCoding
{
// @property (readonly, nonatomic) NSString * clientID;
@ -65,7 +65,7 @@ namespace Google.SignIn
}
// @interface GIDGoogleUser : NSObject <NSCoding>
[BaseType (typeof(NSObject), Name = "GIDGoogleUser")]
[BaseType (typeof (NSObject), Name = "GIDGoogleUser")]
interface GoogleUser : INSCoding
{
// @property (readonly, nonatomic) NSString * userID;
@ -82,7 +82,7 @@ namespace Google.SignIn
// @property (readonly, nonatomic) NSArray * accessibleScopes;
[Export ("accessibleScopes")]
string[] AccessibleScopes { get; }
string [] AccessibleScopes { get; }
// @property (readonly, nonatomic) NSString * hostedDomain;
[Export ("hostedDomain")]
@ -94,7 +94,7 @@ namespace Google.SignIn
}
// @interface GIDProfileData : NSObject <NSCoding>
[BaseType (typeof(NSObject), Name = "GIDProfileData")]
[BaseType (typeof (NSObject), Name = "GIDProfileData")]
interface ProfileData : INSCoding
{
// @property (readonly, nonatomic) NSString * email;
@ -105,6 +105,14 @@ namespace Google.SignIn
[Export ("name")]
string Name { get; }
// @property(nonatomic, readonly) NSString *givenName;
[Export ("givenName")]
string GivenName { get; }
// @property(nonatomic, readonly) NSString *familyName;
[Export ("familyName")]
string FamilyName { get; }
// @property (readonly, nonatomic) BOOL hasImage;
[Export ("hasImage")]
bool HasImage { get; }
@ -121,7 +129,7 @@ namespace Google.SignIn
// @protocol GIDSignInDelegate
[Protocol, Model]
[BaseType (typeof(NSObject), Name = "GIDSignInDelegate")]
[BaseType (typeof (NSObject), Name = "GIDSignInDelegate")]
interface SignInDelegate
{
// @required -(void)signIn:(GIDSignIn *)signIn didSignInForUser:(GIDGoogleUser *)user withError:(NSError *)error;
@ -145,7 +153,7 @@ namespace Google.SignIn
// @protocol GIDSignInUIDelegate <NSObject>
[Protocol, Model]
[BaseType (typeof(NSObject), Name = "GIDSignInUIDelegate")]
[BaseType (typeof (NSObject), Name = "GIDSignInUIDelegate")]
interface SignInUIDelegate
{
// @optional -(void)signInWillDispatch:(GIDSignIn *)signIn error:(NSError *)error;
@ -162,10 +170,10 @@ namespace Google.SignIn
}
// @interface GIDSignIn : NSObject
[BaseType (typeof(NSObject),
[BaseType (typeof (NSObject),
Name = "GIDSignIn",
Delegates = new string[] { "Delegate" },
Events = new Type[] { typeof(SignInDelegate) })]
Delegates = new string [] { "Delegate" },
Events = new Type [] { typeof (SignInDelegate) })]
interface SignIn
{
// extern NSString *const kGIDSignInErrorDomain;
@ -190,7 +198,7 @@ namespace Google.SignIn
// @property (copy, nonatomic) NSArray * scopes;
[Export ("scopes", ArgumentSemantic.Copy)]
string[] Scopes { get; set; }
string [] Scopes { get; set; }
// @property (assign, nonatomic) BOOL shouldFetchBasicProfile;
[Export ("shouldFetchBasicProfile")]
@ -208,6 +216,10 @@ namespace Google.SignIn
[Export ("language")]
string Language { get; set; }
// @property(nonatomic, copy) NSString *loginHint;
[Export ("loginHint")]
string LoginHint { get; set; }
// @property (copy, nonatomic) NSString * serverClientID;
[Export ("serverClientID")]
string ServerClientID { get; set; }
@ -256,7 +268,7 @@ namespace Google.SignIn
}
// @interface GIDSignInButton : UIControl
[BaseType (typeof(UIControl), Name = "GIDSignInButton")]
[BaseType (typeof (UIControl), Name = "GIDSignInButton")]
interface SignInButton
{
// @property (assign, nonatomic) GIDSignInButtonStyle style;
@ -266,20 +278,6 @@ namespace Google.SignIn
// @property (assign, nonatomic) GIDSignInButtonColorScheme colorScheme;
[Export ("colorScheme", ArgumentSemantic.Assign)]
ButtonColorScheme ColorScheme { get; set; }
// @property (nonatomic, weak) UIViewController * delegate;
[NullAllowed, Export ("delegate", ArgumentSemantic.Weak)]
UIViewController Delegate { get; set; }
}
// @interface GIDSignIn (UIViewController)
[Category]
[BaseType (typeof(UIViewController))]
interface UIViewController_GIDSignIn
{
// -(void)gid_signInWithGoogle;
[Export ("gid_signInWithGoogle")]
void SignInWithGoogle ();
}
}

Просмотреть файл

@ -39,21 +39,21 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="libOpenInChrome.linkwith.cs">
<DependentUpon>libOpenInChrome.a</DependentUpon>
<Compile Include="libOpenInChrome_external.linkwith.cs">
<DependentUpon>libOpenInChrome_external.a</DependentUpon>
</Compile>
<Compile Include="libGTMOAuth2_external.linkwith.cs">
<DependentUpon>libGTMOAuth2_external.a</DependentUpon>
<Compile Include="libGTMOAuth2_external_external.linkwith.cs">
<DependentUpon>libGTMOAuth2_external_external.a</DependentUpon>
</Compile>
<Compile Include="libGTMOAuth2_internal.linkwith.cs">
<DependentUpon>libGTMOAuth2_internal.a</DependentUpon>
<Compile Include="libGTMOAuth2_internal_external.linkwith.cs">
<DependentUpon>libGTMOAuth2_internal_external.a</DependentUpon>
</Compile>
<Compile Include="Loader.cs" />
<Compile Include="libSignIn.linkwith.cs">
<DependentUpon>libSignIn.a</DependentUpon>
<Compile Include="libSignIn_external.linkwith.cs">
<DependentUpon>libSignIn_external.a</DependentUpon>
</Compile>
<Compile Include="libGIPNSURL+FIFE.linkwith.cs">
<DependentUpon>libGIPNSURL+FIFE.a</DependentUpon>
<Compile Include="libGIPNSURL+FIFE_external.linkwith.cs">
<DependentUpon>libGIPNSURL+FIFE_external.a</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -1,58 +1,48 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_GoogleSignInAssemblyName>Google.SignIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleSignInAssemblyName>
<_GoogleAppUtilitiesItemsFolder>GAppUtls-1.0.0</_GoogleAppUtilitiesItemsFolder>
<_GoogleAuthUtilitiesItemsFolder>GAthUtls-1.0.1</_GoogleAuthUtilitiesItemsFolder>
<_GoogleSignInItemsFolder>GSgnIn-2.4.0</_GoogleSignInItemsFolder>
<_GoogleAppUtilitiesItemsFolder>GAppUtls-1.1.0</_GoogleAppUtilitiesItemsFolder>
<_GoogleAuthUtilitiesItemsFolder>GAthUtls-2.0.0</_GoogleAuthUtilitiesItemsFolder>
<_GoogleSignInItemsFolder>GSgnIn-3.0.0</_GoogleSignInItemsFolder>
</PropertyGroup>
<ItemGroup Condition="'$(OutputType)'!='Library'">
<XamarinBuildDownload Include="$(_GoogleAppUtilitiesItemsFolder)">
<Url>https://www.gstatic.com/cpdc/6637f16866269276-GoogleAppUtilities-1.0.0.tar.gz</Url>
<Url>https://www.gstatic.com/cpdc/af37423bd94071ef-GoogleAppUtilities-1.1.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GoogleAuthUtilitiesItemsFolder)">
<Url>https://www.gstatic.com/cpdc/5fc4042ed8538ea9-GoogleAuthUtilities-1.0.1.tar.gz</Url>
<Url>https://www.gstatic.com/cpdc/69fbda2288e82105-GoogleAuthUtilities-2.0.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GoogleSignInItemsFolder)">
<Url>https://www.gstatic.com/cpdc/aabd2805ac7a9ef2-GoogleSignIn-2.4.0.tar.gz</Url>
<Url>https://www.gstatic.com/cpdc/7f66fc472e8b5701-GoogleSignIn-3.0.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildRestoreResources Include="_GoogleSignInItems"/>
<XamarinBuildRestoreResources Include="_GoogleSignInItems" />
</ItemGroup>
<Target Name="_GoogleSignInItems">
<ItemGroup>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleAppUtilitiesItemsFolder)\Libraries\libOpenInChrome.a">
<LogicalName>libOpenInChrome.a</LogicalName>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleAppUtilitiesItemsFolder)\Libraries\libOpenInChrome_external.a">
<LogicalName>libOpenInChrome_external.a</LogicalName>
<AssemblyName>$(_GoogleSignInAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleAuthUtilitiesItemsFolder)\Libraries\libGTMOAuth2_external.a">
<LogicalName>libGTMOAuth2_external.a</LogicalName>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleAuthUtilitiesItemsFolder)\Libraries\libGTMOAuth2_external_external.a">
<LogicalName>libGTMOAuth2_external_external.a</LogicalName>
<AssemblyName>$(_GoogleSignInAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleAuthUtilitiesItemsFolder)\Libraries\libGTMOAuth2_internal.a">
<LogicalName>libGTMOAuth2_internal.a</LogicalName>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleAuthUtilitiesItemsFolder)\Libraries\libGTMOAuth2_internal_external.a">
<LogicalName>libGTMOAuth2_internal_external.a</LogicalName>
<AssemblyName>$(_GoogleSignInAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleSignInItemsFolder)\Libraries\libSignIn.a">
<LogicalName>libSignIn.a</LogicalName>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleSignInItemsFolder)\Libraries\libSignIn_external.a">
<LogicalName>libSignIn_external.a</LogicalName>
<AssemblyName>$(_GoogleSignInAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleSignInItemsFolder)\Libraries\libGIPNSURL+FIFE.a">
<LogicalName>libGIPNSURL+FIFE.a</LogicalName>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleSignInItemsFolder)\Libraries\libGIPNSURL+FIFE_external.a">
<LogicalName>libGIPNSURL+FIFE_external.a</LogicalName>
<AssemblyName>$(_GoogleSignInAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
<RestoreAssemblyResource Include="$(XamarinBuildDownloadDir)$(_GoogleSignInItemsFolder)\Resources\GoogleSignIn.bundle\Info.plist">
<LogicalName>__monotouch_content_GoogleSignIn.bundle_fInfo.plist</LogicalName>
<AssemblyName>$(_GoogleSignInAssemblyName)</AssemblyName>
@ -229,8 +219,6 @@
<LogicalName>__monotouch_content_GoogleSignIn.bundle_fzh__TW.lproj_fGoogleSignIn.strings</LogicalName>
<AssemblyName>$(_GoogleSignInAssemblyName)</AssemblyName>
</RestoreAssemblyResource>
</ItemGroup>
</Target>
</Project>

Просмотреть файл

@ -1,5 +0,0 @@
using ObjCRuntime;
[assembly: LinkWith ("libGIPNSURL+FIFE.a", LinkTarget.ArmV7 | LinkTarget.Simulator | LinkTarget.Simulator64 | LinkTarget.Arm64,
SmartLink = true,
ForceLoad = true)]

Просмотреть файл

@ -0,0 +1,5 @@
using ObjCRuntime;
[assembly: LinkWith ("libGIPNSURL+FIFE_external.a", LinkTarget.ArmV7 | LinkTarget.Simulator | LinkTarget.Simulator64 | LinkTarget.Arm64,
SmartLink = true,
ForceLoad = true)]

Просмотреть файл

@ -1,4 +0,0 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libGTMOAuth2_external.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -0,0 +1,4 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libGTMOAuth2_external_external.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -1,4 +0,0 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libGTMOAuth2_internal.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -0,0 +1,4 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libGTMOAuth2_internal_external.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -1,4 +0,0 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libOpenInChrome.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -0,0 +1,4 @@
using System;
using ObjCRuntime;
[assembly: LinkWith ("libOpenInChrome_external.a", LinkTarget.ArmV7 | LinkTarget.Simulator64 | LinkTarget.Simulator | LinkTarget.Arm64, SmartLink = true, ForceLoad = true)]

Просмотреть файл

@ -1,8 +1,8 @@
using ObjCRuntime;
[assembly: LinkWith ("libSignIn.a", LinkTarget.ArmV7 | LinkTarget.Simulator | LinkTarget.Simulator64 | LinkTarget.Arm64,
[assembly: LinkWith ("libSignIn_external.a", LinkTarget.ArmV7 | LinkTarget.Simulator | LinkTarget.Simulator64 | LinkTarget.Arm64,
LinkerFlags = "-ObjC -lsqlite3",
Frameworks = "CoreText Security StoreKit",
WeakFrameworks = "SafariServices",
SmartLink = true,
SmartLink = true,
ForceLoad = true)]

Просмотреть файл

@ -29,7 +29,7 @@ The build script for this project uses [Cake][62]. To run the build, you can us
```
cd Google.Core
sh build.sh -target libs
sh ../build.sh -target libs
```
The bootstrapper script will automatically download Cake.exe and all the required tools and files into the `./tools/` folder.