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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '018b4427a06e29a18faebd4c42437f947f5408ab788f7863b4e2409c04d64aba'
4
- data.tar.gz: d4b9c3e4f8d2a8ab2cd7e02ee72b8832b6f22c9324b47fc7b43641538c1bc4e7
3
+ metadata.gz: 6e288a54d6bba1f3778ab986a22cc6c2ca2a61cf56b109cb1d15611bf5eb1edd
4
+ data.tar.gz: 66973b04e3fc8dc45f2e67e0cfa3b20a43122d3a03a66b768332fccef95774d1
5
5
  SHA512:
6
- metadata.gz: 2261f79d8c8e5e4c6cb6466991b132f92fc5a0b30fcd8ff7d478181766d5f42e66be06defa1ecbe7be88d75983b49d5a4070a10f43e529e4584696b29ed9faa2
7
- data.tar.gz: 04c115dfb09681ad777e1ab3440407e73a7aab45c8785c0d44a35c59e3ab7760331ad6184172d0fd0992a1fe76866e93f05b55402a01414338918824ee8e48b9
6
+ metadata.gz: e2182a1d655f7391e8940a4d8205d159d1aeab24c0de430cbe3bf8ccfeae7b65fead4b9ea4dfd3297c0013218a1a8809e51e6b6336f34ff911d22ba8f4248504
7
+ data.tar.gz: f738e6d9c3d2ddfcacbbed297b1db7d3a40d72f5090826fc35c57c588bec33e69b1bcb481e053ad32aae41ddedab1087add2c5a181e997e14ec7b455467049fd
@@ -27,7 +27,7 @@ module Pantograph
27
27
 
28
28
  def self.example_code
29
29
  [
30
- 'default_platform(:android)'
30
+ 'default_platform(:gradle)'
31
31
  ]
32
32
  end
33
33
 
@@ -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" unless platform == 'android'
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 :android
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 Android projects in current directory...", format: :dots)
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 `:android` platform to the resulting Pantfile
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 Android project in the current directory...")
95
- SetupAndroid.new.setup_android
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 Android projects were found in directory '#{Dir.pwd}'")
98
- UI.error("Make sure to `cd` into the directory containing your iOS or Android app")
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 == :android
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/android/screenshots/".cyan)
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/android/beta-deployment/".cyan)
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/android/release-deployment/".cyan)
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/setup_android'
290
+ require 'pantograph/setup/setup_gradle'
@@ -1,10 +1,10 @@
1
1
  module Pantograph
2
- class SetupAndroid < Setup
2
+ class SetupGradle < Setup
3
3
  attr_accessor :json_key_file
4
4
  attr_accessor :package_name
5
5
 
6
- def setup_android
7
- self.platform = :android
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 tests\"",
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 \"Submit a new Beta Build to Crashlytics Beta\"",
26
- "lane :beta do",
27
- " gradle(task: \"clean assembleRelease\")",
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 the Google Play\"",
37
- "lane :deploy do",
38
- " gradle(task: \"clean assembleRelease\")",
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", ":android")
54
+ self.pantfile_content.gsub!(":ios", ":maven")
60
55
 
61
56
  super
62
57
  end
@@ -11,7 +11,7 @@ module Pantograph
11
11
  end
12
12
  end
13
13
 
14
- @default = [:ios, :mac, :android]
14
+ @default = [:ios, :mac, :android, :gradle]
15
15
  @extra = []
16
16
 
17
17
  def self.all
@@ -1,5 +1,5 @@
1
1
  module Pantograph
2
- VERSION = '0.1.0'.freeze
3
- DESCRIPTION = 'The easiest way to automate your apps'.freeze
2
+ VERSION = '0.1.1'.freeze
3
+ DESCRIPTION = 'A way to automate your apps'.freeze
4
4
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
5
5
  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.0
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: The easiest way to automate your apps
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/setup_android.rb
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: The easiest way to automate your apps
986
+ summary: A way to automate your apps
987
987
  test_files: []