fastlane-plugin-cordova 0.1.4 → 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: 01367d8fc87df145444b833a4d0049f986b4d7a6
4
- data.tar.gz: 0a4c8f8226cfe32c6a499e18fa7aad1f170e583f
3
+ metadata.gz: b1ac4cf5e05ba35ef574978b52da40235f4a48ce
4
+ data.tar.gz: 6b0f56e0764c4598b52aa3e32e5bc4bd535e42ff
5
5
  SHA512:
6
- metadata.gz: 2982080dc2ffe94e6d0dacc50c91c833e3f9f229ff190aaa31a284c07af598fedb7b5e9695067d5dc0c5b077d88394446715ef7b38c6772a1a5e9bbb5b98f398
7
- data.tar.gz: 9be3e7d8e98b8cd8ce18426b3d036f4c37727b67d14d4f6af02aebe1e07713004f45b5b3accd4e8e3866f516e57e1579aba7782f1dc3c480ba646fb7cb826e17
6
+ metadata.gz: 99108105293a031932157725d8bb7d2de5952df3c1051e919b48233333ce633a82259c87453c09ded9e3f0fb636186158b7076267a817d7a54327cf084379ade
7
+ data.tar.gz: 2b2e0e922918348e5c6256ee32695b34750183a650fb8d899cfd3e0f23591387da414e264f5ae00924b991b5394829246f37a2e0fcc62eb98d4c89883e8c26bc
data/README.md CHANGED
@@ -2,6 +2,11 @@
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-cordova)
4
4
 
5
+ ## Features
6
+
7
+ - Build your Cordova project inside a lane
8
+ - Automatically handle code signing on iOS, even for XCode 8
9
+
5
10
  ## Getting Started
6
11
 
7
12
  This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-cordova`, add it to your project by running:
@@ -41,9 +46,26 @@ end
41
46
  with an `Appfile` such as
42
47
 
43
48
  ```ruby
44
- app_identifier com.awesome.app
45
- apple_id apple@id.com
46
- team_id 28323HT
49
+ app_identifier "com.awesome.app"
50
+ apple_id "apple@id.com"
51
+ team_id "28323HT"
52
+ ```
53
+
54
+ If using **Crosswalk**, replace `supply(apk: ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'])` by:
55
+ ```
56
+ supply(
57
+ apk_paths: [
58
+ 'platforms/android/build/outputs/apk/android-armv7-release.apk',
59
+ 'platforms/android/build/outputs/apk/android-x86-release.apk'
60
+ ],
61
+ )
62
+ ```
63
+
64
+ ## Plugin API
65
+
66
+ To check what's available in the plugin, install it in a project and run at the root of the project:
67
+ ```
68
+ fastlane actions cordova
47
69
  ```
48
70
 
49
71
  ## Run tests for this plugin
@@ -76,17 +76,18 @@ module Fastlane
76
76
  sh "cordova build #{params[:platform]} --#{prod}#{device} #{ios_args} -- #{android_args}"
77
77
  end
78
78
 
79
- def self.set_build_paths()
79
+ def self.set_build_paths(is_release)
80
80
  app_name = self.get_app_name()
81
-
82
- ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'] = "./platforms/android/build/outputs/apk/android-release.apk"
81
+ build_type = is_release ? 'release' : 'debug'
82
+
83
+ ENV['CORDOVA_ANDROID_RELEASE_BUILD_PATH'] = "./platforms/android/build/outputs/apk/android-#{build_type}.apk"
83
84
  ENV['CORDOVA_IOS_RELEASE_BUILD_PATH'] = "./platforms/ios/build/device/#{app_name}.ipa"
84
85
  end
85
86
 
86
87
  def self.run(params)
87
88
  self.check_platform(params[:platform])
88
89
  self.build(params)
89
- self.set_build_paths()
90
+ self.set_build_paths(params[:release])
90
91
  end
91
92
 
92
93
  #####################################################
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Cordova
3
- VERSION = "0.1.4"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-cordova
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Almouro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-10 00:00:00.000000000 Z
11
+ date: 2017-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry