fastlane-plugin-fivethree_ionic 0.1.1 → 0.1.2

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: 1282694113bf998748a2fe0d5f498dc13cac10ca
4
- data.tar.gz: '085330210e92e21e319b71c61b76800cc7af594d'
3
+ metadata.gz: 2303a75b50cab0229baaad133a5767fc1863b5a6
4
+ data.tar.gz: 399d7aeaaea6421d7ebb63d094f25f0dc27cf98e
5
5
  SHA512:
6
- metadata.gz: 4a96ad29f059bcef1a97b570b6aa292c544d036cead14afe5103f792c5c271d5e739236739d3ff5014a47d94fbb0bfb011d8b57e5e12b618d2567b67600b32d0
7
- data.tar.gz: 84e90567187b22299f5c6d2c872be1bfe20ffbec73b3675cc380dc66f1abf74242ea02a8085a949466c7e391d1b5a3e0ad5d563450b762ec0fa08399a2d87beb
6
+ metadata.gz: f797b3a200d0c70e27577d22902e3497dba331e78a5981cccc6286c7ed70abc0a9f0f8a7dba4c69f32daff69a5c691957e3a3891eb7b651ffb95434deccf68bd
7
+ data.tar.gz: 9fe9d1cd21f2f334155199425fa61cfd031f8207795846b976d78f59f19be58d4827249ba46bfc40cb3ac378d24ab0e18f9199ef8dee9bc45239cc3916860de3
data/README.md CHANGED
@@ -35,6 +35,15 @@ To automatically fix many of the styling issues, use
35
35
  rubocop -a
36
36
  ```
37
37
 
38
+ ## Publish
39
+
40
+ * `cd fastlane-plugin-fivethree_ionic`
41
+ * update to latest gem files `bundle install`
42
+ * `sudo rake install`
43
+ * increment version number in `lib/fastlane/plugin/fivethree_ionic/version.rb`
44
+ * build new plugin version `rake build`
45
+ * publish ruby gem `gem push pkg/fastlane-plugin-fivethree_ionic-`
46
+
38
47
  ## Issues and Feedback
39
48
 
40
49
  For any other issues and feedback about this plugin, please submit it to this repository.
@@ -0,0 +1,110 @@
1
+ module Fastlane
2
+ module Actions
3
+ module SharedValues
4
+ FIV_ADD_TRANSPARENT_STATUSBAR_CUSTOM_VALUE = :ADD_TRANSPARENT_STATUSBAR_CUSTOM_VALUE
5
+ end
6
+
7
+ class FivAddTransparentStatusbarAction < Action
8
+ def self.run(params)
9
+
10
+ text = File.read(params[:path])
11
+
12
+ if params[:ios]
13
+
14
+ puts "platform is ios"
15
+
16
+ /super.onCreate\(savedInstanceState\);/
17
+
18
+ new_contents = text.gsub(/{/, "{\n [self.viewController.navigationController.navigationBar setBackgroundImage:[UIImage new]
19
+ \nforBarMetrics:UIBarMetricsDefault];
20
+ \nself.viewController.navigationController.navigationBar.shadowImage = [UIImage new];
21
+ \nself.viewController.navigationController.navigationBar.translucent = YES;
22
+ \nself.viewController.navigationController.view.backgroundColor = [UIColor clearColor];")
23
+
24
+ else
25
+
26
+ puts "platform is android"
27
+
28
+ content = text.gsub(/super.onCreate\(savedInstanceState\);/,
29
+ "super.onCreate(savedInstanceState);
30
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
31
+ getWindow().getDecorView().setSystemUiVisibility(
32
+ View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
33
+ View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
34
+ }")
35
+
36
+ new_contents = content.gsub(/import org.apache.cordova.*;/,
37
+ "import org.apache.cordova.*;\nimport android.os.Build;\nimport android.view.View;")
38
+
39
+ end
40
+
41
+ File.open(params[:path], "w") {|file| file.puts new_contents}
42
+ end
43
+
44
+ #####################################################
45
+ # @!group Documentation
46
+ #####################################################
47
+
48
+ def self.description
49
+ "A short description with <= 80 characters of what this action does"
50
+ end
51
+
52
+ def self.details
53
+ # Optional:
54
+ # this is your chance to provide a more detailed description of this action
55
+ "You can use this action to do cool things..."
56
+ end
57
+
58
+ def self.available_options
59
+ # Define all options your action supports.
60
+
61
+ # Below a few examples
62
+ [
63
+ FastlaneCore::ConfigItem.new(key: :ios,
64
+ env_name: "FIV_ADD_TRANSPARENT_STATUSBAR_PLATFORM",
65
+ description: "---",
66
+ optional: false,
67
+ type: Boolean),
68
+ FastlaneCore::ConfigItem.new(key: :path,
69
+ env_name: "FIV_ADD_TRANSPARENT_STATUSBAR_PATH",
70
+ description: "Path to Appdelegate.m for ios and MainActivity.java for Android",
71
+ optional: false,
72
+ verify_block: proc do | value |
73
+ UI.user_error!("Couldnt find AppDelegate or Main Activity! Please change your path.") unless File.exist?(value)
74
+ end ,
75
+ type: String)
76
+ ]
77
+ end
78
+
79
+ def self.output
80
+ # Define the shared values you are going to provide
81
+ # Example
82
+ [
83
+ ['ADD_TRANSPARENT_STATUSBAR_CUSTOM_VALUE', 'A description of what this value contains']
84
+ ]
85
+ end
86
+
87
+ def self.return_value
88
+ # If your method provides a return value, you can describe here what it does
89
+ end
90
+
91
+ def self.authors
92
+ # So no one will ever forget your contribution to fastlane :) You are awesome btw!
93
+ ["Your GitHub/Twitter Name"]
94
+ end
95
+
96
+ def self.is_supported?(platform)
97
+ # you can do things like
98
+ #
99
+ # true
100
+ #
101
+ # platform == :ios
102
+ #
103
+ # [:ios, :mac].include?(platform)
104
+ #
105
+
106
+ platform == :ios
107
+ end
108
+ end
109
+ end
110
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module FivethreeIonic
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-fivethree_ionic
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
  - Marc Stammerjohann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-27 00:00:00.000000000 Z
11
+ date: 2018-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -145,6 +145,7 @@ files:
145
145
  - LICENSE
146
146
  - README.md
147
147
  - lib/fastlane/plugin/fivethree_ionic.rb
148
+ - lib/fastlane/plugin/fivethree_ionic/actions/fiv_add_transparent_statusbar.rb
148
149
  - lib/fastlane/plugin/fivethree_ionic/actions/fiv_build_ionic_android.rb
149
150
  - lib/fastlane/plugin/fivethree_ionic/actions/fiv_increment_build_no.rb
150
151
  - lib/fastlane/plugin/fivethree_ionic/actions/fiv_update_version.rb