Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bertoldofonseca/better_open_file
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: AndreLuizNogueira/better_open_file
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 17 files changed
  • 1 contributor

Commits on Feb 21, 2025

  1. on example app, Upgrade From Imperative mode, Upgrade Packages, Gradl…

    …e, Kotlin, ndkVersion, namespace;
    
    on lib, Upgrade Packages, Gradle, Commented registerWith(PluginRegistry.Registrar registrar);
    AndreLuizNogueira committed Feb 21, 2025
    Copy the full SHA
    59ac27e View commit details
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -6,3 +6,7 @@
pubspec.lock

build/
example/android/.idea/*
example/android/app/.cxx/*
example/ios/Flutter/*
android/.idea/*
78 changes: 78 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,92 +1,170 @@
# Changes

## 3.6.6

on example app, Upgrade From Imperative mode, Upgrade Packages, Gradle, Kotlin, ndkVersion, namespace;
on lib, Upgrade Packages, Gradle, Commented registerWith(PluginRegistry.Registrar registrar);

## 3.6.5

* Fixed import path in readme
* Add namespace to Gradle

## 3.6.4

* Removing android.permission.READ_EXTERNAL_STORAGE from the LIB Manifest.

## 3.6.3

* Pub.dev badge

## 3.6.2

* Fix iOS Pods

## 3.6.1

* Fix iOS Pod name

## 3.6.0

* Bump FFi version to 2.0.1
* Remove dangerous [Android Permission](https://github.com/crazecoder/open_file/issues/201).

## 3.2.1

* Add command parser before create system call [#144](https://github.com/crazecoder/open_file/issues/144) (thanks to [@mludovico](https://github.com/mludovico))
* Fix startActivity() might have NPE issue with filePath on Android (thanks to [@AlexV525](https://github.com/AlexV525))
* Add error type return when file path is nil on iOS

## 3.2.0

* add csv/kml/gpx/torrent support on Android
* remove android:requestLegacyExternalStorage
* fix Deprecated API warning when build on Android
* delete uti, DocumentInteraction will be retrieved automatically on iOS (thanks to [@std-c](https://github.com/std-c))
* fix returns wrong reponse on Windows

## 3.1.0

* upgrade FFI 1.0.0 (thanks to [@mit-mit](https://github.com/mit-mit))
* add linuxByProcess parameter (thanks to [@mx1up](https://github.com/mx1up))
* Migrate to Dart null safety system (thanks to [@orevial](https://github.com/orevial))

## 3.0.3

* upgrade compileSdkVersion

## 3.0.2

* add storage compatibility mode for AndroidQ.
* fix [#106](https://github.com/crazecoder/open_file/issues/106) [#100](https://github.com/crazecoder/open_file/issues/100) [#74](https://github.com/crazecoder/open_file/issues/74)
* fix multiple file providers. (thanks to [@jawa0919](https://github.com/jawa0919))
* Take file extension in lowercase for comparison.(thanks to [@kluverua](https://github.com/kluverua))
* Fixed a typo in the error message for fileNotFound.(thanks to [@sebas642](https://github.com/sebas642))

## 3.0.1

* fix web parameter error
* Replace result value from String to OpenResult.

## 3.0.0

* updated to the v2 Android Plugin APIs
* Distinguish android errors (No APP found and others)
* add web support
* add pc support

## 2.1.1

* rollback 2.0.3

## 2.1.0-pre.1

* add web support(beta)
* add pc support(beta)

## 2.0.3

* change use FileProvider from Android M to Android N

## 2.0.2

* catch No Activity found to handle Intent exception
* Optimize request REQUEST_INSTALL_PACKAGES permission on Android O

## 2.0.1+2

* fix android M FLAG_GRANT_READ_URI_PERMISSION

## 2.0.1+1

* Fixed crash caused by third party plug-in request permissions

## 2.0.1

* migrate to androidx

## 1.3.0

* roll back support

## 1.2.3+1

* request READ_EXTERNAL_STORAGE when the file is not in the app directory

## 1.2.3

* Optimize permission request logic on android

## 1.2.2+2

* fix crash when requestPermission

## 1.2.2+1

* migrate to androidx

## 1.2.2

* ask for permission when needed

## 1.2.1

* fix somethings

## 1.2.0

* Add custom parameters,"type" android,"uti" iOS

## 1.1.1

* fix startActivity crash in android

## 1.1.0

* fix ios open file

## 1.0.7

* resolve conflict with other plugins about FileProvider and multi appcompat-v7 compile

## 1.0.6

* resolve conflict with image_provider plugin

## 1.0.5

* Just Support >=2.0.0-dev.28.0

## 1.0.4

* Just Support Dart2

## 1.0.3

* Just Support Dart2

## 1.0.2

* Ios Support added and support android 7.0 or above
10 changes: 5 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -4,18 +4,18 @@ version '1.0-SNAPSHOT'
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.android.tools.build:gradle:7.4.2'
}
}

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

@@ -27,10 +27,10 @@ android {
namespace 'com.crazecoder.openfile'
}

compileSdkVersion 30
compileSdkVersion 35

defaultConfig {
minSdkVersion 16
minSdkVersion 23
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
lintOptions {
Binary file added android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading