Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion FirebaseAppDistribution.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ iOS SDK for App Distribution for Firebase.
'FirebaseInstallations/Source/Library/Private/*.h',
'GoogleDataTransport/GDTCORLibrary/Internal/*.h',
]
s.public_header_files = base_dir + 'Public/*.h'
s.public_header_files = base_dir + 'Public/FirebaseAppDistribution/*.h'

s.dependency 'FirebaseCore', '~> 7.0'
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 7.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#import "FirebaseAppDistribution/Sources/FIRAppDistributionUIService.h"
#import "FirebaseAppDistribution/Sources/FIRFADLogger.h"
#import "FirebaseAppDistribution/Sources/Public/FIRAppDistribution.h"
#import "FirebaseAppDistribution/Sources/Public/FirebaseAppDistribution/FIRAppDistribution.h"
#import "FirebaseCore/Sources/Private/FirebaseCoreInternal.h"

#import <AuthenticationServices/AuthenticationServices.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

#import "FirebaseAppDistribution/Sources/FIRAppDistributionUIService.h"
#import "FirebaseAppDistribution/Sources/Public/FIRAppDistribution.h"
#import "FirebaseAppDistribution/Sources/Public/FirebaseAppDistribution/FIRAppDistribution.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "FirebaseAppDistribution/Sources/Public/FIRAppDistributionRelease.h"
#import "FirebaseAppDistribution/Sources/Public/FirebaseAppDistribution/FIRAppDistributionRelease.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
27 changes: 27 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ let package = Package(
name: "FirebaseAuth",
targets: ["FirebaseAuth"]
),
.library(
name: "FirebaseAppDistribution",
targets: ["FirebaseAppDistributionTarget"]
),
.library(
name: "FirebaseCrashlytics",
targets: ["FirebaseCrashlytics"]
Expand Down Expand Up @@ -241,6 +245,27 @@ let package = Package(
checksum: "b0062d581e1bde54a1f6935bde1a49c6718a2a471825e02ab364e2dd8aef69c2"
),

.target(
name: "FirebaseAppDistributionTarget",
dependencies: [.target(name: "FirebaseAppDistribution",
condition: .when(platforms: [.iOS]))],
path: "SwiftPM-PlatformExclude/FirebaseAppDistributionWrap"
),

.target(
name: "FirebaseAppDistribution",
dependencies: ["FirebaseCore",
"FirebaseInstallations",
"GoogleDataTransport",
"GoogleUtilities_AppDelegateSwizzler",
"GoogleUtilities_UserDefaults"],
path: "FirebaseAppDistribution/Sources",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("../../"),
]
),

.target(
name: "FirebaseAuth",
dependencies: ["FirebaseCore",
Expand Down Expand Up @@ -729,6 +754,7 @@ let package = Package(
dependencies: [
"FirebaseAuth",
"FirebaseABTesting",
"FirebaseAppDistribution",
"Firebase",
"FirebaseCrashlytics",
"FirebaseCore",
Expand Down Expand Up @@ -770,6 +796,7 @@ let package = Package(
dependencies: [
"FirebaseAuth",
"FirebaseABTesting",
"FirebaseAppDistribution",
"Firebase",
"FirebaseCrashlytics",
"FirebaseCore",
Expand Down
18 changes: 18 additions & 0 deletions SwiftPM-PlatformExclude/FirebaseAppDistributionWrap/dummy.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#import <TargetConditionals.h>
#if !TARGET_OS_IOS
#warning "Firebase App Distribution only supports the iOS platform"
#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Prevent a missing umbrella header warning.
2 changes: 2 additions & 0 deletions SwiftPMTests/objc-import-test/objc-header.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#import "Firebase.h"
#import "FirebaseABTesting/FirebaseABTesting.h"
#import "FirebaseAppDistribution/FirebaseAppDistribution.h"
#import "FirebaseAuth/FirebaseAuth.h"
#import "FirebaseCore/FirebaseCore.h"
#import "FirebaseCrashlytics/FirebaseCrashlytics.h"
Expand All @@ -29,6 +30,7 @@

#import <Firebase.h>
#import <FirebaseABTesting/FirebaseABTesting.h>
#import <FirebaseAppDistribution/FirebaseAppDistribution.h>
#import <FirebaseAuth/FirebaseAuth.h>
#import <FirebaseCore/FirebaseCore.h>
#import <FirebaseCrashlytics/FirebaseCrashlytics.h>
Expand Down
1 change: 1 addition & 0 deletions SwiftPMTests/objc-import-test/objc-module.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@import FirebaseAuth;
@import FirebaseABTesting;
@import FirebaseAppDistribution;
@import Firebase;
@import FirebaseCrashlytics;
@import FirebaseCore;
Expand Down
1 change: 1 addition & 0 deletions SwiftPMTests/swift-test/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Firebase
import FirebaseCore
import FirebaseAuth
import FirebaseABTesting
import FirebaseAppDistribution
import FirebaseCrashlytics
import FirebaseDynamicLinks
import FirebaseFirestore
Expand Down