Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from sauvignon1989/develop
Browse files Browse the repository at this point in the history
alibili-1.1.0
  • Loading branch information
bemyae authored Sep 30, 2020
2 parents bff1625 + 2405158 commit 22b8dd0
Show file tree
Hide file tree
Showing 33 changed files with 1,550 additions and 373 deletions.
18 changes: 14 additions & 4 deletions Alibili.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
CA00ACD322D2F0B7005ECFFE /* RootViewNavigator.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA00ACD222D2F0B7005ECFFE /* RootViewNavigator.swift */; };
CA05132422D933BA008B4B48 /* CellDateComposer.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA05132222D933BA008B4B48 /* CellDateComposer.swift */; };
CA05132622D933E8008B4B48 /* CellDataItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA05132522D933E8008B4B48 /* CellDataItem.swift */; };
CA46D4DD250ADF6300DD38CA /* RankingCollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA46D4C7250ADF6300DD38CA /* RankingCollectionViewController.swift */; };
CA46D57F250C5B4E00DD38CA /* OwnerCollectionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA46D57E250C5B4E00DD38CA /* OwnerCollectionViewController.swift */; };
CA4C66E02507A62C0049B522 /* Metal.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA4C66CA2507A62C0049B522 /* Metal.framework */; };
CA4C66E22507A64D0049B522 /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA4C66E12507A64D0049B522 /* CoreServices.framework */; };
CA4C66EC250859290049B522 /* Utilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA4C66EB250859290049B522 /* Utilities.swift */; };
Expand Down Expand Up @@ -261,6 +263,8 @@
CA00ACD222D2F0B7005ECFFE /* RootViewNavigator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RootViewNavigator.swift; sourceTree = "<group>"; };
CA05132222D933BA008B4B48 /* CellDateComposer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CellDateComposer.swift; sourceTree = "<group>"; };
CA05132522D933E8008B4B48 /* CellDataItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CellDataItem.swift; sourceTree = "<group>"; };
CA46D4C7250ADF6300DD38CA /* RankingCollectionViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RankingCollectionViewController.swift; sourceTree = "<group>"; };
CA46D57E250C5B4E00DD38CA /* OwnerCollectionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OwnerCollectionViewController.swift; sourceTree = "<group>"; };
CA4C66CA2507A62C0049B522 /* Metal.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Metal.framework; path = System/Library/Frameworks/Metal.framework; sourceTree = SDKROOT; };
CA4C66E12507A64D0049B522 /* CoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreServices.framework; path = System/Library/Frameworks/CoreServices.framework; sourceTree = SDKROOT; };
CA4C66EB250859290049B522 /* Utilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utilities.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -369,6 +373,8 @@
CA00ACD222D2F0B7005ECFFE /* RootViewNavigator.swift */,
CA73155C22D33E100046A75B /* CollectionViewCell.swift */,
CA73156022D3420D0046A75B /* SubscriptionsCollectionViewController.swift */,
CA46D57E250C5B4E00DD38CA /* OwnerCollectionViewController.swift */,
CA46D4C7250ADF6300DD38CA /* RankingCollectionViewController.swift */,
CA4C67022509ADCC0049B522 /* HistoryCollectionViewController.swift */,
CA4C670C250A4E550049B522 /* VideoRelationCollectionViewController.swift */,
CA705E5622DADA1200615664 /* VideoPlayViewController.swift */,
Expand All @@ -377,8 +383,8 @@
CA8A12A622DB89AB00D344C9 /* Alibili-Bridging-Header.h */,
CA8A12B122DC00FF00D344C9 /* MenuTableViewController.swift */,
CAF4F2ED22E349D000CCE549 /* DanmuData.swift */,
CA4C66EB250859290049B522 /* Utilities.swift */,
CABF08D9250A7BBF00F6F153 /* TabBarViewController.swift */,
CA4C66EB250859290049B522 /* Utilities.swift */,
);
path = Alibili;
sourceTree = "<group>";
Expand Down Expand Up @@ -485,7 +491,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1020;
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1200;
ORGANIZATIONNAME = "Xiaonan Zhang";
TargetAttributes = {
CA00AC5422D1DE82005ECFFE = {
Expand Down Expand Up @@ -732,6 +738,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CA46D57F250C5B4E00DD38CA /* OwnerCollectionViewController.swift in Sources */,
CA05132622D933E8008B4B48 /* CellDataItem.swift in Sources */,
CA00ACC622D25D0B005ECFFE /* CookieManager.swift in Sources */,
CA00AC6B22D1DEAF005ECFFE /* LoginViewController.swift in Sources */,
Expand All @@ -740,6 +747,7 @@
CA4C6707250A14040049B522 /* VideoDetailViewController.swift in Sources */,
CAF4F2EE22E349D000CCE549 /* DanmuData.swift in Sources */,
CA00AC5B22D1DE82005ECFFE /* ProfileViewController.swift in Sources */,
CA46D4DD250ADF6300DD38CA /* RankingCollectionViewController.swift in Sources */,
CA00AC5922D1DE82005ECFFE /* AppDelegate.swift in Sources */,
CA73156122D3420D0046A75B /* SubscriptionsCollectionViewController.swift in Sources */,
CA705E5722DADA1200615664 /* VideoPlayViewController.swift in Sources */,
Expand Down Expand Up @@ -814,6 +822,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -876,6 +885,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -924,7 +934,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.zephyr1989.Alibili;
PRODUCT_BUNDLE_IDENTIFIER = com.zephyr.Alibili;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Alibili/Alibili-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
Expand Down Expand Up @@ -953,7 +963,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.zephyr1989.Alibili;
PRODUCT_BUNDLE_IDENTIFIER = com.zephyr.Alibili;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "Alibili/Alibili-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down
2 changes: 1 addition & 1 deletion Alibili.xcodeproj/xcshareddata/xcschemes/Alibili.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1120"
LastUpgradeVersion = "1200"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
32 changes: 32 additions & 0 deletions Alibili/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import UIKit
import AVFoundation

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand All @@ -16,6 +17,26 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
RootViewNavigator().updateRootViewController()

// let audioSession = AVAudioSession.sharedInstance()
//
// do {
// try audioSession.setCategory(.playback, mode: .default, policy: .default)
//// try audioSession.overrideOutputAudioPort(AVAudioSession.Port.airPlay)
// try audioSession.setActive(true, options: .notifyOthersOnDeactivation)
//
// for outputPort in audioSession.currentRoute.outputs {
//// if outputPort.portType == AVAudioSession.Port.airPlay {
//// return true
//// }
// print(outputPort.portName)
// print(outputPort.portType)
// }
//
// } catch {
// print("fail to set audio session route sharing policy: \(error)")
// }

return true
}

Expand All @@ -35,6 +56,17 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.

// let session = AVAudioSession.sharedInstance()
// do {
// try session.setCategory(.playback, mode: .moviePlayback, policy: .longFormAudio)
// try session.overrideOutputAudioPort(.none)
// try session.setActive(true)
// print("outputs: \(session.currentRoute.outputs)")
//// session.setOutputDataSource(AVAudioSessionDataSourceDescription?)
// } catch {
// print("error: \(error)")
// }
}

func applicationWillTerminate(_ application: UIApplication) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"images" : [
{
"filename" : "Icon.png",
"filename" : "logo1.jpg",
"idiom" : "tv",
"scale" : "1x"
},
{
"filename" : "icon2.png",
"filename" : "logo2.jpg",
"idiom" : "tv",
"scale" : "2x"
}
Expand Down
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"images" : [
{
"filename" : "logo1.jpg",
"idiom" : "tv",
"filename" : "Icon.png",
"scale" : "1x"
},
{
"filename" : "logo2.jpg",
"idiom" : "tv",
"filename" : "icon2.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
Loading

0 comments on commit 22b8dd0

Please sign in to comment.