Skip to content

Commit

Permalink
Merge pull request RafaelBarbosatec#572 from RafaelBarbosatec/develop
Browse files Browse the repository at this point in the history
Version 3.12.5
  • Loading branch information
RafaelBarbosatec authored Jan 2, 2025
2 parents b97a534 + 9e67a95 commit 6c26567
Show file tree
Hide file tree
Showing 185 changed files with 1,754 additions and 2,626 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish plugin

on:
release:
types: [published]
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'

jobs:
publish:
Expand Down
49 changes: 27 additions & 22 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,34 @@
name: unit-tests
name: Code Quality

on:
push:
branches:
- master
- main
pull_request:
types: [opened,ready_for_review,synchronize]

jobs:
test-analyze:
name: Lint and Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-12]
if: github.event.pull_request.draft == false
format-and-fix:
if: ${{ !github.event.pull_request.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Intall dart
uses: dart-lang/setup-dart@v1
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter pub get
- run: flutter analyze
- run: dart format --output=none --set-exit-if-changed .
- name: Checkout
uses: actions/checkout@v2

- name: Intall dart
uses: dart-lang/setup-dart@v1

- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true

- name: Get packages
run: flutter pub get

- name: Check format errors
run: dart format --output=none --set-exit-if-changed .

# - name: Check lint errors
# run: flutter analyze .
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 3.12.5
- Update `a_star_algorithm`.
- InitialMapZoomFitEnum improvements

# 3.12.4
- Switched to declarative mode to apply Grandle plugins

# 3.12.3
- `RandomMovement` improvements

Expand Down
41 changes: 13 additions & 28 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
include: package:flame_lint/analysis_options.yaml

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at
# https://dart-lang.github.io/linter/lints/index.html.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
analyzer:
errors:
avoid_bool_literals_in_conditional_expressions: ignore
avoid_catches_without_on_clauses: ignore
avoid_positional_boolean_parameters: ignore
comment_references: ignore
lines_longer_than_80_chars: ignore
type_literal_in_constant_pattern: ignore
use_if_null_to_convert_nulls_to_bools: ignore
use_setters_to_change_properties: ignore
exclude:
- 'example/**'
12 changes: 6 additions & 6 deletions example/.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
revision: "8495dee1fd4aacbe9de707e7581203232f591b2f"
channel: "stable"

project_type: app
Expand All @@ -13,11 +13,11 @@ project_type: app
migration:
platforms:
- platform: root
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: web
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
- platform: linux
create_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f
base_revision: 8495dee1fd4aacbe9de707e7581203232f591b2f

# User provided section

Expand Down
16 changes: 7 additions & 9 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
Expand All @@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
}
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
Expand All @@ -21,9 +22,7 @@ if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"


android {
namespace "com.bonfire.example"
Expand Down Expand Up @@ -68,5 +67,4 @@ flutter {
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
13 changes: 0 additions & 13 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}

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

allprojects {
repositories {
google()
Expand Down
30 changes: 22 additions & 8 deletions example/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
include ':app'
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()

def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
def properties = new Properties()
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

assert localPropertiesFile.exists()
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "7.3.0" apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}

include ":app"
34 changes: 0 additions & 34 deletions example/ios/.gitignore

This file was deleted.

26 changes: 0 additions & 26 deletions example/ios/Flutter/AppFrameworkInfo.plist

This file was deleted.

2 changes: 0 additions & 2 deletions example/ios/Flutter/Debug.xcconfig

This file was deleted.

2 changes: 0 additions & 2 deletions example/ios/Flutter/Release.xcconfig

This file was deleted.

44 changes: 0 additions & 44 deletions example/ios/Podfile

This file was deleted.

22 changes: 0 additions & 22 deletions example/ios/Podfile.lock

This file was deleted.

Loading

0 comments on commit 6c26567

Please sign in to comment.