fastlane-plugin-aws_sns 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4256a27b632e0522c97c8b18d0c898a465372aab
4
- data.tar.gz: 8f7f772d2c50ff9f565e74c2fe08f0276b00e8c4
3
+ metadata.gz: d51df83e65599d0b3776675c1b991c578c7ff795
4
+ data.tar.gz: 2625cf56ad866473f768187cd1c7b4ba9fb8a8db
5
5
  SHA512:
6
- metadata.gz: d7dd0fddb60f1611412c673890001ab537609c944dee097530a686ae282e0fe4d8fae7e1a6b3002bd2d7c31080e4aee6b1581f6a18e5ce708f9d1d0bd6cdf770
7
- data.tar.gz: 17ff6591e1360367e969e9831488880b48d99f609dde436ba8f102aaff8a4ac961a1ef72041d124d251545c812e0526175310da6015785551cf925b6585014c0
6
+ metadata.gz: b71387142dd5f00f3d9f387322cdfc671ebea39e06f1e56661881b85160eaee487383fd61bd2743a4c05b1392ff1062a8dd0dbc078af56ff19deee21bcd86cf5
7
+ data.tar.gz: a4e30adca8be9347457db0628e595961d7d0561e9e33576993902259772ff7aefd985db781b3b1e892546f624ef9347db996fe47ec28150c3b01b4fcd769ddd0
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # aws_sns plugin
1
+ # aws_sns `fastlane` plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-aws_sns)
4
4
 
@@ -12,15 +12,48 @@ fastlane add_plugin aws_sns
12
12
 
13
13
  ## About aws_sns
14
14
 
15
- Creates AWS SNS platform applications
15
+ [AWS SNS](https://aws.amazon.com/sns/) is fully manage push notification service. This plugin creates an AWS SNS platform application for iOS and Android apps.
16
16
 
17
- **Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
17
+ iOS app are created by uploading a private key (p12) to AWS SNS - which can easily be created with [PEM](https://github.com/fastlane/fastlane/tree/master/pem)
18
+
19
+ Android apps are created by sending up a GCM Api Key to AWS SNS - obtained through your [Google Cloud Platform dashboard](https://console.cloud.google.com)
20
+
21
+ The call to `aws_sns` will return the AWS SNS plattform application's [ARN](http://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) (if you need it). The platform application's ARN is what is used to actually send notifications to your app(s) later on.
18
22
 
19
23
  ## Example
20
24
 
21
- Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
25
+ ### iOS
26
+ ```ruby
27
+ aws_sns(
28
+ platform: 'APNS',
29
+ platform_name: 'your_awesome_ios_app',
30
+ platform_apns_private_key_path: 'path/to/cert.p12',
31
+
32
+ # Optional private key password
33
+ # platform_apns_private_key_password: 'joshissupercool'
34
+ )
35
+ ```
36
+
37
+ ### Android
38
+ ```ruby
39
+ aws_sns(
40
+ platform: 'GCM',
41
+ platform_name: 'your_awesome_android_app',
42
+ platform_gcm_api_key: 'your_gcm_api_key'
43
+ )
44
+ ```
22
45
 
23
- **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
46
+ ### iOS (using the ARN)
47
+ ```ruby
48
+ ios_arn = aws_sns(
49
+ platform: 'APNS',
50
+ platform_name: 'your_awesome_ios_app',
51
+ platform_apns_private_key_path: 'path/to/cert.p12',
52
+ )
53
+
54
+ # TODO: Possibly send this ARN to someone important who needs to configure stuff
55
+ puts "ARN: #{ios_arn}"
56
+ ```
24
57
 
25
58
  ## Run tests for this plugin
26
59
 
@@ -50,3 +83,10 @@ For more information about how the `fastlane` plugin system works, check out the
50
83
  ## About `fastlane`
51
84
 
52
85
  `fastlane` is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
86
+
87
+ ## Author
88
+
89
+ Josh Holtz, josh@rokkincat.com, [@joshdholtz](https://twitter.com/joshdholtz)
90
+
91
+ I'm available for freelance work (Fastlane, iOS, and Android development) :muscle:
92
+ Feel free to contact me :rocket:
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AwsSns
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-aws_sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Holtz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-18 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.0
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project:
143
- rubygems_version: 2.4.5
143
+ rubygems_version: 2.5.2
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Creates AWS SNS platform applications