fastlane-plugin-androidmanifest_editor 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: c7601e93c735f7fdaa0d8c4d70114a7e7a3add68b39f65a7156046aba1ec9e5a
4
- data.tar.gz: e1ac9a3dac85f56da59c248b247358f7d1743896ab585e0ca2bfe234761713b1
3
+ metadata.gz: 81c6a232b4b3a16eb908448bbef43a36ccc0df0674143a874d6e7c36f8b0188f
4
+ data.tar.gz: 4df2c17510a9d1877f9b052b0228b48884dbd861d94021581c6216a56ba7d51a
5
5
  SHA512:
6
- metadata.gz: 10391e7abaeadb0f8375241c6eccdb4661bdfcc2dd6955551dac2bb46967c2eaaeaae128cc2a9ed27cea20aef741cf5a20edb93a0e294141cf5e60c40b454c37
7
- data.tar.gz: 38e7fe63c4040e1539e1c20fb5ebe872e96ff01ba61086a4ec0825b96b2abe74ee358137d14e42f93f4dbbb573c61bedcbf3a7252302b65f291fc0782d53f5cf
6
+ metadata.gz: 83570d373e03edc543b3690887ac588aa3ef85556ce28058bed126e96a5e17ad4f94b0c82c30481f5ff8a7b0d3d4a618a346a5c341a7a39cc9bf54216b5dee86
7
+ data.tar.gz: 1ad73ba79fe555c0a4e24c2a26e54f820167c6bc56ec7073d760b771ba6c0715a931dd23bda9b2e47dcb1722e100910f1274a957f674a01f7cb57fc7713d65d7
data/README.md CHANGED
@@ -18,9 +18,20 @@ edit meta-data in AndroidManifest.xml
18
18
 
19
19
  ## Example
20
20
 
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`.
22
-
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)
21
+ ```
22
+ modify_meta_data (
23
+ manifest_file: 'src/main/AndroidManifest.xml',
24
+ meta_info: {
25
+ 'WEIXIN_APP_ID' => weixin_app_id,
26
+ 'BUGLY_APPID' => bugly_app_id
27
+ }
28
+ )
29
+
30
+ modify_intent_scheme (
31
+ manifest_file: 'src/main/AndroidManifest.xml',
32
+ scheme: "xingyue"
33
+ )
34
+ ```
24
35
 
25
36
  ## Run tests for this plugin
26
37
 
@@ -0,0 +1,55 @@
1
+ module Fastlane
2
+ module Actions
3
+ class ModifyIntentSchemeAction < Action
4
+ def self.run(params)
5
+ manifest_file = params[:manifest_file]
6
+ scheme = params[:scheme]
7
+
8
+ require 'nokogiri'
9
+ doc = File.open(manifest_file) { |f|
10
+ @doc = Nokogiri::XML(f)
11
+
12
+ @doc.css("intent-filter data").each do |response_node|
13
+ response_node["android:scheme"] = scheme
14
+ end
15
+
16
+ File.write(manifest_file, @doc.to_xml)
17
+ }
18
+ end
19
+
20
+ def self.available_options
21
+ [
22
+ FastlaneCore::ConfigItem.new(key: :manifest_file,
23
+ description: "Path of AndroidManifest.xml",
24
+ optional: false,
25
+ type: String),
26
+ FastlaneCore::ConfigItem.new(key: :scheme,
27
+ description: "scheme",
28
+ optional: false,
29
+ type: String)
30
+ ]
31
+ end
32
+
33
+ def self.description
34
+ "edit scheme data of intent-filter in AndroidManifest.xml"
35
+ end
36
+
37
+ def self.authors
38
+ ["任福新"]
39
+ end
40
+
41
+ def self.return_value
42
+ # If your method provides a return value, you can describe here what it does
43
+ end
44
+
45
+ def self.details
46
+ "edit scheme data of intent-filter of application section in AndroidManifest.xml"
47
+ end
48
+
49
+ def self.is_supported?(platform)
50
+ [:android].include?(platform)
51
+ end
52
+
53
+ end
54
+ end
55
+ end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidmanifestEditor
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-androidmanifest_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 任福新
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-28 00:00:00.000000000 Z
11
+ date: 2018-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -160,6 +160,7 @@ files:
160
160
  - README.md
161
161
  - lib/fastlane/plugin/androidmanifest_editor.rb
162
162
  - lib/fastlane/plugin/androidmanifest_editor/actions/androidmanifest_editor_action.rb
163
+ - lib/fastlane/plugin/androidmanifest_editor/actions/modify_intent_scheme.rb
163
164
  - lib/fastlane/plugin/androidmanifest_editor/actions/modify_meta_data.rb
164
165
  - lib/fastlane/plugin/androidmanifest_editor/helper/androidmanifest_editor_helper.rb
165
166
  - lib/fastlane/plugin/androidmanifest_editor/version.rb