Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wutian committed Mar 18, 2017
0 parents commit 7c5bfbf
Show file tree
Hide file tree
Showing 25 changed files with 1,216 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.ipa filter=lfs diff=lfs merge=lfs -text
.framework filter=lfs diff=lfs merge=lfs -text
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# IPAPatch

Temp/

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
Empty file added Assets/.gitkeep
Empty file.
Empty file added Assets/Frameworks/.gitkeep
Empty file.
19 changes: 19 additions & 0 deletions Assets/Frameworks/RevealServer.framework/Headers/RevealServer.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// RevealServer.h
// RevealServer
//
// Created by Tony Arnold on 25/11/2015.
// Copyright © 2015 Itty Bitty Apps, Pty Ltd. All rights reserved.
//

#import <UIKit/UIKit.h>

//! Project version number for RevealServer.
FOUNDATION_EXPORT double RevealServerVersionNumber;

//! Project version string for RevealServer.
FOUNDATION_EXPORT const unsigned char RevealServerVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <RevealServer/PublicHeader.h>


52 changes: 52 additions & 0 deletions Assets/Frameworks/RevealServer.framework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?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>BuildMachineOSBuild</key>
<string>16B2555</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>RevealServer</string>
<key>CFBundleIdentifier</key>
<string>com.ittybittyapps.RevealServer</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>RevealServer</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>7</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>
<key>CFBundleVersion</key>
<string>9558</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>14C89</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>DTPlatformVersion</key>
<string>10.2</string>
<key>DTSDKBuild</key>
<string>14C89</string>
<key>DTSDKName</key>
<string>iphoneos10.2</string>
<key>DTXcode</key>
<string>0821</string>
<key>DTXcodeBuild</key>
<string>8C1002</string>
<key>MinimumOSVersion</key>
<string>8.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>1</integer>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module RevealServer {
umbrella header "RevealServer.h"

export *
module * { export * }
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset

# Ensure that we have a valid OTHER_LDFLAGS environment variable
OTHER_LDFLAGS=${OTHER_LDFLAGS:=""}

# Ensure that we have a valid REVEAL_SERVER_FILENAME environment variable
REVEAL_SERVER_FILENAME=${REVEAL_SERVER_FILENAME:="RevealServer.framework"}

# Ensure that we have a valid REVEAL_SERVER_PATH environment variable
REVEAL_SERVER_PATH=${REVEAL_SERVER_PATH:="${SRCROOT}/${REVEAL_SERVER_FILENAME}"}

# The path to copy the framework to
app_frameworks_dir="${CODESIGNING_FOLDER_PATH}/Frameworks"

copy_library() {
mkdir -p "$app_frameworks_dir"
cp -vRf "$REVEAL_SERVER_PATH" "${app_frameworks_dir}/"
}

codesign_library() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" ]; then
codesign -fs "${EXPANDED_CODE_SIGN_IDENTITY}" "${app_frameworks_dir}/${REVEAL_SERVER_FILENAME}"
fi
}

main() {
if [[ $OTHER_LDFLAGS =~ "RevealServer" ]]; then
if [ -e "$REVEAL_SERVER_PATH" ]; then
copy_library
codesign_library
echo "${REVEAL_SERVER_FILENAME} is included in this build, and has been copied to $CODESIGNING_FOLDER_PATH"
else
echo "${REVEAL_SERVER_FILENAME} is not included in this build, as it could not be found at $REVEAL_SERVER_PATH"
fi
else
echo "${REVEAL_SERVER_FILENAME} is not included in this build because RevealServer was not present in the OTHER_LDFLAGS environment variable."
fi
}

main
166 changes: 166 additions & 0 deletions Assets/Frameworks/RevealServer.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
<?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>files</key>
<dict>
<key>Headers/RevealServer.h</key>
<data>
e2S6Vuf8iJXurblvYWL8e3IMO7E=
</data>
<key>Info.plist</key>
<data>
mRYRWnn89cvA0oOFg/OtVl0TKqA=
</data>
<key>Modules/module.modulemap</key>
<data>
EuDEeG1dcC1sd+hIW2SkUAImUg8=
</data>
<key>Scripts/copy_and_codesign_revealserver.sh</key>
<data>
yB2zXTggmRD0rra2Hbpxn2zfCRo=
</data>
</dict>
<key>files2</key>
<dict>
<key>Headers/RevealServer.h</key>
<dict>
<key>hash</key>
<data>
e2S6Vuf8iJXurblvYWL8e3IMO7E=
</data>
<key>hash2</key>
<data>
i4zuiS2fsgwsoicYEzHuBx32JYfKW38gkopt/7FdINY=
</data>
</dict>
<key>Modules/module.modulemap</key>
<dict>
<key>hash</key>
<data>
EuDEeG1dcC1sd+hIW2SkUAImUg8=
</data>
<key>hash2</key>
<data>
tstqiJpIPr4iEd3MDHClLuTB/ciSC/zNlke1AjfSVuU=
</data>
</dict>
<key>Scripts/copy_and_codesign_revealserver.sh</key>
<dict>
<key>hash</key>
<data>
yB2zXTggmRD0rra2Hbpxn2zfCRo=
</data>
<key>hash2</key>
<data>
SL0x5cGSOyS1RcojHFEmFX5IDfon/vO37cFsjSIX7LA=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
20 changes: 20 additions & 0 deletions IPAPatch-DummyApp/AppDelegate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// AppDelegate.h
// IPAPatch-DummyApp
//
// Created by wutian on 2017/3/17.
// Copyright © 2017年 Weibo. All rights reserved.
//

// ⚠️ Note: This is placeholder target for installing the ipa file
// DO NOT MODIFY.

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;


@end

20 changes: 20 additions & 0 deletions IPAPatch-DummyApp/AppDelegate.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// AppDelegate.m
// IPAPatch-DummyApp
//
// Created by wutian on 2017/3/17.
// Copyright © 2017年 Weibo. All rights reserved.
//

// ⚠️ Note: This is placeholder target for installing the ipa file
// DO NOT MODIFY.

#import "AppDelegate.h"

@interface AppDelegate ()

@end

@implementation AppDelegate

@end
Loading

0 comments on commit 7c5bfbf

Please sign in to comment.