Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
03edaf6
Updates to 0.2.0
cgutierr-zgz Mar 6, 2025
ef984e8
Add support for higher AGP versions and fixes android build error
cgutierr-zgz Mar 6, 2025
9fefb7d
Updates android config and documents code
cgutierr-zgz Mar 6, 2025
99c82af
Merge pull request #5 from cgutierr-zgz/master
vicdotdevelop Mar 24, 2025
a4ac538
fix android build
Shakle Mar 27, 2025
f89d3ff
Merge pull request #6 from vicdotdevelop/fix
vicdotdevelop Mar 27, 2025
93b3351
added publish-to-pubdev pipeline
vicdotdevelop Mar 31, 2025
ed6917a
added dry run pre merge pipeline
vicdotdevelop Mar 31, 2025
6c90416
trying fix pre-merge pipeline error
vicdotdevelop Mar 31, 2025
6ee9e87
upgraded flutter version on pipelines to current stable 3.29.0
vicdotdevelop Mar 31, 2025
b79e90d
added run: flutter analyze --no-fatal-warnings to pre-merge
vicdotdevelop Mar 31, 2025
29e3f67
changed format check to dart format check instead of deprecated versi…
vicdotdevelop Mar 31, 2025
2454e39
ran dart format
vicdotdevelop Mar 31, 2025
c6b8301
added trailing commas, fixed findings by analyzer
vicdotdevelop Mar 31, 2025
d13d5da
fixed more findings from flutter analyze
vicdotdevelop Mar 31, 2025
cc9ec3d
another try of pipeline
vicdotdevelop Mar 31, 2025
2cbca85
formatted
vicdotdevelop Mar 31, 2025
aaac275
added pubignore file
vicdotdevelop Mar 31, 2025
70c6719
deleted vscode folder & idea folder
vicdotdevelop Mar 31, 2025
055f5f9
changed to simple dry run command
vicdotdevelop Mar 31, 2025
5e56652
Merge pull request #7 from vicdotdevelop/feature/deployment-pipeline
vicdotdevelop Mar 31, 2025
a7ba8f3
deleted travis ci
vicdotdevelop Mar 31, 2025
ce8de80
Merge pull request #8 from vicdotdevelop/feature/delete-travis-ci
vicdotdevelop Mar 31, 2025
536978e
added version 0.2.0 changelog entries
vicdotdevelop Mar 31, 2025
9c7923c
Merge pull request #9 from vicdotdevelop/feature/changelog
vicdotdevelop Mar 31, 2025
050cd11
changed readme, changelog and pubspec
vicdotdevelop Mar 31, 2025
8e555c2
Merge pull request #10 from vicdotdevelop/feature/update-readme
vicdotdevelop Mar 31, 2025
4f6e5f7
version 0.2.2
vicdotdevelop Mar 31, 2025
702afab
Merge pull request #11 from vicdotdevelop/feature/version-update
vicdotdevelop Mar 31, 2025
f8ac72a
changed deployment pipeline
vicdotdevelop Apr 1, 2025
70092d6
Merge pull request #12 from vicdotdevelop/feature/update-deployment-p…
vicdotdevelop Apr 1, 2025
ac65c62
increased version to 2.2.3
vicdotdevelop Apr 1, 2025
1f22aa8
Merge pull request #13 from vicdotdevelop/feature/increase-version-2-2-3
vicdotdevelop Apr 1, 2025
f6f4284
docs: add a pub.dev badge to README
ManuelRauber Apr 1, 2025
8e0eec4
Merge pull request #14 from ManuelRauber/patch-1
vicdotdevelop Apr 3, 2025
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
62 changes: 62 additions & 0 deletions .github/workflows/pre-merge-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Pre-merge checks

on:
pull_request:
branches:
- main
- master
push:
branches:
- main
- master

jobs:
test-publish:
runs-on: ubuntu-latest

steps:
# Checkout repository
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

# Set up Flutter
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.29.0' # Specify exact version instead of just 'stable'
channel: 'stable'

# Cache Flutter dependencies to speed up workflow
- name: Cache Flutter dependencies
uses: actions/cache@v3
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.yaml') }}
restore-keys: |
${{ runner.os }}-pub-

# Install dependencies
- name: Install dependencies
run: flutter pub get

# Run tests
- name: Run tests
run: flutter test

# Static code analysis
- name: Analyze code
run: flutter analyze --no-fatal-warnings

# Verify package format is correct
- name: Format check
run: dart format --set-exit-if-changed .

# Verify package
- name: Verify package
run: flutter pub publish --dry-run

# Check if package can be published
- name: Check publication readiness
run: flutter pub publish --dry-run
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-pubdev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .github/workflows/publish.yml
name: Publish to pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # tag pattern on pub.dev: 'v{{version}'

# Publish using custom workflow
jobs:
publish:
permissions:
id-token: write # Required for authentication using OIDC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.29.2'
channel: 'stable'
- name: Install dependencies 📦
run: flutter pub get
- name: Analyze 🔍
run: flutter analyze
- name: Check Publish Warnings 🙏🏽
run: dart pub publish --dry-run
- name: Clean example project 🧹
run: cd example && flutter clean .
- uses: dart-lang/setup-dart@v1
- name: Publish
run: flutter pub publish --force
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@

build/

coverage/

# IntelliJ related
.idea/
.vscode/
!.idea/codeStyleConfig.xml

# Visual Studio Code related
.vscode/
!/.vscode/settings.json
23 changes: 23 additions & 0 deletions .pubignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.dart_tool/
.idea/
.vscode/
build/
.packages
pubspec.lock
.DS_Store
.pub/
.git/
.github/
.gitignore
.travis/
.travis.yml
test/
android/.idea
example/build/
example/.dart_tool/
example/.packages
example/pubspec.lock

# Don't exclude these files even though they are in .gitignore
!.idea/codeStyleConfig.xml
!.vscode/settings.json
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .travis/publish.sh

This file was deleted.

32 changes: 26 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,43 @@
## 0.2.3

* Minor changes

## 0.2.2

* Minor readme update

## 0.2.1

* Minor readme update

## 0.2.0

* Updated SDK constraints to support newer Dart and Flutter versions.
* Improved documentation with better examples and clearer API descriptions.
* Added comprehensive test suite for better code reliability.
* Fixed several minor bugs and edge cases.
* Optimized performance for proxy settings retrieval.

## 0.1.14

* fix MissingPluginException on Android
* fix MissingPluginException on Android.

## 0.1.13

* dartfrmt fix
* dartfrmt fix.

## 0.1.12

* bug fix
* bug fix.

## 0.1.11

* added example and enhanced null-safety on proxy set
* added example and enhanced null-safety on proxy set.

## 0.1.10

* enhance readme
* enhance readme.

## 0.1.9

* add example
* add example.
25 changes: 25 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Contribution Guide

Feel free to contribute to this project. If you want to contribute, please follow the steps below:

1. Fork the project
2. Commit your changes
3. Create a pull request

Please make sure that your code is well tested.

## Running Tests 🧪

Install lcov:

```sh
brew install lcov
```

Run and open the report using the following command:

```sh
flutter test --coverage --test-randomize-ordering-seed random && genhtml coverage/lcov.info -o coverage/ && open coverage/index.html
```

Everything should be green! 🎉
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Pub Version](https://img.shields.io/pub/v/native_flutter_proxy)](https://pub.dev/packages/native_flutter_proxy)

# native_flutter_proxy

A flutter plugin to read network proxy info from native. It can be used to set up the network proxy for flutter.
Expand All @@ -10,7 +12,7 @@ You should add the following to your `pubspec.yaml` file:

```yaml
dependencies:
native_flutter_proxy: ^0.1.14
native_flutter_proxy: latest
```


Expand Down Expand Up @@ -55,8 +57,4 @@ Android and/or iOS.

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

##Credits

This project was forked from tzh2017 [pub.dev](https://pub.dev/packages/flutter_proxy) and enhance with some custom proxy classes which are making the assignment of proxies more convenient.
samples, guidance on mobile development, and a full API reference.
8 changes: 8 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include: package:very_good_analysis/analysis_options.yaml

formatter:
page_width: 100

linter:
rules:
lines_longer_than_80_chars: false
44 changes: 0 additions & 44 deletions android/build.gradle

This file was deleted.

Loading