pantograph 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/pantograph/lib/pantograph/actions/default_platform.rb +1 -1
- data/pantograph/lib/pantograph/lane_manager.rb +1 -1
- data/pantograph/lib/pantograph/setup/setup.rb +12 -12
- data/pantograph/lib/pantograph/setup/{setup_android.rb → setup_gradle.rb} +12 -17
- data/pantograph/lib/pantograph/supported_platforms.rb +1 -1
- data/pantograph/lib/pantograph/version.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e288a54d6bba1f3778ab986a22cc6c2ca2a61cf56b109cb1d15611bf5eb1edd
|
4
|
+
data.tar.gz: 66973b04e3fc8dc45f2e67e0cfa3b20a43122d3a03a66b768332fccef95774d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2182a1d655f7391e8940a4d8205d159d1aeab24c0de430cbe3bf8ccfeae7b65fead4b9ea4dfd3297c0013218a1a8809e51e6b6336f34ff911d22ba8f4248504
|
7
|
+
data.tar.gz: f738e6d9c3d2ddfcacbbed297b1db7d3a40d72f5090826fc35c57c588bec33e69b1bcb481e053ad32aae41ddedab1087add2c5a181e997e14ec7b455467049fd
|
@@ -46,7 +46,7 @@ module Pantograph
|
|
46
46
|
# and not return to the original working directory
|
47
47
|
# https://github.com/CocoaPods/Xcodeproj/issues/426
|
48
48
|
# Setting this environment variable causes xcodeproj to work around the problem
|
49
|
-
ENV["FORK_XCODE_WRITING"] = "true"
|
49
|
+
ENV["FORK_XCODE_WRITING"] = "true" if platform == 'ios'
|
50
50
|
|
51
51
|
Pantograph::Helper::DotenvHelper.load_dot_env(env)
|
52
52
|
|
@@ -2,7 +2,7 @@ require "tty-spinner"
|
|
2
2
|
|
3
3
|
module Pantograph
|
4
4
|
class Setup
|
5
|
-
# :ios or :
|
5
|
+
# :ios or :gradle
|
6
6
|
attr_accessor :platform
|
7
7
|
|
8
8
|
# Path to the xcodeproj or xcworkspace
|
@@ -44,7 +44,7 @@ module Pantograph
|
|
44
44
|
# this is used by e.g. configuration.rb to not show warnings when running produce
|
45
45
|
ENV["PANTOGRAPH_ONBOARDING_IN_PROCESS"] = 1.to_s
|
46
46
|
|
47
|
-
spinner = TTY::Spinner.new("[:spinner] Looking for iOS and
|
47
|
+
spinner = TTY::Spinner.new("[:spinner] Looking for iOS and Gradle projects in current directory...", format: :dots)
|
48
48
|
spinner.auto_spin
|
49
49
|
|
50
50
|
maven_projects = Dir["**/pom.xml"]
|
@@ -56,7 +56,7 @@ module Pantograph
|
|
56
56
|
|
57
57
|
# Currently we prefer iOS app projects, as the `init` process is
|
58
58
|
# more intelligent and does more things. The user can easily add
|
59
|
-
# the `:
|
59
|
+
# the `:gradle` platform to the resulting Pantfile
|
60
60
|
if maven_projects.count > 0
|
61
61
|
current_directory = maven_projects.find_all do |current_project_path|
|
62
62
|
current_project_path.split(File::Separator).count == 1
|
@@ -91,11 +91,11 @@ module Pantograph
|
|
91
91
|
had_multiple_projects_to_choose_from: had_multiple_projects_to_choose_from
|
92
92
|
).setup_ios
|
93
93
|
elsif gradle_projects.count > 0
|
94
|
-
UI.message("Detected an
|
95
|
-
|
94
|
+
UI.message("Detected an gradle project in the current directory...")
|
95
|
+
SetupGradle.new.setup_gradle
|
96
96
|
else
|
97
|
-
UI.error("No iOS or
|
98
|
-
UI.error("Make sure to `cd` into the directory containing your iOS or
|
97
|
+
UI.error("No iOS or gradle projects were found in directory '#{Dir.pwd}'")
|
98
|
+
UI.error("Make sure to `cd` into the directory containing your iOS or Gradle app")
|
99
99
|
if UI.confirm("Alternatively, would you like to manually setup a pantograph config in the current directory instead?")
|
100
100
|
SetupIos.new(
|
101
101
|
user: user,
|
@@ -254,13 +254,13 @@ module Pantograph
|
|
254
254
|
|
255
255
|
def suggest_next_steps
|
256
256
|
UI.header("Where to go from here?")
|
257
|
-
if self.platform == :
|
257
|
+
if self.platform == :gradle
|
258
258
|
UI.message("📸 Learn more about how to automatically generate localized Google Play screenshots:")
|
259
|
-
UI.message("\t\thttps://docs.pantograph.tools/getting-started/
|
259
|
+
UI.message("\t\thttps://docs.pantograph.tools/getting-started/gradle/screenshots/".cyan)
|
260
260
|
UI.message("👩✈️ Learn more about distribution to beta testing services:")
|
261
|
-
UI.message("\t\thttps://docs.pantograph.tools/getting-started/
|
261
|
+
UI.message("\t\thttps://docs.pantograph.tools/getting-started/gradle/beta-deployment/".cyan)
|
262
262
|
UI.message("🚀 Learn more about how to automate the Google Play release process:")
|
263
|
-
UI.message("\t\thttps://docs.pantograph.tools/getting-started/
|
263
|
+
UI.message("\t\thttps://docs.pantograph.tools/getting-started/gradle/release-deployment/".cyan)
|
264
264
|
else
|
265
265
|
UI.message("📸 Learn more about how to automatically generate localized App Store screenshots:")
|
266
266
|
UI.message("\t\thttps://docs.pantograph.tools/getting-started/ios/screenshots/".cyan)
|
@@ -287,4 +287,4 @@ module Pantograph
|
|
287
287
|
end
|
288
288
|
|
289
289
|
require 'pantograph/setup/setup_ios'
|
290
|
-
require 'pantograph/setup/
|
290
|
+
require 'pantograph/setup/setup_gradle'
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Pantograph
|
2
|
-
class
|
2
|
+
class SetupGradle < Setup
|
3
3
|
attr_accessor :json_key_file
|
4
4
|
attr_accessor :package_name
|
5
5
|
|
6
|
-
def
|
7
|
-
self.platform = :
|
6
|
+
def setup_gradle
|
7
|
+
self.platform = :maven
|
8
8
|
|
9
9
|
welcome_to_pantograph
|
10
10
|
|
@@ -15,28 +15,23 @@ module Pantograph
|
|
15
15
|
PantographCore::PantographFolder.create_folder!
|
16
16
|
|
17
17
|
self.append_lane([
|
18
|
-
"desc \"Runs all the
|
18
|
+
"desc \"Runs all the tests\"",
|
19
19
|
"lane :test do",
|
20
|
-
" gradle(task: \"test\")",
|
20
|
+
" gradle(task: \"clean test\")",
|
21
21
|
"end"
|
22
22
|
])
|
23
23
|
|
24
24
|
self.append_lane([
|
25
|
-
"desc \"
|
26
|
-
"lane :
|
27
|
-
" gradle(task: \"clean
|
28
|
-
" crashlytics",
|
29
|
-
"",
|
30
|
-
" # sh \"your_script.sh\"",
|
31
|
-
" # You can also use other beta testing services here",
|
25
|
+
"desc \"Publish new version to Artifactory\"",
|
26
|
+
"lane :build do",
|
27
|
+
" gradle(task: \"clean build\")",
|
32
28
|
"end"
|
33
29
|
])
|
34
30
|
|
35
31
|
self.append_lane([
|
36
|
-
"desc \"Deploy a new version to
|
37
|
-
"lane :
|
38
|
-
" gradle(task: \"clean
|
39
|
-
" upload_to_play_store",
|
32
|
+
"desc \"Deploy a new version to Artifactory\"",
|
33
|
+
"lane :publish do",
|
34
|
+
" gradle(task: \"clean artifactoryPublish\")",
|
40
35
|
"end"
|
41
36
|
])
|
42
37
|
|
@@ -56,7 +51,7 @@ module Pantograph
|
|
56
51
|
end
|
57
52
|
|
58
53
|
def finish_up
|
59
|
-
self.pantfile_content.gsub!(":ios", ":
|
54
|
+
self.pantfile_content.gsub!(":ios", ":maven")
|
60
55
|
|
61
56
|
super
|
62
57
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pantograph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Knapp
|
@@ -750,7 +750,7 @@ dependencies:
|
|
750
750
|
- - "~>"
|
751
751
|
- !ruby/object:Gem::Version
|
752
752
|
version: 0.2.0
|
753
|
-
description:
|
753
|
+
description: A way to automate your apps
|
754
754
|
email:
|
755
755
|
- knappj2@gmail.com
|
756
756
|
executables:
|
@@ -907,7 +907,7 @@ files:
|
|
907
907
|
- pantograph/lib/pantograph/server/socket_server.rb
|
908
908
|
- pantograph/lib/pantograph/server/socket_server_action_command_executor.rb
|
909
909
|
- pantograph/lib/pantograph/setup/setup.rb
|
910
|
-
- pantograph/lib/pantograph/setup/
|
910
|
+
- pantograph/lib/pantograph/setup/setup_gradle.rb
|
911
911
|
- pantograph/lib/pantograph/setup/setup_ios.rb
|
912
912
|
- pantograph/lib/pantograph/shells.rb
|
913
913
|
- pantograph/lib/pantograph/supported_platforms.rb
|
@@ -983,5 +983,5 @@ requirements: []
|
|
983
983
|
rubygems_version: 3.0.6
|
984
984
|
signing_key:
|
985
985
|
specification_version: 4
|
986
|
-
summary:
|
986
|
+
summary: A way to automate your apps
|
987
987
|
test_files: []
|