Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.9.0

### New

- Calling [openDocumentFile] on apk files triggers the installation.
- [getDocumentThumbnail] it's now supports decoding apk file icons.
- [shareUri] is a new API to trigger share intent using Uris from SAF (files through File class are also supported).

## 0.8.0

New SAF API and Gradle version upgrade.
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Alex Rintt
Copyright (c) 2021-2023 Alex Rintt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ All other branches are derivated from issues, new features or bug fixes.

## Contributors

- [kent](https://github.com/ken-tn) fixed documentation typo.
- [iamcosmin](https://github.com/iamcosmin), [limshengli](https://github.com/limshengli) reported a issue with Gradle and Kotlin version [#124](https://github.com/alexrintt/shared-storage/issues/124).
- [mx1up](https://github.com/mx1up) reported a issue with `openDocumentFile` API [#121](https://github.com/alexrintt/shared-storage/issues/121).
- [Tamerlanchiques](https://github.com/Tamerlanchiques) reported a bug which the persisted URI wasn't being properly persisted across device reboots [#118](https://github.com/alexrintt/shared-storage/issues/118).
Expand Down
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ linter:
always_use_package_imports: false
avoid_relative_lib_imports: false
avoid_print: false
always_specify_types: true
avoid_classes_with_only_static_members: false
108 changes: 54 additions & 54 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
group 'io.alexrintt.sharedstorage'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.8.21'
ext.gradle_version = '7.4.2'
repositories {
google()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}

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

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

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 19
}
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.documentfile:documentfile:1.0.1"

/**
* Allow usage of `CoroutineScope` to run heavy
* computation and queries outside the Main (UI) Thread
*/
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1"

/**
* `SimpleStorage` library
*/
implementation "com.anggrayudi:storage:1.3.0"
}
group 'io.alexrintt.sharedstorage'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.8.21'
ext.gradle_version = '7.4.2'
repositories {
google()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath "com.android.tools.build:gradle:$gradle_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
rootProject.allprojects {
repositories {
google()
jcenter()
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 33
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 19
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "androidx.documentfile:documentfile:1.0.1"
/**
* Allow usage of `CoroutineScope` to run heavy
* computation and queries outside the Main (UI) Thread
*/
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1"
/**
* `SimpleStorage` library
*/
implementation "com.anggrayudi:storage:1.3.0"
}
Loading