Skip to content

Commit

Permalink
CD via Fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Mar 30, 2024
1 parent 79f8521 commit 85d77fd
Show file tree
Hide file tree
Showing 3,974 changed files with 647,173 additions and 1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
30 changes: 30 additions & 0 deletions .github/workflows/flutter_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
- name: Download pub dependencies
run: flutter pub get

- name: Upgrade pub dependencies
run: flutter pub upgrade

- name: Run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs

Expand Down Expand Up @@ -100,6 +103,33 @@ jobs:
with:
files: ${{ vars.LINUX_BUILD_PATH }}/${{ env.LINUX_ZIP }}

- name: Build Android App Bundle
run: flutter build appbundle --flavor store

- name: 'Setup Ruby, JRuby and TruffleRuby'
uses: ruby/[email protected]
with:
ruby-version: 3.1.2

- name: Cache bundle dependencies
uses: actions/cache@v2
with:
path: vendor/bundle
key: '${{ runner.os }}-gems-${{ hashFiles(''**/Gemfile.lock'') }}'
restore-keys: '${{ runner.os }}-gems-'

- name: Download bundle dependencies
run: |
gem install bundler:2.3.20
bundle config path vendor/bundle
bundle install
- name: Release to Google Play
env:
SUPPLY_PACKAGE_NAME: '${{ secrets.ANDROID_PACKAGE_NAME }}'
SUPPLY_JSON_KEY_DATA: '${{ secrets.GOOGLE_SERVICE_ACCOUNT_KEY }}'
run: bundle exec fastlane android deploy

release-macos:
runs-on: macos-latest
env:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ jobs:
build-runner-
- name: Download pub dependencies
run: flutter pub get
- name: Upgrade pub dependencies
run: flutter pub upgrade
- name: Run build_runner
run: flutter pub run build_runner build --delete-conflicting-outputs
- name: Run analyzer
Expand Down
3 changes: 3 additions & 0 deletions android/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
2 changes: 2 additions & 0 deletions android/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
json_key_file("/Users/paras/Development/keys/pc-api-8425228000688621147-853-39b50356df30.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("org.fsociety.vernet.store") # e.g. com.krausefx.app
36 changes: 36 additions & 0 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:android)

platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end

desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
upload_to_play_store(track: 'beta', aab: '../build/app/outputs/bundle/storeRelease/app-store-release.aab')

# sh "your_script.sh"
# You can also use other beta testing services here
end

desc "Deploy a new version to the Google Play"
lane :deploy do
upload_to_play_store(aab: '../build/app/outputs/bundle/storeRelease/app-store-release.aab')
end
end
48 changes: 48 additions & 0 deletions android/fastlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
fastlane documentation
----

# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```sh
xcode-select --install
```

For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)

# Available Actions

## Android

### android test

```sh
[bundle exec] fastlane android test
```

Runs all the tests

### android beta

```sh
[bundle exec] fastlane android beta
```

Submit a new Beta Build to Crashlytics Beta

### android deploy

```sh
[bundle exec] fastlane android deploy
```

Deploy a new version to the Google Play

----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.

More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).

The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Only host scanner, port scanner and ping is supported.
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DNS Lookup added and minor improvements
2 changes: 2 additions & 0 deletions android/fastlane/metadata/android/en-US/changelogs/11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Significant search speed improvement to host and port scanning.
Host Name for devices added on platform Linux and iOS.
2 changes: 2 additions & 0 deletions android/fastlane/metadata/android/en-US/changelogs/13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Play store release to beta using GHA
Added mdns search
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Release build artifacts using GHA
2 changes: 2 additions & 0 deletions android/fastlane/metadata/android/en-US/changelogs/15.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Bug fixes and improvements
network_tools updated to v3.2.1
2 changes: 2 additions & 0 deletions android/fastlane/metadata/android/en-US/changelogs/16.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Upgraded network_tools to v4.0.1
Mac address support added for Desktop
3 changes: 3 additions & 0 deletions android/fastlane/metadata/android/en-US/changelogs/17.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fixed full port scan freeze issue.
Theme and framework update.
Minor bug fixes and improvements.
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/18.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Follow system theme added and bug fixes
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/19.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Many improvements and bug fixes
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fastlane added and other minor fixes
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hard code versioning removed from settings page
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changelogs are now maintained in fastlane folder
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Unnecessary ACCESS_COARSE_LOCATION permission removed.
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ISP details added and minor improvements
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bug Fixes and Improvements
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/changelogs/8.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GeoLocation API updated and speed test via browser added
6 changes: 6 additions & 0 deletions android/fastlane/metadata/android/en-US/changelogs/9.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1. Check for updates added.
2. Now ping works even when not connected to internet.
3. Now you can select ports to scan in different types(top, range, popular).
4. Open ports window can take domain as a input.

Other bug fixes and major improvements
9 changes: 9 additions & 0 deletions android/fastlane/metadata/android/en-US/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Vernet - Network Analyzer and monitoring tool.

Features
1. Shows wifi details
2. Scans for devices(or hosts) on network
3. Scans for open ports of target IP
4. Shows ISP details

Vernet is an open source project hosted at github - https://github.com/git-elliot/vernet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Host and Port scanner. Ping IP or domain.
1 change: 1 addition & 0 deletions android/fastlane/metadata/android/en-US/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Vernet - Network Analyzer
Empty file.
18 changes: 18 additions & 0 deletions android/fastlane/report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="fastlane.lanes">




<testcase classname="fastlane.lanes" name="0: default_platform" time="0.00024">

</testcase>


<testcase classname="fastlane.lanes" name="1: upload_to_play_store" time="82.184252">

</testcase>

</testsuite>
</testsuites>
29 changes: 29 additions & 0 deletions android/vendor/bundle/ruby/3.1.0/bin/bin-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'fastlane' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('fastlane', 'bin-proxy', version)
else
gem "fastlane", version
load Gem.bin_path("fastlane", "bin-proxy", version)
end
29 changes: 29 additions & 0 deletions android/vendor/bundle/ruby/3.1.0/bin/commander
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'commander' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('commander', 'commander', version)
else
gem "commander", version
load Gem.bin_path("commander", "commander", version)
end
29 changes: 29 additions & 0 deletions android/vendor/bundle/ruby/3.1.0/bin/dotenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'dotenv' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('dotenv', 'dotenv', version)
else
gem "dotenv", version
load Gem.bin_path("dotenv", "dotenv", version)
end
29 changes: 29 additions & 0 deletions android/vendor/bundle/ruby/3.1.0/bin/fastlane
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'fastlane' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('fastlane', 'fastlane', version)
else
gem "fastlane", version
load Gem.bin_path("fastlane", "fastlane", version)
end
29 changes: 29 additions & 0 deletions android/vendor/bundle/ruby/3.1.0/bin/httpclient
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env ruby
#
# This file was generated by RubyGems.
#
# The application 'httpclient' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

Gem.use_gemdeps

version = ">= 0.a"

str = ARGV.first
if str
str = str.b[/\A_(.*)_\z/, 1]
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('httpclient', 'httpclient', version)
else
gem "httpclient", version
load Gem.bin_path("httpclient", "httpclient", version)
end
Loading

0 comments on commit 85d77fd

Please sign in to comment.