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
12 changes: 6 additions & 6 deletions packages/share_plus/share_plus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Sharing files is not supported on Linux.
- Dart >=3.4.0 <4.0.0
- iOS >=12.0
- macOS >=10.14
- Android `compileSDK` 34
- Java 17
- Android Gradle Plugin >=8.3.0
- Gradle wrapper >=8.4
- Kotlin 2.2.0
- Android Gradle Plugin >=8.12.1
- Gradle wrapper >=8.13

## Usage

Expand Down Expand Up @@ -90,7 +90,7 @@ import 'package:cross_file/cross_file.dart';

final params = ShareParams(
text: 'Great picture',
files: [XFile('${directory.path}/image.jpg')],
files: [XFile('${directory.path}/image.jpg')],
);

final result = await SharePlus.instance.share(params);
Expand All @@ -106,7 +106,7 @@ import 'package:cross_file/cross_file.dart';

final params = ShareParams(
files: [
XFile('${directory.path}/image1.jpg'),
XFile('${directory.path}/image1.jpg'),
XFile('${directory.path}/image2.jpg'),
],
);
Expand Down Expand Up @@ -147,7 +147,7 @@ import 'package:cross_file/cross_file.dart';
import 'dart:convert';

final params = ShareParams(
files: [XFile.fromData(utf8.encode(text), mimeType: 'text/plain')],
files: [XFile.fromData(utf8.encode(text), mimeType: 'text/plain')],
fileNameOverrides: ['myfile.txt']
);

Expand Down
11 changes: 5 additions & 6 deletions packages/share_plus/share_plus/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ group 'dev.fluttercommunity.plus.share'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.7.22'
ext.kotlin_version = '2.2.0'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:8.3.1'
classpath 'com.android.tools.build:gradle:8.12.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -25,9 +25,8 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdk 34

namespace 'dev.fluttercommunity.plus.share'
compileSdk = flutter.compileSdkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
Expand All @@ -49,7 +48,7 @@ android {

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.13.1'
implementation 'androidx.annotation:annotation:1.8.2'
implementation 'androidx.core:core-ktx:1.16.0'
implementation 'androidx.annotation:annotation:1.9.1'
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if (flutterVersionName == null) {
}

android {
compileSdk 34
compileSdk = flutter.compileSdkVersion

namespace 'io.flutter.plugins.shareexample'

Expand All @@ -37,8 +37,8 @@ android {

defaultConfig {
applicationId "io.flutter.plugins.shareexample"
minSdk 21
targetSdk 34
minSdk flutter.minSdkVersion
targetSdk flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.3.1" apply false
id "com.android.application" version "8.12.1" apply false
id "org.jetbrains.kotlin.android" version "2.2.0" apply false
}

include ":app"
Loading