Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for v1.0.0 #1

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions .circleci/config.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
time: "08:00"
timezone: "America/New_York"
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy
on:
workflow_dispatch
permissions:
id-token: write
contents: write

jobs:
deploy:
environment: deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: ruby

- name: Install dependencies
run: bundle check || bundle install --jobs=4 --retry=3 --path vendor/bundle

- uses: rubygems/release-gem@v1
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Test

on:
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.7.7

- name: Run tests
run: bundle exec rake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: test-results
path: test-results
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ fastlane/README.md
fastlane/report.xml
coverage
test-results

# IDEs
.idea
162 changes: 91 additions & 71 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
---
require:
- rubocop/require_tools
- rubocop-performance
AllCops:
TargetRubyVersion: 2.6
NewCops: enable
Include:
- "**/*.rb"
- "**/*file"
- "**/*.gemspec"
- "*/lib/assets/*Template"
- "*/lib/assets/*TemplateAndroid"
Exclude:
- "**/lib/assets/custom_action_template.rb"
- "./vendor/**/*"
- "**/lib/assets/DefaultFastfileTemplate"
- "**/lib/assets/MatchfileTemplate"
- "**/spec/fixtures/broken_files/broken_file.rb"
- "**/*.provisionprofile"
Lint/ErbNewArguments:
Enabled: false
Style/SlicingWithRange:
Enabled: false
Style/MultipleComparison:
Enabled: false
Style/PercentLiteralDelimiters:
Expand All @@ -19,51 +42,50 @@ Metrics/BlockLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Style/VariableNumber:
Naming/VariableNumber:
Enabled: false
Style/MethodMissing:
Style/MissingRespondToMissing:
Enabled: false
MultilineBlockChain:
Style/MultilineBlockChain:
Enabled: false
Style/NumericLiteralPrefix:
Enabled: false
Style/TernaryParentheses:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/BracesAroundHashParameters:
Enabled: false
Lint/UselessAssignment:
Exclude:
- "**/spec/**/*"
- "**/spec/**/*"
Require/MissingRequireStatement:
Exclude:
- "**/spec/**/*.rb"
- "**/spec_helper.rb"
- spaceship/lib/spaceship/babosa_fix.rb
- "**/Fastfile"
- "**/*.gemspec"
- rakelib/**/*
- "**/*.rake"
- "**/Rakefile"
- fastlane/**/*
- supply/**/*
Layout/IndentHash:
Enabled: false
Layout/AlignHash:
- "**/spec/**/*.rb"
- "**/spec_helper.rb"
- spaceship/lib/spaceship/babosa_fix.rb
- fastlane_core/lib/fastlane_core/ui/disable_colors.rb
- "**/Fastfile"
- "**/*.gemspec"
- rakelib/**/*
- "**/*.rake"
- "**/Rakefile"
- fastlane/**/*
- supply/**/*
Layout/FirstHashElementIndentation:
Enabled: false
Layout/HashAlignment:
Enabled: false
Layout/DotPosition:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/SymbolArray:
Enabled: false
Layout/IndentHeredoc:
Layout/HeredocIndentation:
Enabled: false
Style/MixinGrouping:
Exclude:
- "**/spec/**/*"
Lint/HandleExceptions:
- "**/spec/**/*"
Lint/SuppressedException:
Enabled: false
Lint/UnusedBlockArgument:
Enabled: false
Expand Down Expand Up @@ -94,16 +116,16 @@ Style/AndOr:
EnforcedStyle: conditionals
Metrics/ClassLength:
Max: 320
Metrics/LineLength:
Layout/LineLength:
Max: 370
Metrics/ParameterLists:
Max: 17
Metrics/PerceivedComplexity:
Max: 18
Style/GuardClause:
Enabled: false
Style/StringLiterals:
Enabled: false
Style/QuotedSymbols:
Enabled: false
Style/ConditionalAssignment:
Enabled: false
Style/RedundantSelf:
Expand All @@ -112,34 +134,26 @@ Lint/UnusedMethodArgument:
Enabled: false
Lint/ParenthesesAsGroupedExpression:
Exclude:
- "**/spec/**/*"
Style/PredicateName:
- "**/spec/**/*"
Naming/PredicateName:
Enabled: false
Style/PerlBackrefs:
Enabled: false
Layout/SpaceAroundOperators:
Exclude:
- "**/spec/actions_specs/xcodebuild_spec.rb"
AllCops:
TargetRubyVersion: 2.0
Include:
- "*/lib/assets/*Template"
- "*/lib/assets/*TemplateAndroid"
- "**/spec/actions_specs/xcodebuild_spec.rb"
Naming/FileName:
Exclude:
- "**/lib/assets/custom_action_template.rb"
- "./vendor/**/*"
- "**/lib/assets/DefaultFastfileTemplate"
Style/FileName:
Exclude:
- "**/Dangerfile"
- "**/Brewfile"
- "**/Gemfile"
- "**/Podfile"
- "**/Rakefile"
- "**/Fastfile"
- "**/Deliverfile"
- "**/Snapfile"
- "**/*.gemspec"
- "**/Dangerfile"
- "**/Brewfile"
- "**/Gemfile"
- "**/Podfile"
- "**/Rakefile"
- "**/Fastfile"
- "**/Deliverfile"
- "**/Snapfile"
- "**/Pluginfile"
- "**/*.gemspec"
Style/Documentation:
Enabled: false
Style/MutableConstant:
Expand All @@ -150,29 +164,35 @@ Style/IfInsideElse:
Enabled: false
Style/CollectionMethods:
Enabled: false
CrossPlatform/ForkUsage:
Exclude:
- "**/plugins/template/**/*"
Style/MethodCallWithArgsParentheses:
Enabled: true
IgnoredMethods:
- require
- require_relative
- fastlane_require
- gem
- program
- command
- raise
- attr_accessor
- attr_reader
- desc
- lane
- private_lane
- platform
- to
- describe
- it
- be
- context
- before
- after
AllowedMethods:
- require
- require_relative
- fastlane_require
- gem
- program
- command
- raise
- attr_accessor
- attr_reader
- desc
- lane
- private_lane
- platform
- to
- not_to
- describe
- it
- be
- context
- before
- after
Bundler/OrderedGems:
Enabled: true
TreatCommentsAsGroupSeparators: false
Gemspec/DevelopmentDependencies:
Enabled: true
EnforcedStyle: Gemfile
Metrics/PerceivedComplexity:
Max: 10
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,16 @@ source('https://rubygems.org')

gemspec

# Add development dependencies here
gem 'fastlane', '>= 2.225.0'
gem 'pry'
gem 'rake'
gem 'rspec'
gem 'rspec_junit_formatter'
gem 'rubocop', '1.50.2'
gem 'rubocop-performance'
gem 'rubocop-require_tools'
gem 'simplecov'

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# rename_android_package plugin
# rename_android fastlane plugin
_Forked from [joshdholtz/fastlane-plugin-rename_android_package](https://github.com/joshdholtz/fastlane-plugin-rename_android_package) due to abandonment._

[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-rename_android_package)
[![Gem Version](https://badge.fury.io/rb/fastlane-plugin-rename_android.svg)](https://badge.fury.io/rb/fastlane-plugin-rename_android)

## Getting Started

This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-rename_android_package`, add it to your project by running:
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-rename_android`, add it to your project by running:

```bash
fastlane add_plugin rename_android_package
fastlane add_plugin rename_android
```

## About rename_android_package

Renames Android package
## About rename_android

Renames Android package for .java, .kt, AndroidManifest.xml, and build.gradle files

## Example

Expand Down
Loading