configure_extensions 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +92 -1
- data/lib/configure_extensions/version.rb +1 -1
- metadata +22 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1239823a13c8cb7040478aa5d4e202afa82be71d
|
4
|
+
data.tar.gz: 94d379f133f9ecd52a958f580e6ffa8121c15071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9c2b0f6537cfa7bd2879c01675e667aad9fff11c6dd4c30cc54430cf2009bc0d908a8ac8fd3d2d91e070caffed6d9b6e3be54d7af89d1a8575ac330356a3015
|
7
|
+
data.tar.gz: 10ae1a83305c385d89159749a8af99f532f18d594c32996d5a5339715c719a759928d22dc5394a9d7faee88a021141fb759fc1c1842fcba55be651a1dd1188ed
|
data/README.md
CHANGED
@@ -1 +1,92 @@
|
|
1
|
-
# configure_extensions
|
1
|
+
# configure_extensions
|
2
|
+
|
3
|
+
[![RubyGems](https://img.shields.io/gem/v/configure_extensions.svg)](https://rubygems.org/gems/configure_extensions)
|
4
|
+
|
5
|
+
#### Automatically enable/disable app extensions from Xcode build
|
6
|
+
###### Keep your project compiling on multiple versions of Xcode by removing incompatible app extensions from the build
|
7
|
+
|
8
|
+
Read [Simultaneous Xcode 7 and Xcode 8 compatibility](http://radex.io/xcode7-xcode8/) for more information about this project.
|
9
|
+
|
10
|
+
-------
|
11
|
+
<p align="center">
|
12
|
+
<a href="#features">Features</a> •
|
13
|
+
<a href="#usage">Usage</a> •
|
14
|
+
<a href="#installation">Installation</a> •
|
15
|
+
<a href="#more-like-this">More info</a>
|
16
|
+
</p>
|
17
|
+
-------
|
18
|
+
|
19
|
+
## Features
|
20
|
+
|
21
|
+
Say you have an iOS app. You want to add some iOS 10 app extensions to the project, but you still need to build for iOS 9, and you want to avoid branching. You [configure your project just right](http://radex.io/xcode7-xcode8/) to allow this, but what do you do with app extensions that only compile with Xcode 8?
|
22
|
+
|
23
|
+
Simple! You remove them from the "Target Dependencies" and "Embed App Extensions" build phases of the app target before you commit:
|
24
|
+
|
25
|
+
~~~
|
26
|
+
configure_extensions remove MyApp.xcodeproj MyAppTarget NotificationsUI Intents
|
27
|
+
~~~
|
28
|
+
|
29
|
+
This keeps Xcode 7 compatibility. Want to work on iOS 10 features? Add them back in an instant:
|
30
|
+
|
31
|
+
~~~
|
32
|
+
configure_extensions add MyApp.xcodeproj MyAppTarget NotificationsUI Intents
|
33
|
+
~~~
|
34
|
+
|
35
|
+
No branching necessary.
|
36
|
+
|
37
|
+
(You can also use `configure_extensions` to add a "fast mode" to your automated build server that skips compilation of unnecessary app extensions)
|
38
|
+
|
39
|
+
## Usage
|
40
|
+
|
41
|
+
Here's full syntax of the tool:
|
42
|
+
|
43
|
+
~~~
|
44
|
+
configure_extensions <mode> <project> <app_target> <extensions...>
|
45
|
+
|
46
|
+
Add and remove app extensions from Xcode build
|
47
|
+
|
48
|
+
mode
|
49
|
+
add - enables passed app extension targets
|
50
|
+
remove - disables extensions from being built and embedded in the app
|
51
|
+
|
52
|
+
project
|
53
|
+
path to the Xcode project file
|
54
|
+
|
55
|
+
app_target
|
56
|
+
name of the main (app) target in which extensions are to be enabled/disabled
|
57
|
+
|
58
|
+
extensions
|
59
|
+
names of app extension targets to be enabled/disabled
|
60
|
+
|
61
|
+
EXAMPLES
|
62
|
+
|
63
|
+
configure_extensions add MyApp.xcodeproj MyApp NotificationsUI Share
|
64
|
+
configure_extensions remove Foo.xcodeproj Foo-iOS Share
|
65
|
+
~~~
|
66
|
+
|
67
|
+
## Installation
|
68
|
+
|
69
|
+
~~~
|
70
|
+
sudo gem install configure_extensions
|
71
|
+
~~~
|
72
|
+
|
73
|
+
## More like this
|
74
|
+
|
75
|
+
If you like `configure_extensions`, be sure to check out ["Simultaneous Xcode 7 and Xcode 8 compatibility"](http://radex.io/xcode7-xcode8/) where I explain in detail how to keep a single Xcode project running on multiple versions of Xcode without branching.
|
76
|
+
|
77
|
+
And if you're into Swift, you might also like [SwiftyUserDefaults](https://github.com/radex/SwiftyUserDefaults) and [SwiftyTimer](https://github.com/radex/SwiftyTimer).
|
78
|
+
|
79
|
+
### Contributing
|
80
|
+
|
81
|
+
If you have comments, complaints or ideas for improvements, feel free to open an issue or a pull request. Or [ping me on Twitter](http://twitter.com/radexp).
|
82
|
+
|
83
|
+
### Author and license
|
84
|
+
|
85
|
+
Radek Pietruszewski
|
86
|
+
|
87
|
+
* [github.com/radex](http://github.com/radex)
|
88
|
+
* [twitter.com/radexp](http://twitter.com/radexp)
|
89
|
+
* [radex.io](http://radex.io)
|
90
|
+
* this.is@radex.io
|
91
|
+
|
92
|
+
`configure_extensions` is available under the MIT license. See the LICENSE file for more info.
|
metadata
CHANGED
@@ -1,15 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configure_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Radek Pietruszewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.0.2
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 4.0.2
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5'
|
13
33
|
- !ruby/object:Gem::Dependency
|
14
34
|
name: xcodeproj
|
15
35
|
requirement: !ruby/object:Gem::Requirement
|