Skip to content

Commit

Permalink
Merge pull request #26 from vsanthanam/next
Browse files Browse the repository at this point in the history
CocoaPods support!
  • Loading branch information
vsanthanam authored Jun 11, 2018
2 parents 3b16fc2 + cb97794 commit 7cd93a5
Show file tree
Hide file tree
Showing 83 changed files with 37 additions and 3 deletions.
Empty file modified Documentation/Classes.html
100644 → 100755
Empty file.
Empty file modified Documentation/Classes/VSAlertAction.html
100644 → 100755
Empty file.
Empty file modified Documentation/Classes/VSAlertController.html
100644 → 100755
Empty file.
Empty file modified Documentation/Constants.html
100644 → 100755
Empty file.
Empty file modified Documentation/Enums.html
100644 → 100755
Empty file.
Empty file modified Documentation/Enums/VSAlertActionStyle.html
100644 → 100755
Empty file.
Empty file modified Documentation/Enums/VSAlertControllerAnimationStyle.html
100644 → 100755
Empty file.
Empty file modified Documentation/Enums/VSAlertControllerStyle.html
100644 → 100755
Empty file.
Empty file modified Documentation/Protocols.html
100644 → 100755
Empty file.
Empty file modified Documentation/Protocols/VSAlertControllerDelegate.html
100644 → 100755
Empty file.
Empty file modified Documentation/badge.svg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Documentation/css/highlight.css
100644 → 100755
Empty file.
Empty file modified Documentation/css/jazzy.css
100644 → 100755
Empty file.
Empty file modified Documentation/docsets/VSAlert.docset/Contents/Info.plist
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified Documentation/docsets/VSAlert.tgz
100644 → 100755
Empty file.
Empty file modified Documentation/index.html
100644 → 100755
Empty file.
Empty file modified Documentation/search.json
100644 → 100755
Empty file.
Empty file modified Documentation/undocumented.json
100644 → 100755
Empty file.
Empty file modified Image-Template/Template.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Image-Template/Template@2x.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Image-Template/Template@3x.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified Image-Template/VSAlertController-Image-Template.sketch
100644 → 100755
Empty file.
Empty file modified JazzyTheme/assets/css/highlight.css.scss
100644 → 100755
Empty file.
Empty file modified JazzyTheme/assets/css/jazzy.css.scss
100644 → 100755
Empty file.
Empty file modified JazzyTheme/templates/doc.mustache
100644 → 100755
Empty file.
Empty file modified JazzyTheme/templates/footer.mustache
100644 → 100755
Empty file.
Empty file modified JazzyTheme/templates/header.mustache
100644 → 100755
Empty file.
Empty file modified JazzyTheme/templates/nav.mustache
100644 → 100755
Empty file.
Empty file modified JazzyTheme/templates/parameter.mustache
100644 → 100755
Empty file.
Empty file modified JazzyTheme/templates/task.mustache
100644 → 100755
Empty file.
Empty file modified JazzyTheme/templates/tasks.mustache
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified Release/VSAlert.framework/Modules/module.modulemap
100644 → 100755
Empty file.
Empty file modified Release/VSAlert.framework/Versions/A/Headers/VSAlert.h
100644 → 100755
Empty file.
Empty file modified Release/VSAlert.framework/Versions/A/Headers/VSAlertAction.h
100644 → 100755
Empty file.
Empty file.
Binary file modified Release/VSAlert.framework/Versions/A/VSAlert
Binary file not shown.
Empty file modified VSAlert-Example/AlertExample.h
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/AlertExample.m
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/AlertExampleSettingsViewController.h
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/AlertExampleSettingsViewController.m
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/AlertExampleViewController.h
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/AlertExampleViewController.m
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/AppDelegate.h
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/AppDelegate.m
100644 → 100755
Empty file.
Empty file.
Empty file modified VSAlert-Example/Assets.xcassets/Contents.json
100644 → 100755
Empty file.
Empty file.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified VSAlert-Example/Info.plist
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/LaunchScreen.storyboard
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/Main.storyboard
100644 → 100755
Empty file.
Empty file modified VSAlert-Example/main.m
100644 → 100755
Empty file.
22 changes: 22 additions & 0 deletions VSAlert.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#
# Be sure to run `pod lib lint VSAlert.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
s.name = 'VSAlert'
s.version = '1.2.3'
s.summary = "An drop-in replacement for UIAlertController with more power and better looks."
s.description = "An drop-in replacement for UIAlertController that looks a hell of a lot better, built in Objective-C. Based on Codedio's aweomse Swift library, PMAlertController."
s.homepage = 'https://github.com/vsanthanam/VSAlert'
s.license = { :type => 'Copyright', :text => 'MIT' }
s.author = { 'Varun Santhanam' => 'talkto@vsanthanam.com' }
s.source = { :git => 'https://github.com/vsanthanam/VSAlert.git', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
s.source_files = 'VSAlert/Src/*.{h,m}'
s.public_header_files = 'VSAlert/Src/*.h'
s.module_map = 'VSAlert/Supporting/module.modulemap'
end
10 changes: 7 additions & 3 deletions VSAlert.xcodeproj/project.pbxproj
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@
07FF9E141F8FEF29002966A3 /* flag.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = flag.png; sourceTree = "<group>"; };
07FF9E151F8FEF3D002966A3 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = LaunchScreen.storyboard; sourceTree = "<group>"; };
07FF9E161F8FEF3E002966A3 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
110BD2F720CF263C009EA520 /* VSAlert.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = VSAlert.podspec; sourceTree = "<group>"; };
110BD2F820CF27E1009EA520 /* .gitignore */ = {isa = PBXFileReference; lastKnownFileType = text; path = .gitignore; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -159,15 +161,15 @@
0710F9C31F8B1E1000C6D084 /* VSAlertController.h */,
0710F9C51F8B1E1000C6D084 /* VSAlertController.m */,
);
name = Src;
path = Src;
sourceTree = "<group>";
};
0710F9CC1F8B1E5B00C6D084 /* Supporting */ = {
isa = PBXGroup;
children = (
0710F9CE1F8B1EA300C6D084 /* module.modulemap */,
);
name = Supporting;
path = Supporting;
sourceTree = "<group>";
};
0710F9D11F8BCDB700C6D084 /* Frameworks */ = {
Expand All @@ -192,7 +194,9 @@
07F00ED81F8A96D9006FAC96 = {
isa = PBXGroup;
children = (
110BD2F820CF27E1009EA520 /* .gitignore */,
0710F9AA1F8B0A0600C6D084 /* LICENSE */,
110BD2F720CF263C009EA520 /* VSAlert.podspec */,
0710F9A91F8B09FB00C6D084 /* README.md */,
07F00EFA1F8A96FB006FAC96 /* VSAlert */,
07FF9DF11F8FEE85002966A3 /* VSAlert-Example */,
Expand Down Expand Up @@ -459,7 +463,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "set -e\n# If we're already inside this script then die\nif [ -n \"$MULTIPLATFORM_BUILD_IN_PROGRESS\" ]; then\nexit 0\nfi\nexport MULTIPLATFORM_BUILD_IN_PROGRESS=1\nFRAMEWORK_NAME=\"VSAlert\"\nINPUT_STATIC_LIB=\"lib${FRAMEWORK_NAME}.a\"\nFRAMEWORK_LOCATION=\"${BUILT_PRODUCTS_DIR}/${FRAMEWORK_NAME}.framework\"\nfunction build_static_library {\n # Will rebuild the static library as specified\n # build_static_library sdk\n xcrun xcodebuild -project \"${PROJECT_FILE_PATH}\" \\\n -target \"${TARGET_NAME}\" \\\n -configuration \"${CONFIGURATION}\" \\\n -sdk \"${1}\" \\\n ONLY_ACTIVE_ARCH=NO \\\n BUILD_DIR=\"${BUILD_DIR}\" \\\n OBJROOT=\"${OBJROOT}\" \\\n BUILD_ROOT=\"${BUILD_ROOT}\" \\\n SYMROOT=\"${SYMROOT}\" $ACTION\n}\nfunction make_fat_library {\n # Will smash 2 static libs together\n # make_fat_library in1 in2 out\n xcrun lipo -create \"${1}\" \"${2}\" -output \"${3}\"\n}\n# 1 - Extract the platform (iphoneos/iphonesimulator) from the SDK name\nif [[ \"$SDK_NAME\" =~ ([A-Za-z]+) ]]; then\nSDK_PLATFORM=${BASH_REMATCH[1]}\nelse\necho \"Could not find platform name from SDK_NAME: $SDK_NAME\"\nexit 1\nfi\n# 2 - Extract the version from the SDK\nif [[ \"$SDK_NAME\" =~ ([0-9]+.*$) ]]; then\nSDK_VERSION=${BASH_REMATCH[1]}\nelse\necho \"Could not find sdk version from SDK_NAME: $SDK_NAME\"\nexit 1\nfi\n# 3 - Determine the other platform\nif [ \"$SDK_PLATFORM\" == \"iphoneos\" ]; then\nOTHER_PLATFORM=iphonesimulator\nelse\nOTHER_PLATFORM=iphoneos\nfi\n# 4 - Find the build directory\nif [[ \"$BUILT_PRODUCTS_DIR\" =~ (.*)$SDK_PLATFORM$ ]]; then\nOTHER_BUILT_PRODUCTS_DIR=\"${BASH_REMATCH[1]}${OTHER_PLATFORM}\"\nelse\necho \"Could not find other platform build directory.\"\nexit 1\nfi\n# Build the other platform.\nbuild_static_library \"${OTHER_PLATFORM}${SDK_VERSION}\"\n# If we're currently building for iphonesimulator, then need to rebuild\n# to ensure that we get both i386 and x86_64\nif [ \"$SDK_PLATFORM\" == \"iphonesimulator\" ]; then\nbuild_static_library \"${SDK_NAME}\"\nfi\n# Join the 2 static libs into 1 and push into the .framework\nmake_fat_library \"${BUILT_PRODUCTS_DIR}/${INPUT_STATIC_LIB}\" \\\n\"${OTHER_BUILT_PRODUCTS_DIR}/${INPUT_STATIC_LIB}\" \\\n\"${FRAMEWORK_LOCATION}/Versions/A/${FRAMEWORK_NAME}\"\n# Ensure that the framework is present in both platform's build directories\ncp -a \"${FRAMEWORK_LOCATION}/Versions/A/${FRAMEWORK_NAME}\" \\\n\"${OTHER_BUILT_PRODUCTS_DIR}/${FRAMEWORK_NAME}.framework/Versions/A/${FRAMEWORK_NAME}\"\n# Copy the framework to the user's desktop\nditto \"${FRAMEWORK_LOCATION}\" \"${PROJECT_DIR}/Release/${FRAMEWORK_NAME}.framework\"\nditto \"${PROJECT_DIR}/${FRAMEWORK_NAME}/module.modulemap\" \"${PROJECT_DIR}/Release/${FRAMEWORK_NAME}.framework/Modules\"";
shellScript = "set -e\n# If we're already inside this script then die\nif [ -n \"$MULTIPLATFORM_BUILD_IN_PROGRESS\" ]; then\nexit 0\nfi\nexport MULTIPLATFORM_BUILD_IN_PROGRESS=1\nFRAMEWORK_NAME=\"VSAlert\"\nINPUT_STATIC_LIB=\"lib${FRAMEWORK_NAME}.a\"\nFRAMEWORK_LOCATION=\"${BUILT_PRODUCTS_DIR}/${FRAMEWORK_NAME}.framework\"\nfunction build_static_library {\n # Will rebuild the static library as specified\n # build_static_library sdk\n xcrun xcodebuild -project \"${PROJECT_FILE_PATH}\" \\\n -target \"${TARGET_NAME}\" \\\n -configuration \"${CONFIGURATION}\" \\\n -sdk \"${1}\" \\\n ONLY_ACTIVE_ARCH=NO \\\n BUILD_DIR=\"${BUILD_DIR}\" \\\n OBJROOT=\"${OBJROOT}\" \\\n BUILD_ROOT=\"${BUILD_ROOT}\" \\\n SYMROOT=\"${SYMROOT}\" $ACTION\n}\nfunction make_fat_library {\n # Will smash 2 static libs together\n # make_fat_library in1 in2 out\n xcrun lipo -create \"${1}\" \"${2}\" -output \"${3}\"\n}\n# 1 - Extract the platform (iphoneos/iphonesimulator) from the SDK name\nif [[ \"$SDK_NAME\" =~ ([A-Za-z]+) ]]; then\nSDK_PLATFORM=${BASH_REMATCH[1]}\nelse\necho \"Could not find platform name from SDK_NAME: $SDK_NAME\"\nexit 1\nfi\n# 2 - Extract the version from the SDK\nif [[ \"$SDK_NAME\" =~ ([0-9]+.*$) ]]; then\nSDK_VERSION=${BASH_REMATCH[1]}\nelse\necho \"Could not find sdk version from SDK_NAME: $SDK_NAME\"\nexit 1\nfi\n# 3 - Determine the other platform\nif [ \"$SDK_PLATFORM\" == \"iphoneos\" ]; then\nOTHER_PLATFORM=iphonesimulator\nelse\nOTHER_PLATFORM=iphoneos\nfi\n# 4 - Find the build directory\nif [[ \"$BUILT_PRODUCTS_DIR\" =~ (.*)$SDK_PLATFORM$ ]]; then\nOTHER_BUILT_PRODUCTS_DIR=\"${BASH_REMATCH[1]}${OTHER_PLATFORM}\"\nelse\necho \"Could not find other platform build directory.\"\nexit 1\nfi\n# Build the other platform.\nbuild_static_library \"${OTHER_PLATFORM}${SDK_VERSION}\"\n# If we're currently building for iphonesimulator, then need to rebuild\n# to ensure that we get both i386 and x86_64\nif [ \"$SDK_PLATFORM\" == \"iphonesimulator\" ]; then\nbuild_static_library \"${SDK_NAME}\"\nfi\n# Join the 2 static libs into 1 and push into the .framework\nmake_fat_library \"${BUILT_PRODUCTS_DIR}/${INPUT_STATIC_LIB}\" \\\n\"${OTHER_BUILT_PRODUCTS_DIR}/${INPUT_STATIC_LIB}\" \\\n\"${FRAMEWORK_LOCATION}/Versions/A/${FRAMEWORK_NAME}\"\n# Ensure that the framework is present in both platform's build directories\ncp -a \"${FRAMEWORK_LOCATION}/Versions/A/${FRAMEWORK_NAME}\" \\\n\"${OTHER_BUILT_PRODUCTS_DIR}/${FRAMEWORK_NAME}.framework/Versions/A/${FRAMEWORK_NAME}\"\n# Copy the framework to the user's desktop\nditto \"${FRAMEWORK_LOCATION}\" \"${PROJECT_DIR}/Release/${FRAMEWORK_NAME}.framework\"\nditto \"${PROJECT_DIR}/${FRAMEWORK_NAME}/Supporting/module.modulemap\" \"${PROJECT_DIR}/Release/${FRAMEWORK_NAME}.framework/Modules\"";
};
07FA6E80203F3B63005AC1A6 /* Build Documentation w/ Jazzy */ = {
isa = PBXShellScriptBuildPhase;
Expand Down
Empty file modified VSAlert.xcodeproj/project.xcworkspace/contents.xcworkspacedata
100644 → 100755
Empty file.
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>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file modified VSAlertTests/Info.plist
100644 → 100755
Empty file.
Empty file modified VSAlertTests/VSAlertTests.m
100644 → 100755
Empty file.

0 comments on commit 7cd93a5

Please sign in to comment.