Skip to content
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
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
12 changes: 12 additions & 0 deletions .idea/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"[dart]": {
"editor.rulers": [
100
],
"editor.formatOnSave": true
},
"dart.lineLength": 100
}
19 changes: 13 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
## 0.2.0

* update SDK constraints.
* updates documentation.
* adds tests.
* adds .vscode and .idea IDE configuration settings.

## 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! 🎉
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
39 changes: 18 additions & 21 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
group 'com.victorblaess.native_flutter_proxy'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
}

rootProject.allprojects {
allprojects {
repositories {
gradlePluginPortal()
google()
jcenter()
mavenCentral()
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
group 'com.victorblaess.native_flutter_proxy'

android {
compileSdkVersion 28

namespace 'com.victorblaess.native_flutter_proxy'
compileSdk 33

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand All @@ -40,5 +36,6 @@ android {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$KotlinVersion"
implementation "org.jetbrains.kotlin:kotlin-reflect:$KotlinVersion"
}
3 changes: 2 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
AGPVersion=7.4.2
KotlinVersion=1.8.22
Binary file added android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.2-all.zip
Loading