Skip to content

Commit

Permalink
New Google Swift style guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Usbergo committed Jul 26, 2018
1 parent 3ae9157 commit e63342c
Show file tree
Hide file tree
Showing 19 changed files with 647 additions and 725 deletions.
475 changes: 300 additions & 175 deletions Buffer.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
82 changes: 0 additions & 82 deletions Buffer.xcodeproj/xcshareddata/xcschemes/Buffer.xcscheme

This file was deleted.

Binary file added bin/dist.zip
Binary file not shown.
Binary file removed docs/logo.png
Binary file not shown.
31 changes: 31 additions & 0 deletions project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Buffer
options:
deploymentTarget:
iOS: 10.0
macOS: 10.12
usesTabs: false
indentWidth: 2
targets:
Buffer:
platform: [iOS, macOS]
type: framework
sources:
- src
settings:
base:
INFOPLIST_FILE: src/Info.plist
PRODUCT_BUNDLE_IDENTIFIER: io.alexdrone.buffer
PLATFORM: platform $platform
SWIFT_VERSION: 4.2
SWIFT_OPTIMIZATION_LEVEL: -Owholemodule
PLATFORM: platform $platform
GCC_GENERATE_DEBUGGING_SYMBOLS: YES
GCC_DEBUGGING_SYMBOLS: full,
DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
ONLY_ACTIVE_ARCH: NO
configFiles:
Debug: configs/Debug.xcconfig
Release: configs/Release.xcconfig
postbuildScripts:
- name: Dist
- script: PRODUCT="${BUILT_PRODUCTS_DIR}/${TARGET_NAME}"; cp -R "${PRODUCT}.framework" ./bin; cp -R "${PRODUCT}.framework.dSYM" ./bin; cd ./bin; zip -r dist.zip Buffer.framework.dSYM Buffer.framework;
53 changes: 5 additions & 48 deletions samples/BufferDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,15 @@
160E25921CF45CFE00A5F828 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 160E25911CF45CFE00A5F828 /* Assets.xcassets */; };
160E25951CF45CFE00A5F828 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 160E25931CF45CFE00A5F828 /* LaunchScreen.storyboard */; };
160E25A21CF4604600A5F828 /* Lorem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 160E25A11CF4604600A5F828 /* Lorem.swift */; };
16A4DF001F4F093F0082BF5A /* Buffer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 16A4DEFF1F4F092E0082BF5A /* Buffer.framework */; };
16A4DF011F4F093F0082BF5A /* Buffer.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 16A4DEFF1F4F092E0082BF5A /* Buffer.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
16A4DEFE1F4F092E0082BF5A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 16A4DEF51F4F09260082BF5A /* Buffer.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = 160E255F1CF44C3700A5F828;
remoteInfo = Buffer;
};
16A4DF021F4F093F0082BF5A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 16A4DEF51F4F09260082BF5A /* Buffer.xcodeproj */;
proxyType = 1;
remoteGlobalIDString = 160E255E1CF44C3700A5F828;
remoteInfo = Buffer;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
160E259F1CF45D5200A5F828 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
16A4DF011F4F093F0082BF5A /* Buffer.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -57,15 +37,14 @@
160E25941CF45CFE00A5F828 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
160E25961CF45CFE00A5F828 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
160E25A11CF4604600A5F828 /* Lorem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Lorem.swift; sourceTree = "<group>"; };
16A4DEF51F4F09260082BF5A /* Buffer.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Buffer.xcodeproj; path = ../Buffer.xcodeproj; sourceTree = "<group>"; };
16D3214D210A75F00058E86D /* BufferDemo.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = BufferDemo.xcodeproj; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
160E25841CF45CFE00A5F828 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
16A4DF001F4F093F0082BF5A /* Buffer.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -75,7 +54,7 @@
160E257E1CF45CFE00A5F828 = {
isa = PBXGroup;
children = (
16A4DEF51F4F09260082BF5A /* Buffer.xcodeproj */,
16D3214D210A75F00058E86D /* BufferDemo.xcodeproj */,
160E25891CF45CFE00A5F828 /* BufferDemo */,
160E25881CF45CFE00A5F828 /* Products */,
);
Expand Down Expand Up @@ -103,11 +82,8 @@
path = BufferDemo;
sourceTree = "<group>";
};
16A4DEFB1F4F092E0082BF5A /* Products */ = {
16D3214E210A75F00058E86D /* Products */ = {
isa = PBXGroup;
children = (
16A4DEFF1F4F092E0082BF5A /* Buffer.framework */,
);
name = Products;
sourceTree = "<group>";
};
Expand All @@ -126,7 +102,6 @@
buildRules = (
);
dependencies = (
16A4DF031F4F093F0082BF5A /* PBXTargetDependency */,
);
name = BufferDemo;
productName = BufferDemo;
Expand Down Expand Up @@ -162,8 +137,8 @@
projectDirPath = "";
projectReferences = (
{
ProductGroup = 16A4DEFB1F4F092E0082BF5A /* Products */;
ProjectRef = 16A4DEF51F4F09260082BF5A /* Buffer.xcodeproj */;
ProductGroup = 16D3214E210A75F00058E86D /* Products */;
ProjectRef = 16D3214D210A75F00058E86D /* BufferDemo.xcodeproj */;
},
);
projectRoot = "";
Expand All @@ -173,16 +148,6 @@
};
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
16A4DEFF1F4F092E0082BF5A /* Buffer.framework */ = {
isa = PBXReferenceProxy;
fileType = wrapper.framework;
path = Buffer.framework;
remoteRef = 16A4DEFE1F4F092E0082BF5A /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */

/* Begin PBXResourcesBuildPhase section */
160E25851CF45CFE00A5F828 /* Resources */ = {
isa = PBXResourcesBuildPhase;
Expand All @@ -209,14 +174,6 @@
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
16A4DF031F4F093F0082BF5A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = Buffer;
targetProxy = 16A4DF021F4F093F0082BF5A /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
160E258E1CF45CFE00A5F828 /* Main.storyboard */ = {
isa = PBXVariantGroup;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
9 changes: 6 additions & 3 deletions samples/BufferDemo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

/// The key window.
var window: UIWindow?
func application(_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
/// Tells the delegate that the launch process is almost done and the app is almost ready to run.
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
) -> Bool {
// Override point for customization after application launch.
return true
}
Expand Down
Loading

0 comments on commit e63342c

Please sign in to comment.