-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ADD: SPM Setting - Firebase analytics
- Loading branch information
1 parent
2718705
commit 7b10048
Showing
1,053 changed files
with
64,487 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.DS_Store | ||
/.build | ||
/Packages | ||
/*.xcodeproj | ||
xcuserdata/ | ||
DerivedData/ | ||
.swiftpm/config/registries.json | ||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | ||
.netrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// swift-tools-version: 5.6 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Network", | ||
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "Network", | ||
targets: ["Network"]), | ||
], | ||
dependencies: [ | ||
// Dependencies declare other packages that this package depends on. | ||
// .package(url: /* package url */, from: "1.0.0"), | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package. A target can define a module or a test suite. | ||
// Targets can depend on other targets in this package, and on products in packages this package depends on. | ||
.target( | ||
name: "Network", | ||
dependencies: []), | ||
.testTarget( | ||
name: "NetworkTests", | ||
dependencies: ["Network"]), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Network | ||
|
||
A description of this package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
public struct Network { | ||
public private(set) var text = "Hello, World!" | ||
|
||
public init() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import XCTest | ||
@testable import Network | ||
|
||
final class NetworkTests: XCTestCase { | ||
func testExample() throws { | ||
// This is an example of a functional test case. | ||
// Use XCTAssert and related functions to verify your tests produce the correct | ||
// results. | ||
XCTAssertEqual(Network().text, "Hello, World!") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.DS_Store | ||
/.build | ||
/Packages | ||
/*.xcodeproj | ||
xcuserdata/ | ||
DerivedData/ | ||
.swiftpm/config/registries.json | ||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata | ||
.netrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "alamofire", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/Alamofire/Alamofire.git", | ||
"state" : { | ||
"revision" : "354dda32d89fc8cd4f5c46487f64957d355f53d8", | ||
"version" : "5.6.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "rxswift", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/ReactiveX/RxSwift.git", | ||
"state" : { | ||
"revision" : "b4307ba0b6425c0ba4178e138799946c3da594f8", | ||
"version" : "6.5.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// swift-tools-version: 5.6 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "ThirdPartyLibraryManager", | ||
platforms: [ | ||
.iOS(.v15), | ||
], | ||
products: [ | ||
.library( | ||
name: "ThirdPartyLibraryManager", | ||
targets: ["ThirdPartyLibraryManager"]), | ||
.library(name: "Analytics", targets: ["Analytics"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/Alamofire/Alamofire.git", exact: "5.6.1"), | ||
.package(url: "https://github.com/ReactiveX/RxSwift.git", exact: "6.5.0"), | ||
], | ||
targets: [ | ||
.target( | ||
name: "ThirdPartyLibraryManager", | ||
dependencies: [ | ||
"Alamofire", | ||
.product(name: "RxSwift", package: "Rxswift"), | ||
.product(name: "RxCocoa", package: "Rxswift"), | ||
] | ||
), | ||
.binaryTarget(name: "FBLPromises", path: "./Vender/FirebaseAnalytics/FBLPromises.xcframework"), | ||
.binaryTarget(name: "FirebaseAnalytics", path: "./Vender/FirebaseAnalytics/FirebaseAnalytics.xcframework"), | ||
.binaryTarget(name: "FirebaseAnalyticsSwift", path: "./Vender/FirebaseAnalytics/FirebaseAnalyticsSwift.xcframework"), | ||
.binaryTarget(name: "FirebaseCore", path: "./Vender/FirebaseAnalytics/FirebaseCore.xcframework"), | ||
.binaryTarget(name: "FirebaseCoreDiagnostics", path: "./Vender/FirebaseAnalytics/FirebaseCoreDiagnostics.xcframework"), | ||
.binaryTarget(name: "FirebaseCoreInternal", path: "./Vender/FirebaseAnalytics/FirebaseCoreInternal.xcframework"), | ||
.binaryTarget(name: "FirebaseInstallations", path: "./Vender/FirebaseAnalytics/FirebaseInstallations.xcframework"), | ||
.binaryTarget(name: "GoogleAppMeasurement", path: "./Vender/FirebaseAnalytics/GoogleAppMeasurement.xcframework"), | ||
.binaryTarget(name: "GoogleAppMeasurementIdentitySupport", path: "./Vender/FirebaseAnalytics/GoogleAppMeasurementIdentitySupport.xcframework"), | ||
.binaryTarget(name: "GoogleDataTransport", path: "./Vender/FirebaseAnalytics/GoogleDataTransport.xcframework"), | ||
.binaryTarget(name: "GoogleUtilities", path: "./Vender/FirebaseAnalytics/GoogleUtilities.xcframework"), | ||
.binaryTarget(name: "nanopb", path: "./Vender/FirebaseAnalytics/nanopb.xcframework"), | ||
|
||
.target( | ||
name: "Analytics", | ||
dependencies: [ | ||
.target(name: "FBLPromises"), | ||
.target(name: "FirebaseAnalytics"), | ||
.target(name: "FirebaseAnalyticsSwift"), | ||
.target(name: "FirebaseCore"), | ||
.target(name: "FirebaseCoreDiagnostics"), | ||
.target(name: "FirebaseCoreInternal"), | ||
.target(name: "FirebaseInstallations"), | ||
.target(name: "GoogleAppMeasurement"), | ||
.target(name: "GoogleAppMeasurementIdentitySupport"), | ||
.target(name: "GoogleDataTransport"), | ||
.target(name: "GoogleUtilities"), | ||
.target(name: "nanopb") | ||
], | ||
resources: [ | ||
.process("Resource") | ||
] | ||
) | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ThirdPartyLibraryManager | ||
|
||
A description of this package. |
28 changes: 28 additions & 0 deletions
28
ThirdPartyLibraryManager/Sources/Analytics/AppLogEvent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by 김호세 on 2022/08/28. | ||
// | ||
|
||
import Foundation | ||
|
||
public enum AppLogEvent: String { | ||
case appStart | ||
case didTapButton | ||
} | ||
|
||
extension AppLogEvent { | ||
public var rawValue: String { | ||
switch self { | ||
case .appStart: return "AppStart" | ||
case .didTapButton: return "didTapButton" | ||
} | ||
} | ||
} | ||
|
||
public enum AppLogEventAttribute: String { | ||
case itemID = "itemID" | ||
case itemName = "itemName" | ||
case contentType = "contentType" | ||
} |
11 changes: 11 additions & 0 deletions
11
ThirdPartyLibraryManager/Sources/Analytics/AppLogService.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// | ||
// File.swift | ||
// | ||
// | ||
// Created by 김호세 on 2022/08/28. | ||
// | ||
|
||
import Foundation | ||
import FirebaseAnalytics | ||
|
||
public class AppLogService { } |
Oops, something went wrong.