cocoapods-app_group 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9671885efcaf337bcc795703a57b9c5e2f77d5d7
4
- data.tar.gz: 2163759a75505d7d49047e5df0704753b66675be
3
+ metadata.gz: c2c32fbe0c3a45042edf2f27e2b23a21404094d6
4
+ data.tar.gz: 3e2a21326f458476e9a7e52f0e8953b1805f5015
5
5
  SHA512:
6
- metadata.gz: 84d567daab10fb95f29a69bb76b41f9ba3e930b20a952a95d060164202004f26b8e425cf1ab0dbbf50c52ade34de963877e9b7c19a072f06985c0fe479f2e446
7
- data.tar.gz: 097ef163ede375a243de3f1f6d37dfc5dae370041f5ffb2d61f7760b8bf5c72b768a0ecd7750be716f3a768fcfb281f88d6513d644a0325885b752b80a7160eb
6
+ metadata.gz: d1b7a0eae48917680f6ddd51d8ca03b22207f7265371d23423f15e1a6754029e325166eca233cebaa29f7ca25f75c29c3a9b9f0f888ac75a00e8e9cbc2f158d4
7
+ data.tar.gz: b8c4bf57e618b8be23831e58fb999de52f7446473e8f6dd5c22965a4693d49971441c30d02613a1e23d9649090d885e69249ca83b5a9e2858464b90a8c9d125b
@@ -1,5 +1,5 @@
1
1
  module Cocoapods
2
2
  module AppGroup
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
data/templates/AppGroup.h CHANGED
@@ -3,5 +3,6 @@
3
3
  @interface AppGroup : NSObject
4
4
  + (NSString *)appGroupID;
5
5
  + (NSString *)pathForResource:(NSString *)subpath;
6
+ + (NSURL *)urlForResource:(NSString *)subpath;
6
7
  + (NSUserDefaults*)userDefaults;
7
8
  @end
data/templates/AppGroup.m CHANGED
@@ -15,6 +15,11 @@ static NSString * const kAppIdentifier = @"<%= store.read :app_group %>";
15
15
  return [containerPath stringByAppendingPathComponent:subpath];
16
16
  }
17
17
 
18
+ + (NSURL *)urlForResource:(NSString *)subpath {
19
+ NSURL *container = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier:[self appGroupID]];
20
+ return [container URLByAppendingPathComponent:subpath];
21
+ }
22
+
18
23
  + (NSUserDefaults*)userDefaults
19
24
  {
20
25
  return [[NSUserDefaults alloc] initWithSuiteName: [self appGroupID]];
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-app_group
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mzp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-22 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler