cocoapods-app_group 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Example/.cocoapods_appgroup +1 -0
  7. data/Example/Example.xcodeproj/project.pbxproj +524 -0
  8. data/Example/Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  9. data/Example/Example.xcodeproj/project.xcworkspace/xcuserdata/mzp.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  10. data/Example/Example.xcodeproj/xcuserdata/mzp.xcuserdatad/xcschemes/Example.xcscheme +91 -0
  11. data/Example/Example.xcodeproj/xcuserdata/mzp.xcuserdatad/xcschemes/xcschememanagement.plist +32 -0
  12. data/Example/Example.xcworkspace/contents.xcworkspacedata +10 -0
  13. data/Example/Example/AppDelegate.swift +46 -0
  14. data/Example/Example/Assets.xcassets/AppIcon.appiconset/Contents.json +38 -0
  15. data/Example/Example/Base.lproj/LaunchScreen.storyboard +27 -0
  16. data/Example/Example/Base.lproj/Main.storyboard +25 -0
  17. data/Example/Example/Info.plist +40 -0
  18. data/Example/Example/ViewController.swift +28 -0
  19. data/Example/Podfile +6 -0
  20. data/Example/Podfile.lock +14 -0
  21. data/Example/Pods/CocoaPodsAppGroup/AppGroup.h +7 -0
  22. data/Example/Pods/CocoaPodsAppGroup/AppGroup.m +23 -0
  23. data/Example/Pods/CocoaPodsAppGroup/AppGroup.podspec.json +24 -0
  24. data/Example/Pods/Headers/Private/AppGroup/AppGroup.h +7 -0
  25. data/Example/Pods/Local Podspecs/AppGroup.podspec.json +24 -0
  26. data/Example/Pods/Manifest.lock +14 -0
  27. data/Example/Pods/Pods.xcodeproj/project.pbxproj +505 -0
  28. data/Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/AppGroup.xcscheme +62 -0
  29. data/Example/Pods/Target Support Files/AppGroup/AppGroup-Private.xcconfig +6 -0
  30. data/Example/Pods/Target Support Files/AppGroup/AppGroup-dummy.m +5 -0
  31. data/Example/Pods/Target Support Files/AppGroup/AppGroup-prefix.pch +4 -0
  32. data/Example/Pods/Target Support Files/AppGroup/AppGroup-umbrella.h +7 -0
  33. data/Example/Pods/Target Support Files/AppGroup/AppGroup.modulemap +6 -0
  34. data/Example/Pods/Target Support Files/AppGroup/AppGroup.xcconfig +1 -0
  35. data/Example/Pods/Target Support Files/AppGroup/Info.plist +26 -0
  36. data/Example/Pods/Target Support Files/Pods/Info.plist +26 -0
  37. data/Example/Pods/Target Support Files/Pods/Pods-acknowledgements.markdown +7 -0
  38. data/Example/Pods/Target Support Files/Pods/Pods-acknowledgements.plist +37 -0
  39. data/Example/Pods/Target Support Files/Pods/Pods-dummy.m +5 -0
  40. data/Example/Pods/Target Support Files/Pods/Pods-frameworks.sh +59 -0
  41. data/Example/Pods/Target Support Files/Pods/Pods-resources.sh +95 -0
  42. data/Example/Pods/Target Support Files/Pods/Pods-umbrella.h +6 -0
  43. data/Example/Pods/Target Support Files/Pods/Pods.debug.xcconfig +7 -0
  44. data/Example/Pods/Target Support Files/Pods/Pods.modulemap +6 -0
  45. data/Example/Pods/Target Support Files/Pods/Pods.release.xcconfig +7 -0
  46. data/Example/ReadFromAppGroup/AppDelegate.swift +46 -0
  47. data/Example/ReadFromAppGroup/Assets.xcassets/AppIcon.appiconset/Contents.json +38 -0
  48. data/Example/ReadFromAppGroup/Base.lproj/LaunchScreen.storyboard +27 -0
  49. data/Example/ReadFromAppGroup/Base.lproj/Main.storyboard +25 -0
  50. data/Example/ReadFromAppGroup/Info.plist +40 -0
  51. data/Example/ReadFromAppGroup/ReadFromAppGroup.entitlements +10 -0
  52. data/Example/ReadFromAppGroup/ViewController.swift +26 -0
  53. data/Example/WriteToAppGroup.entitlements +10 -0
  54. data/Gemfile +6 -0
  55. data/LICENSE.txt +21 -0
  56. data/README.md +90 -0
  57. data/Rakefile +6 -0
  58. data/bin/console +14 -0
  59. data/bin/setup +7 -0
  60. data/cocoapods-app_group.gemspec +25 -0
  61. data/lib/cocoapods/app_group.rb +6 -0
  62. data/lib/cocoapods/app_group/hook.rb +18 -0
  63. data/lib/cocoapods/app_group/setup.rb +58 -0
  64. data/lib/cocoapods/app_group/store.rb +41 -0
  65. data/lib/cocoapods/app_group/template.rb +27 -0
  66. data/lib/cocoapods/app_group/version.rb +5 -0
  67. data/lib/cocoapods_plugin.rb +1 -0
  68. data/lib/pod/command/app_group.rb +31 -0
  69. data/templates/AppGroup.h +7 -0
  70. data/templates/AppGroup.m +23 -0
  71. data/templates/AppGroup.podspec.json +24 -0
  72. metadata +158 -0
@@ -0,0 +1,62 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "0700"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "19040DE81D6EA88AF4D022F6"
18
+ BuildableName = "AppGroup.framework"
19
+ BlueprintName = "AppGroup"
20
+ ReferencedContainer = "container:Pods.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ </BuildActionEntries>
24
+ </BuildAction>
25
+ <TestAction
26
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
27
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28
+ shouldUseLaunchSchemeArgsEnv = "YES"
29
+ buildConfiguration = "Debug">
30
+ <AdditionalOptions>
31
+ </AdditionalOptions>
32
+ <Testables>
33
+ </Testables>
34
+ </TestAction>
35
+ <LaunchAction
36
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
37
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
38
+ launchStyle = "0"
39
+ useCustomWorkingDirectory = "NO"
40
+ buildConfiguration = "Debug"
41
+ ignoresPersistentStateOnLaunch = "NO"
42
+ debugDocumentVersioning = "YES"
43
+ debugServiceExtension = "internal"
44
+ allowLocationSimulation = "YES">
45
+ <AdditionalOptions>
46
+ </AdditionalOptions>
47
+ </LaunchAction>
48
+ <ProfileAction
49
+ shouldUseLaunchSchemeArgsEnv = "YES"
50
+ savedToolIdentifier = ""
51
+ useCustomWorkingDirectory = "NO"
52
+ buildConfiguration = "Release"
53
+ debugDocumentVersioning = "YES">
54
+ </ProfileAction>
55
+ <AnalyzeAction
56
+ buildConfiguration = "Debug">
57
+ </AnalyzeAction>
58
+ <ArchiveAction
59
+ buildConfiguration = "Release"
60
+ revealArchiveInOrganizer = "YES">
61
+ </ArchiveAction>
62
+ </Scheme>
@@ -0,0 +1,6 @@
1
+ #include "AppGroup.xcconfig"
2
+ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3
+ HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/AppGroup" "${PODS_ROOT}/Headers/Public"
4
+ OTHER_LDFLAGS = ${APPGROUP_OTHER_LDFLAGS}
5
+ PODS_ROOT = ${SRCROOT}
6
+ SKIP_INSTALL = YES
@@ -0,0 +1,5 @@
1
+ #import <Foundation/Foundation.h>
2
+ @interface PodsDummy_AppGroup : NSObject
3
+ @end
4
+ @implementation PodsDummy_AppGroup
5
+ @end
@@ -0,0 +1,4 @@
1
+ #ifdef __OBJC__
2
+ #import <UIKit/UIKit.h>
3
+ #endif
4
+
@@ -0,0 +1,7 @@
1
+ #import <UIKit/UIKit.h>
2
+
3
+ #import "AppGroup.h"
4
+
5
+ FOUNDATION_EXPORT double AppGroupVersionNumber;
6
+ FOUNDATION_EXPORT const unsigned char AppGroupVersionString[];
7
+
@@ -0,0 +1,6 @@
1
+ framework module AppGroup {
2
+ umbrella header "AppGroup-umbrella.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -0,0 +1 @@
1
+ APPGROUP_OTHER_LDFLAGS = -framework "Foundation"
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>${EXECUTABLE_NAME}</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>${PRODUCT_NAME}</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>FMWK</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>${CURRENT_PROJECT_VERSION}</string>
23
+ <key>NSPrincipalClass</key>
24
+ <string></string>
25
+ </dict>
26
+ </plist>
@@ -0,0 +1,26 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>${EXECUTABLE_NAME}</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>org.cocoapods.${PRODUCT_NAME:rfc1034identifier}</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>${PRODUCT_NAME}</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>FMWK</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>${CURRENT_PROJECT_VERSION}</string>
23
+ <key>NSPrincipalClass</key>
24
+ <string></string>
25
+ </dict>
26
+ </plist>
@@ -0,0 +1,7 @@
1
+ # Acknowledgements
2
+ This application makes use of the following third party libraries:
3
+
4
+ ## AppGroup
5
+
6
+ MIT LICENSE Found in the repo
7
+ Generated by CocoaPods - http://cocoapods.org
@@ -0,0 +1,37 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>PreferenceSpecifiers</key>
6
+ <array>
7
+ <dict>
8
+ <key>FooterText</key>
9
+ <string>This application makes use of the following third party libraries:</string>
10
+ <key>Title</key>
11
+ <string>Acknowledgements</string>
12
+ <key>Type</key>
13
+ <string>PSGroupSpecifier</string>
14
+ </dict>
15
+ <dict>
16
+ <key>FooterText</key>
17
+ <string>MIT LICENSE Found in the repo</string>
18
+ <key>Title</key>
19
+ <string>AppGroup</string>
20
+ <key>Type</key>
21
+ <string>PSGroupSpecifier</string>
22
+ </dict>
23
+ <dict>
24
+ <key>FooterText</key>
25
+ <string>Generated by CocoaPods - http://cocoapods.org</string>
26
+ <key>Title</key>
27
+ <string></string>
28
+ <key>Type</key>
29
+ <string>PSGroupSpecifier</string>
30
+ </dict>
31
+ </array>
32
+ <key>StringsTable</key>
33
+ <string>Acknowledgements</string>
34
+ <key>Title</key>
35
+ <string>Acknowledgements</string>
36
+ </dict>
37
+ </plist>
@@ -0,0 +1,5 @@
1
+ #import <Foundation/Foundation.h>
2
+ @interface PodsDummy_Pods : NSObject
3
+ @end
4
+ @implementation PodsDummy_Pods
5
+ @end
@@ -0,0 +1,59 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
5
+ mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
6
+
7
+ SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
8
+
9
+ install_framework()
10
+ {
11
+ if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
12
+ local source="${BUILT_PRODUCTS_DIR}/$1"
13
+ else
14
+ local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")"
15
+ fi
16
+
17
+ local destination="${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
18
+
19
+ if [ -L "${source}" ]; then
20
+ echo "Symlinked..."
21
+ source="$(readlink "${source}")"
22
+ fi
23
+
24
+ # use filter instead of exclude so missing patterns dont' throw errors
25
+ echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\""
26
+ rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}"
27
+
28
+ # Resign the code if required by the build settings to avoid unstable apps
29
+ code_sign_if_enabled "${destination}/$(basename "$1")"
30
+
31
+ # Embed linked Swift runtime libraries
32
+ local basename
33
+ basename="$(basename "$1" | sed -E s/\\..+// && exit ${PIPESTATUS[0]})"
34
+ local swift_runtime_libs
35
+ swift_runtime_libs=$(xcrun otool -LX "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/${basename}.framework/${basename}" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]})
36
+ for lib in $swift_runtime_libs; do
37
+ echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\""
38
+ rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}"
39
+ code_sign_if_enabled "${destination}/${lib}"
40
+ done
41
+ }
42
+
43
+ # Signs a framework with the provided identity
44
+ code_sign_if_enabled() {
45
+ if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
46
+ # Use the current code_sign_identitiy
47
+ echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
48
+ echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements \"$1\""
49
+ /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
50
+ fi
51
+ }
52
+
53
+
54
+ if [[ "$CONFIGURATION" == "Debug" ]]; then
55
+ install_framework 'Pods/AppGroup.framework'
56
+ fi
57
+ if [[ "$CONFIGURATION" == "Release" ]]; then
58
+ install_framework 'Pods/AppGroup.framework'
59
+ fi
@@ -0,0 +1,95 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
5
+
6
+ RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
7
+ > "$RESOURCES_TO_COPY"
8
+
9
+ XCASSET_FILES=()
10
+
11
+ realpath() {
12
+ DIRECTORY="$(cd "${1%/*}" && pwd)"
13
+ FILENAME="${1##*/}"
14
+ echo "$DIRECTORY/$FILENAME"
15
+ }
16
+
17
+ install_resource()
18
+ {
19
+ case $1 in
20
+ *.storyboard)
21
+ echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
22
+ ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
23
+ ;;
24
+ *.xib)
25
+ echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
26
+ ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}"
27
+ ;;
28
+ *.framework)
29
+ echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
30
+ mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
31
+ echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
32
+ rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
33
+ ;;
34
+ *.xcdatamodel)
35
+ echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\""
36
+ xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom"
37
+ ;;
38
+ *.xcdatamodeld)
39
+ echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\""
40
+ xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd"
41
+ ;;
42
+ *.xcmappingmodel)
43
+ echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\""
44
+ xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm"
45
+ ;;
46
+ *.xcassets)
47
+ ABSOLUTE_XCASSET_FILE=$(realpath "${PODS_ROOT}/$1")
48
+ XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE")
49
+ ;;
50
+ /*)
51
+ echo "$1"
52
+ echo "$1" >> "$RESOURCES_TO_COPY"
53
+ ;;
54
+ *)
55
+ echo "${PODS_ROOT}/$1"
56
+ echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY"
57
+ ;;
58
+ esac
59
+ }
60
+
61
+ mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
62
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
63
+ if [[ "${ACTION}" == "install" ]]; then
64
+ mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
65
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
66
+ fi
67
+ rm -f "$RESOURCES_TO_COPY"
68
+
69
+ if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ]
70
+ then
71
+ case "${TARGETED_DEVICE_FAMILY}" in
72
+ 1,2)
73
+ TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
74
+ ;;
75
+ 1)
76
+ TARGET_DEVICE_ARGS="--target-device iphone"
77
+ ;;
78
+ 2)
79
+ TARGET_DEVICE_ARGS="--target-device ipad"
80
+ ;;
81
+ *)
82
+ TARGET_DEVICE_ARGS="--target-device mac"
83
+ ;;
84
+ esac
85
+
86
+ # Find all other xcassets (this unfortunately includes those of path pods and other targets).
87
+ OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d)
88
+ while read line; do
89
+ if [[ $line != "`realpath $PODS_ROOT`*" ]]; then
90
+ XCASSET_FILES+=("$line")
91
+ fi
92
+ done <<<"$OTHER_XCASSETS"
93
+
94
+ printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
95
+ fi
@@ -0,0 +1,6 @@
1
+ #import <UIKit/UIKit.h>
2
+
3
+
4
+ FOUNDATION_EXPORT double PodsVersionNumber;
5
+ FOUNDATION_EXPORT const unsigned char PodsVersionString[];
6
+
@@ -0,0 +1,7 @@
1
+ APP_IDENTIFIER = jp.mzp.app_group.example
2
+ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3
+ LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4
+ OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AppGroup.framework/Headers"
5
+ OTHER_LDFLAGS = $(inherited) -framework "AppGroup"
6
+ PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods
7
+ PODS_ROOT = ${SRCROOT}/Pods
@@ -0,0 +1,6 @@
1
+ framework module Pods {
2
+ umbrella header "Pods-umbrella.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
@@ -0,0 +1,7 @@
1
+ APP_IDENTIFIER = jp.mzp.app_group.example
2
+ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
3
+ LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
4
+ OTHER_CFLAGS = $(inherited) -iquote "$CONFIGURATION_BUILD_DIR/AppGroup.framework/Headers"
5
+ OTHER_LDFLAGS = $(inherited) -framework "AppGroup"
6
+ PODS_FRAMEWORK_BUILD_PATH = $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/Pods
7
+ PODS_ROOT = ${SRCROOT}/Pods
@@ -0,0 +1,46 @@
1
+ //
2
+ // AppDelegate.swift
3
+ // ReadFromAppGroup
4
+ //
5
+ // Created by mzp on 9/22/15.
6
+ // Copyright © 2015 mzp. All rights reserved.
7
+ //
8
+
9
+ import UIKit
10
+
11
+ @UIApplicationMain
12
+ class AppDelegate: UIResponder, UIApplicationDelegate {
13
+
14
+ var window: UIWindow?
15
+
16
+
17
+ func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
18
+ // Override point for customization after application launch.
19
+ return true
20
+ }
21
+
22
+ func applicationWillResignActive(application: UIApplication) {
23
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
25
+ }
26
+
27
+ func applicationDidEnterBackground(application: UIApplication) {
28
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30
+ }
31
+
32
+ func applicationWillEnterForeground(application: UIApplication) {
33
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34
+ }
35
+
36
+ func applicationDidBecomeActive(application: UIApplication) {
37
+ // 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.
38
+ }
39
+
40
+ func applicationWillTerminate(application: UIApplication) {
41
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42
+ }
43
+
44
+
45
+ }
46
+