Move and rename iOS project so it works with KMM plugin

Enables iOS KMP debug on device in Android Studio
This commit is contained in:
Olof Hedman
2025-10-23 15:38:10 +02:00
parent ceb377d8a8
commit e8a3416658
684 changed files with 247 additions and 103 deletions

View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AvailableLibraries</key>
<array>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>GoogleMapsBase.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>GoogleMapsBase.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>

View File

@@ -0,0 +1,27 @@
//
// GMSCompatabilityMacros.h
// Google Maps SDK for iOS
//
// Copyright 2015 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://cloud.google.com/maps-platform/terms
//
#import <Foundation/Foundation.h>
/**
* A Swift 2/3 version conditional variant of NS_SWIFT_NAME. This is used in
* places where NS_SWIFT_NAME is needed but the Swift-transcribed name of the
* Objective-C name is conditional on the Swift version being compiled. This
* macro determines which version of Swift this code is being imported from by
* looking for the presence of the SWIFT_SDK_OVERLAY_UIKIT_EPOCH macro which is
* only defined in Swift 3+.
*/
#if defined(SWIFT_SDK_OVERLAY_UIKIT_EPOCH)
#define GMS_SWIFT_NAME_2_0_3_0(name_swift_2, name_swift_3) \
NS_SWIFT_NAME(name_swift_3)
#else
#define GMS_SWIFT_NAME_2_0_3_0(name_swift_2, name_swift_3) \
NS_SWIFT_NAME(name_swift_2)
#endif

View File

@@ -0,0 +1,75 @@
//
// GMSCoordinateBounds.h
// Google Maps SDK for iOS
//
// Copyright 2013 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://cloud.google.com/maps-platform/terms
//
#import <CoreLocation/CoreLocation.h>
NS_ASSUME_NONNULL_BEGIN
/**
* GMSCoordinateBounds represents a rectangular bounding box on the Earth's surface.
* GMSCoordinateBounds is immutable and can't be modified after construction.
*/
@interface GMSCoordinateBounds : NSObject
/** The North-East corner of these bounds. */
@property(nonatomic, readonly) CLLocationCoordinate2D northEast;
/** The South-West corner of these bounds. */
@property(nonatomic, readonly) CLLocationCoordinate2D southWest;
/**
* Returns NO if this bounds does not contain any points. For example, [[GMSCoordinateBounds alloc]
* init].valid == NO.
*
* When an invalid bounds is expanded with valid coordinates via includingCoordinate: or
* includingBounds:, the resulting bounds will be valid but contain only the new coordinates.
*/
@property(nonatomic, readonly, getter=isValid) BOOL valid;
/**
* Inits the northEast and southWest bounds corresponding to the rectangular region defined by the
* two corners.
*
* It is ambiguous whether the longitude of the box extends from |coord1| to |coord2| or vice-versa;
* the box is constructed as the smaller of the two variants, eliminating the ambiguity.
*/
- (id)initWithCoordinate:(CLLocationCoordinate2D)coord1 coordinate:(CLLocationCoordinate2D)coord2;
/**
* Returns a GMSCoordinateBounds representing the current bounds extended to include the passed-in
* coordinate.
*
* If the current bounds is invalid, the result is a valid bounds containing only |coordinate|.
*/
- (GMSCoordinateBounds *)includingCoordinate:(CLLocationCoordinate2D)coordinate;
/**
* Returns a GMSCoordinateBounds representing the current bounds extended to include the entire
* other bounds.
*
* If the current bounds is invalid, the result is a valid bounds equal to |other|.
*/
- (GMSCoordinateBounds *)includingBounds:(GMSCoordinateBounds *)other;
/**
* Returns YES if |coordinate| is contained within this bounds. This includes points that lie
* exactly on the edge of the bounds.
*/
- (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate;
/**
* Returns YES if |other| overlaps with this bounds. Two bounds are overlapping if there is at least
* one coordinate point contained by both.
*/
- (BOOL)intersectsBounds:(GMSCoordinateBounds *)other;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,24 @@
//
// GMSDeprecationMacros.h
// Google Maps SDK for iOS
//
// Copyright 2015 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://cloud.google.com/maps-platform/terms
//
#ifndef IPHONE_MAPS_SDK_BASE_API_GMSDEPRECATIONMACROS_H_
#define IPHONE_MAPS_SDK_BASE_API_GMSDEPRECATIONMACROS_H_
/** Inside Google, this is defined in sdk.bzl. */
#ifndef __GMS_AVAILABLE_BUT_DEPRECATED
#define __GMS_AVAILABLE_BUT_DEPRECATED __deprecated
#endif
/** Inside Google, this is defined in sdk.bzl. */
#ifndef __GMS_AVAILABLE_BUT_DEPRECATED_MSG
#define __GMS_AVAILABLE_BUT_DEPRECATED_MSG(msg) __deprecated_msg(msg)
#endif
#endif

View File

@@ -0,0 +1,3 @@
#import <GoogleMapsBase/GMSCompatabilityMacros.h>
#import <GoogleMapsBase/GMSCoordinateBounds.h>
#import <GoogleMapsBase/GMSDeprecationMacros.h>

View File

@@ -0,0 +1,18 @@
module GoogleMapsBase {
umbrella header "GoogleMapsBase.h"
export *
module * { export * }
link "z"
link framework "CoreFoundation"
link framework "CoreGraphics"
link framework "CoreLocation"
link framework "CoreTelephony"
link framework "CoreText"
link framework "Foundation"
link framework "OSLog"
link framework "QuartzCore"
link framework "Security"
link framework "UIKit"
}

View File

@@ -0,0 +1,18 @@
framework module GoogleMapsBase {
umbrella header "GoogleMapsBase.h"
export *
module * { export * }
link "z"
link framework "CoreFoundation"
link framework "CoreGraphics"
link framework "CoreLocation"
link framework "CoreTelephony"
link framework "CoreText"
link framework "Foundation"
link framework "OSLog"
link framework "QuartzCore"
link framework "Security"
link framework "UIKit"
}

View File

@@ -0,0 +1,27 @@
//
// GMSCompatabilityMacros.h
// Google Maps SDK for iOS
//
// Copyright 2015 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://cloud.google.com/maps-platform/terms
//
#import <Foundation/Foundation.h>
/**
* A Swift 2/3 version conditional variant of NS_SWIFT_NAME. This is used in
* places where NS_SWIFT_NAME is needed but the Swift-transcribed name of the
* Objective-C name is conditional on the Swift version being compiled. This
* macro determines which version of Swift this code is being imported from by
* looking for the presence of the SWIFT_SDK_OVERLAY_UIKIT_EPOCH macro which is
* only defined in Swift 3+.
*/
#if defined(SWIFT_SDK_OVERLAY_UIKIT_EPOCH)
#define GMS_SWIFT_NAME_2_0_3_0(name_swift_2, name_swift_3) \
NS_SWIFT_NAME(name_swift_3)
#else
#define GMS_SWIFT_NAME_2_0_3_0(name_swift_2, name_swift_3) \
NS_SWIFT_NAME(name_swift_2)
#endif

View File

@@ -0,0 +1,75 @@
//
// GMSCoordinateBounds.h
// Google Maps SDK for iOS
//
// Copyright 2013 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://cloud.google.com/maps-platform/terms
//
#import <CoreLocation/CoreLocation.h>
NS_ASSUME_NONNULL_BEGIN
/**
* GMSCoordinateBounds represents a rectangular bounding box on the Earth's surface.
* GMSCoordinateBounds is immutable and can't be modified after construction.
*/
@interface GMSCoordinateBounds : NSObject
/** The North-East corner of these bounds. */
@property(nonatomic, readonly) CLLocationCoordinate2D northEast;
/** The South-West corner of these bounds. */
@property(nonatomic, readonly) CLLocationCoordinate2D southWest;
/**
* Returns NO if this bounds does not contain any points. For example, [[GMSCoordinateBounds alloc]
* init].valid == NO.
*
* When an invalid bounds is expanded with valid coordinates via includingCoordinate: or
* includingBounds:, the resulting bounds will be valid but contain only the new coordinates.
*/
@property(nonatomic, readonly, getter=isValid) BOOL valid;
/**
* Inits the northEast and southWest bounds corresponding to the rectangular region defined by the
* two corners.
*
* It is ambiguous whether the longitude of the box extends from |coord1| to |coord2| or vice-versa;
* the box is constructed as the smaller of the two variants, eliminating the ambiguity.
*/
- (id)initWithCoordinate:(CLLocationCoordinate2D)coord1 coordinate:(CLLocationCoordinate2D)coord2;
/**
* Returns a GMSCoordinateBounds representing the current bounds extended to include the passed-in
* coordinate.
*
* If the current bounds is invalid, the result is a valid bounds containing only |coordinate|.
*/
- (GMSCoordinateBounds *)includingCoordinate:(CLLocationCoordinate2D)coordinate;
/**
* Returns a GMSCoordinateBounds representing the current bounds extended to include the entire
* other bounds.
*
* If the current bounds is invalid, the result is a valid bounds equal to |other|.
*/
- (GMSCoordinateBounds *)includingBounds:(GMSCoordinateBounds *)other;
/**
* Returns YES if |coordinate| is contained within this bounds. This includes points that lie
* exactly on the edge of the bounds.
*/
- (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate;
/**
* Returns YES if |other| overlaps with this bounds. Two bounds are overlapping if there is at least
* one coordinate point contained by both.
*/
- (BOOL)intersectsBounds:(GMSCoordinateBounds *)other;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,24 @@
//
// GMSDeprecationMacros.h
// Google Maps SDK for iOS
//
// Copyright 2015 Google LLC
//
// Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
// Service: https://cloud.google.com/maps-platform/terms
//
#ifndef IPHONE_MAPS_SDK_BASE_API_GMSDEPRECATIONMACROS_H_
#define IPHONE_MAPS_SDK_BASE_API_GMSDEPRECATIONMACROS_H_
/** Inside Google, this is defined in sdk.bzl. */
#ifndef __GMS_AVAILABLE_BUT_DEPRECATED
#define __GMS_AVAILABLE_BUT_DEPRECATED __deprecated
#endif
/** Inside Google, this is defined in sdk.bzl. */
#ifndef __GMS_AVAILABLE_BUT_DEPRECATED_MSG
#define __GMS_AVAILABLE_BUT_DEPRECATED_MSG(msg) __deprecated_msg(msg)
#endif
#endif

View File

@@ -0,0 +1,3 @@
#import <GoogleMapsBase/GMSCompatabilityMacros.h>
#import <GoogleMapsBase/GMSCoordinateBounds.h>
#import <GoogleMapsBase/GMSDeprecationMacros.h>

View File

@@ -0,0 +1,18 @@
module GoogleMapsBase {
umbrella header "GoogleMapsBase.h"
export *
module * { export * }
link "z"
link framework "CoreFoundation"
link framework "CoreGraphics"
link framework "CoreLocation"
link framework "CoreTelephony"
link framework "CoreText"
link framework "Foundation"
link framework "OSLog"
link framework "QuartzCore"
link framework "Security"
link framework "UIKit"
}

View File

@@ -0,0 +1,18 @@
framework module GoogleMapsBase {
umbrella header "GoogleMapsBase.h"
export *
module * { export * }
link "z"
link framework "CoreFoundation"
link framework "CoreGraphics"
link framework "CoreLocation"
link framework "CoreTelephony"
link framework "CoreText"
link framework "Foundation"
link framework "OSLog"
link framework "QuartzCore"
link framework "Security"
link framework "UIKit"
}