├── de.lproj ├── Root.strings └── Version.strings ├── en.lproj ├── Root.strings └── Version.strings ├── es.lproj ├── Root.strings └── Version.strings ├── fr.lproj ├── Root.strings └── Version.strings ├── it.lproj ├── Root.strings └── Version.strings ├── ja.lproj ├── Root.strings └── Version.strings ├── nl.lproj ├── Root.strings └── Version.strings ├── ru.lproj ├── Root.strings └── Version.strings ├── tr.lproj ├── Root.strings └── Version.strings ├── screenshots ├── screen1.png ├── screen2.png ├── screen3.png └── addrunscript.png ├── Placeholder.h ├── pt-BR.lproj ├── Root.strings └── Version.strings ├── pt-PT.lproj ├── Root.strings └── Version.strings ├── zh-Hans.lproj ├── Root.strings └── Version.strings ├── zh-Hant.lproj ├── Root.strings └── Version.strings ├── EasyAbout.podspec ├── Root.plist ├── README.md ├── LICENSE ├── Version.plist └── settings-script.sh /de.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/de.lproj/Root.strings -------------------------------------------------------------------------------- /en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/en.lproj/Root.strings -------------------------------------------------------------------------------- /es.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/es.lproj/Root.strings -------------------------------------------------------------------------------- /fr.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/fr.lproj/Root.strings -------------------------------------------------------------------------------- /it.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/it.lproj/Root.strings -------------------------------------------------------------------------------- /ja.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/ja.lproj/Root.strings -------------------------------------------------------------------------------- /nl.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/nl.lproj/Root.strings -------------------------------------------------------------------------------- /ru.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/ru.lproj/Root.strings -------------------------------------------------------------------------------- /tr.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/tr.lproj/Root.strings -------------------------------------------------------------------------------- /screenshots/screen1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/screenshots/screen1.png -------------------------------------------------------------------------------- /screenshots/screen2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/screenshots/screen2.png -------------------------------------------------------------------------------- /screenshots/screen3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/screenshots/screen3.png -------------------------------------------------------------------------------- /Placeholder.h: -------------------------------------------------------------------------------- 1 | // 2 | // Placeholder.h 3 | // 4 | // Dummy file to pass CocoaPods validation. 5 | // 6 | -------------------------------------------------------------------------------- /de.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/de.lproj/Version.strings -------------------------------------------------------------------------------- /en.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/en.lproj/Version.strings -------------------------------------------------------------------------------- /es.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/es.lproj/Version.strings -------------------------------------------------------------------------------- /fr.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/fr.lproj/Version.strings -------------------------------------------------------------------------------- /it.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/it.lproj/Version.strings -------------------------------------------------------------------------------- /ja.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/ja.lproj/Version.strings -------------------------------------------------------------------------------- /nl.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/nl.lproj/Version.strings -------------------------------------------------------------------------------- /pt-BR.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/pt-BR.lproj/Root.strings -------------------------------------------------------------------------------- /pt-PT.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/pt-PT.lproj/Root.strings -------------------------------------------------------------------------------- /tr.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/tr.lproj/Version.strings -------------------------------------------------------------------------------- /zh-Hans.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/zh-Hans.lproj/Root.strings -------------------------------------------------------------------------------- /zh-Hant.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/zh-Hant.lproj/Root.strings -------------------------------------------------------------------------------- /pt-BR.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/pt-BR.lproj/Version.strings -------------------------------------------------------------------------------- /pt-PT.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/pt-PT.lproj/Version.strings -------------------------------------------------------------------------------- /screenshots/addrunscript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/screenshots/addrunscript.png -------------------------------------------------------------------------------- /zh-Hans.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/zh-Hans.lproj/Version.strings -------------------------------------------------------------------------------- /zh-Hant.lproj/Version.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JARMourato/EasyAbout/HEAD/zh-Hant.lproj/Version.strings -------------------------------------------------------------------------------- /ru.lproj/Version.strings: -------------------------------------------------------------------------------- 1 | "Build" = "Сборка"; 2 | "Info" = "Информация"; 3 | "Hash" = "хеш"; 4 | "Version" = "Версия"; 5 | -------------------------------------------------------------------------------- /EasyAbout.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'EasyAbout' 3 | s.version = '1.2.0' 4 | s.summary = 'A way to easily add Cocoapod licenses and App Version to your iOS App using the Settings Bundle' 5 | s.homepage = 'https://github.com/JARMourato/EasyAbout' 6 | s.license = { :type => 'MIT', :file => 'LICENSE' } 7 | s.author = { 'João Mourato' => 'joao.armourato@gmail.com' } 8 | s.platform = :ios 9 | s.source = { :git => 'https://github.com/JARMourato/EasyAbout.git', :tag => s.version.to_s } 10 | s.preserve_paths = 'settings-script.sh' 11 | s.ios.source_files = 'Placeholder.h' 12 | s.ios.resource_bundle = { 'Settings' => [ '*.lproj', 'Root.plist', 'Version.plist' ] } 13 | end 14 | -------------------------------------------------------------------------------- /Root.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | StringsTable 6 | Root 7 | PreferenceSpecifiers 8 | 9 | 10 | Type 11 | PSGroupSpecifier 12 | Title 13 | About 14 | 15 | 16 | Type 17 | PSChildPaneSpecifier 18 | Title 19 | Version 20 | File 21 | Version 22 | 23 | 24 | Type 25 | PSChildPaneSpecifier 26 | Title 27 | Licenses 28 | File 29 | Pods-acknowledgements 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | EasyAbout 2 | ====================== 3 | ## Requirements: cocoapods version 1.4.0 or above. 4 | 5 | ## Why you should use 6 | 7 | Well, it is always nice to give credit to the ones who helped you :smiley: 8 | Bonus: it helps keeping track of the app version that is installed 9 | 10 | ## Example 11 | 12 | 13 | 14 | 17 | 20 | 23 | 24 |
15 | 16 | 18 | 19 | 21 | 22 |
25 | 26 | ## Install 27 | 28 | Add to each wanted podfile target : 29 | 30 | ```ruby 31 | 32 | pod 'EasyAbout' 33 | script_phase :name => 'EasyAbout Setup', :script => '${PODS_ROOT}/EasyAbout/settings-script.sh' 34 | ``` 35 | 36 | ## License 37 | 38 | **EasyAbout** is available under the MIT license. See the [LICENSE](https://github.com/JARMourato/AcknowledgementsBundle/blob/master/LICENSE) file for more info. 39 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 JARMourato 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Version.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Title 6 | Version 7 | StringsTable 8 | Version 9 | PreferenceSpecifiers 10 | 11 | 12 | Type 13 | PSGroupSpecifier 14 | Title 15 | Info 16 | 17 | 18 | Type 19 | PSTitleValueSpecifier 20 | Title 21 | Version 22 | Key 23 | CFBundleShortVersionString 24 | DefaultValue 25 | - 26 | 27 | 28 | Type 29 | PSTitleValueSpecifier 30 | Title 31 | Build 32 | Key 33 | CFBundleVersion 34 | DefaultValue 35 | - 36 | 37 | 38 | Type 39 | PSTitleValueSpecifier 40 | Title 41 | Hash 42 | Key 43 | CFBundleHash 44 | DefaultValue 45 | - 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /settings-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | SOURCE_FILE="${SRCROOT}/Pods/Target Support Files/Pods-${TARGET_NAME}/Pods-${TARGET_NAME}-acknowledgements.plist" 4 | TARGET_FILE="${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app/Settings.bundle/Pods-acknowledgements.plist" 5 | 6 | #location of symbolic link creator 7 | CP="/bin/cp" 8 | 9 | $CP "${SOURCE_FILE}" "${TARGET_FILE}" 10 | 11 | echo "SOURCE_FILE = ${SOURCE_FILE}" 12 | echo "TARGET_FILE = ${TARGET_FILE}" 13 | 14 | INFOPLISTPATH="${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app/Info.plist" 15 | VERSION_LIST_PATH="${TARGET_BUILD_DIR}/${EXECUTABLE_NAME}.app/Settings.bundle/Version.plist" 16 | 17 | # Location of PlistBuddy 18 | PLISTBUDDY="/usr/libexec/PlistBuddy" 19 | 20 | BUILD_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFOPLISTPATH}") 21 | BUILD_NUMBER=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLISTPATH}") 22 | # Get the current git commmit hash (first 7 characters of the SHA) 23 | GITREVSHA=$(git --git-dir="${PROJECT_DIR}/.git" --work-tree="${PROJECT_DIR}" rev-parse --short HEAD) 24 | 25 | echo "INFOPLISTPATH = ${INFOPLISTPATH}" 26 | echo "VERSION_LIST_PATH = ${VERSION_LIST_PATH}" 27 | echo "BUILD_VERSION = ${BUILD_VERSION}" 28 | echo "BUILD_NUMBER = ${BUILD_NUMBER}" 29 | echo "GIT SHA = ${GITREVSHA}" 30 | 31 | 32 | # Set the Git hash in the info plist for reference 33 | $PLISTBUDDY -c "Set :PreferenceSpecifiers:1:DefaultValue $BUILD_VERSION" "${VERSION_LIST_PATH}" 34 | $PLISTBUDDY -c "Set :PreferenceSpecifiers:2:DefaultValue $BUILD_NUMBER" "${VERSION_LIST_PATH}" 35 | $PLISTBUDDY -c "Set :PreferenceSpecifiers:3:DefaultValue $GITREVSHA" "${VERSION_LIST_PATH}" 36 | --------------------------------------------------------------------------------