fastlane-plugin-sharethemeal 0.1.6.pre.alpha.pre.23 → 0.1.6.pre.alpha.pre.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +30 -17
- data/lib/fastlane/plugin/sharethemeal/actions/sharethemeal_action.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTI1MGI0ZDFiMDk4ZDI2ZjYyYzc5NTM2Yzg0ZDU3ZjAzMTY4Nzc3Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTM0MmYyYTVmYzFiOTM4YzUzZGNlNzk1MjFlZDAyOWEyODJjY2VhMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWFhNTEyYTdhNzUwZDA2NWE3MjBmNWI4N2E3Mjg3OWM0ZWE0NzNmODVmYjAy
|
10
|
+
MzFmZTIwZmM5YTg1ODBkNTRjYWNmMmM1NTI2ODUyNzEwZTU5M2M2ZWNkM2Yy
|
11
|
+
ZDIwYjYxM2NmZWRiOTg5MjQwZTY1ODk1M2IzMjBiNGYyNmVlMzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmM2NjI0N2EyNzU0ZGM3MzUzNTYyMzRjYTlkZDAzYzU2YzUzMDAwMTE3ZjNh
|
14
|
+
ZmVlZWFkZWM0OGY1YmNmYjdmYTBlZDI5ODYwZWU1MjE0NGZkNTAzZmU3N2E4
|
15
|
+
ZmNlN2M1MTkxYjU2OTFjYTFkYjRiODNhZjFkOTJlNDI0MDdkODM=
|
data/README.md
CHANGED
@@ -6,39 +6,46 @@
|
|
6
6
|
![Screenshot](assets/screen1.png)
|
7
7
|
|
8
8
|
## About
|
9
|
-
> This Plugin Enables unattended automated Donations of any size to the ShareTheMeal Inititative from the World-Food-Program
|
10
9
|
|
11
|
-
|
12
|
-
|
10
|
+
> Using this _fastlane_ plugin you can automatically donate food on [ShareTheMeal](https://sharethemeal.org) using _fastlane_.
|
11
|
+
|
12
|
+
[fastlane](https://fastlane.tools) saves us hours of work, which eventually saves us a lot of money. This is my way of reminding myself to give, on every deploy using [fastlane](https://fastlane.tools).
|
13
13
|
|
14
14
|
|
15
15
|
## ShareTheMeal
|
16
16
|
|
17
|
-
ShareTheMeal is a crowdfunding application to fight global hunger launched by the United Nations World Food Programme (WFP) in 2015. It enables users to make small donations to specific WFP projects and to track its progress. As of August 2016, ShareTheMeal has over 600,000 downloads and 7 million meals shared.
|
17
|
+
[ShareTheMeal](https://sharethemeal.org) is a crowdfunding application to fight global hunger launched by the United Nations World Food Programme (WFP) in 2015. It enables users to make small donations to specific WFP projects and to track its progress. As of August 2016, ShareTheMeal has over 600,000 downloads and 7 million meals shared.
|
18
18
|
|
19
19
|
|
20
20
|
## Setup
|
21
|
+
|
21
22
|
### Add Plugin
|
22
23
|
```
|
23
24
|
fastlane add_plugin sharethemeal
|
24
25
|
```
|
25
26
|
|
26
27
|
### Get your UserHash
|
27
|
-
|
28
|
-
|
28
|
+
|
29
|
+
To get started, you have to provide the payment information on your account
|
29
30
|
|
30
31
|
| | Step |
|
31
32
|
|----------|:-------------|
|
32
|
-
| 💾 | Download
|
33
|
-
| 🚀 |
|
34
|
-
| 🍕 | Do a
|
33
|
+
| 💾 | Download the ShareTheMeal app ([Appstore](https://itunes.apple.com/us/app/sharethemeal/id977130010), [Google Play](https://play.google.com/store/apps/details?id=org.sharethemeal.app) |
|
34
|
+
| 🚀 | Open the app |
|
35
|
+
| 🍕 | Do a single donation manually to enter your credit card information |
|
35
36
|
| 📱 | Login and go to your profile |
|
36
|
-
| 🛠 |
|
37
|
-
| 👊 |
|
37
|
+
| 🛠 | Open the setting screen |
|
38
|
+
| 👊 | Tap the version label at the bottom a few times |
|
39
|
+
|
38
40
|
|
41
|
+
| Setup | |
|
42
|
+
|---|---|
|
43
|
+
| **Step 1** | **Step 2** |
|
44
|
+
| <img src='assets/setup1.png' height=500> | <img src='assets/setup2.png' height=500> |
|
45
|
+
| **Step 3** | **Step 4** |
|
46
|
+
| <img src='assets/setup3.png' height=500> | <img src='assets/setup4.png' height=500> |
|
39
47
|
|
40
|
-
|
41
|
-
For a detailed step by step guide on how to obtain your user hash you can see [Step by Step Guide](STEP_BY_STEP.md)
|
48
|
+
After this you have your `userhash` in the clipboard.
|
42
49
|
|
43
50
|
|
44
51
|
## Example
|
@@ -48,17 +55,23 @@ lane :donate do
|
|
48
55
|
sharethemeal(
|
49
56
|
amount: "0.4",
|
50
57
|
userhash: "XXX",
|
51
|
-
currency: "EUR"
|
52
|
-
team_id: "fastlane"
|
58
|
+
currency: "EUR"
|
53
59
|
)
|
54
60
|
end
|
61
|
+
|
62
|
+
lane :deployment do
|
63
|
+
gym # Build your app
|
64
|
+
deliver # Submit your app
|
65
|
+
donate # Call the `donate` lane
|
66
|
+
end
|
55
67
|
```
|
56
68
|
|
69
|
+
You can also pass the userhash in your `SHARETHEMEAL_USERHASH` environment variable.
|
70
|
+
|
57
71
|
## Troubleshooting
|
58
72
|
|
59
73
|
If you have trouble using plugins, check out the [Plugins Troubleshooting](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md) doc in the main `fastlane` repo.
|
60
74
|
|
61
|
-
|
62
75
|
## About `fastlane`
|
63
76
|
|
64
|
-
`fastlane` is the easiest way to automate building and releasing your iOS and Android apps.
|
77
|
+
`fastlane` is the easiest way to automate building and releasing your iOS and Android apps. Check out [fastlane.tools](https://fastlane.tools).
|
@@ -9,6 +9,7 @@ module Fastlane
|
|
9
9
|
def self.run(params)
|
10
10
|
FastlaneCore::PrintTable.print_values(config: params, hide_keys: [:userhash], title: "Summary for ShareTheMeal")
|
11
11
|
api = StmApi::Donation.new(params)
|
12
|
+
UI.user_error!("Please use a . to provide decimales (e.g. 0.5 for 50 cents)") if params[:amount].include?(",")
|
12
13
|
result = api.donate(amount: params[:amount])
|
13
14
|
|
14
15
|
if result == true
|
@@ -35,7 +36,7 @@ module Fastlane
|
|
35
36
|
end
|
36
37
|
|
37
38
|
def self.description
|
38
|
-
'Donate ShareTheMeal'
|
39
|
+
'Donate food via ShareTheMeal'
|
39
40
|
end
|
40
41
|
|
41
42
|
def self.authors
|