diff --git a/.github/workflows/gradle-publish.yml b/.github/workflows/gradle-publish.yml new file mode 100644 index 00000000..20d17dc3 --- /dev/null +++ b/.github/workflows/gradle-publish.yml @@ -0,0 +1,44 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created +# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Publishing-using-gradle + +name: Gradle Package + +on: + release: + types: [created] + +jobs: + build: + + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + server-id: github # Value of the distributionManagement/repository/id field of the pom.xml + settings-path: ${{ github.workspace }} # location for the settings.xml file + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 + + - name: Build with Gradle + run: ./gradlew build + + # The USERNAME and TOKEN need to correspond to the credentials environment variables used in + # the publishing section of your build.gradle + - name: Publish to GitHub Packages + run: ./gradlew publish + env: + USERNAME: ${{ github.actor }} + TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 27c2c2d1..8c34ce26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,21 @@ Change Log ========== +Version 6.0.0 *(2023-12-18)* +---------------------------- + * [Upgrade] Gradle version upgrade completed + * [Fix] Picker crashing on the tablet + * [Fix] Progress bar is not updated until the upload is completed + +Version 5.3.0 *(2018-11-29)* +---------------------------- + + * [Feature] New way to open up the Filestack Picker! Use `FilestackPicker.Builder` class to customize your picker easily. + * [Feature] A way to set Picker's theme is now available. Use `Theme.Builder` class to set your own color scheme to a picker. + * [Feature] Picker's version is now available in the picker's menu. This feature can be disabled using `FilestackPicker.Builder`. + * [UI change] Files descriptions are now formatted in a better way (e.g: 15360 is now properly displayed as 15kB). + * [UI fix] Menu options are now properly hidden in places that doesn't require them. + * Tester module supports all of the new features introduced. Head to Settings to see new configuration options. + Version 5.2.0 *(2018-10-15)* ---------------------------- diff --git a/README.md b/Iphone similarity index 92% rename from README.md rename to Iphone index 982288f8..d3028829 100644 --- a/README.md +++ b/Iphone @@ -3,13 +3,13 @@

- + - - + +

@@ -21,7 +21,7 @@ ## Install ```gradle -implementation 'com.filestack:filestack-android:5.1.0' +implementation 'com.filestack:filestack-android:6.0.0' ``` ## Tester and Samples @@ -73,6 +73,7 @@ FilestackPicker picker = new FilestackPicker.Builder() .sources(...) .mimeTypes(...) .multipleFilesSelectionEnabled(...) + .displayVersionInformation(...) .build(); picker.launch(activity); //use an Activity instance to launch a picker @@ -201,6 +202,13 @@ if (savedInstanceState == null) { } ``` +## Theming +Filestack Android SDK provides a theming mechanism for Filestack Picker screen. + +Setting a theme requires passing a `Theme` to `Filestack.Builder#theme(Theme)` method call. +`Theme` objects can be constructed with a `Theme.Builder` instance. +If theme is not set, a default one will be used. + ## Native UI At present this SDK doesn't offer many customization options, but the [Java SDK][java-sdk] can be used to build a native UI. This SDK adds UI and diff --git a/VERSION b/VERSION deleted file mode 100644 index 91ff5727..00000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -5.2.0 diff --git a/build.gradle b/build.gradle index 3200257b..ec552256 100644 --- a/build.gradle +++ b/build.gradle @@ -1,13 +1,13 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - ext.kotlin_version = '1.2.71' + ext.kotlin_version = '1.6.21' repositories { jcenter() google() } dependencies { - classpath 'com.android.tools.build:gradle:3.2.1' + classpath 'com.android.tools.build:gradle:7.4.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong diff --git a/docs/allclasses-frame.html b/docs/allclasses-frame.html index 131fa8c2..2d7ec837 100644 --- a/docs/allclasses-frame.html +++ b/docs/allclasses-frame.html @@ -2,9 +2,9 @@ - -All Classes (filestack 5.1.0 API) - + +All Classes (filestack 5.3.0 API) + @@ -17,6 +17,8 @@

All Classes

  • CloudAuthFragment
  • CloudListFragment
  • Constants
  • +
  • FilestackPicker
  • +
  • FilestackPicker.Builder
  • FsActivity
  • FsConstants
  • LocalFilesFragment
  • @@ -28,7 +30,9 @@

    All Classes

  • Selector.Single
  • SimpleSelectionSaver
  • SourceInfo
  • -
  • SpacingDecoration
  • +
  • SquareImageView
  • +
  • Theme
  • +
  • Theme.Builder
  • UploadService
  • Util
  • diff --git a/docs/allclasses-noframe.html b/docs/allclasses-noframe.html index e3f04b45..8a362ad4 100644 --- a/docs/allclasses-noframe.html +++ b/docs/allclasses-noframe.html @@ -2,9 +2,9 @@ - -All Classes (filestack 5.1.0 API) - + +All Classes (filestack 5.3.0 API) + @@ -17,6 +17,8 @@

    All Classes

  • CloudAuthFragment
  • CloudListFragment
  • Constants
  • +
  • FilestackPicker
  • +
  • FilestackPicker.Builder
  • FsActivity
  • FsConstants
  • LocalFilesFragment
  • @@ -28,7 +30,9 @@

    All Classes

  • Selector.Single
  • SimpleSelectionSaver
  • SourceInfo
  • -
  • SpacingDecoration
  • +
  • SquareImageView
  • +
  • Theme
  • +
  • Theme.Builder
  • UploadService
  • Util
  • diff --git a/docs/com/filestack/android/FilestackPicker.Builder.html b/docs/com/filestack/android/FilestackPicker.Builder.html new file mode 100644 index 00000000..e07f7008 --- /dev/null +++ b/docs/com/filestack/android/FilestackPicker.Builder.html @@ -0,0 +1,442 @@ + + + + + +FilestackPicker.Builder (filestack 5.3.0 API) + + + + + + + + +
    + + +
    Skip navigation links
    + + + + +
    + + + +
    +
    com.filestack.android
    +

    Class FilestackPicker.Builder

    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    + + +
    + + +
    Skip navigation links
    + + + + +
    + + + + diff --git a/docs/com/filestack/android/FilestackPicker.html b/docs/com/filestack/android/FilestackPicker.html new file mode 100644 index 00000000..46e037eb --- /dev/null +++ b/docs/com/filestack/android/FilestackPicker.html @@ -0,0 +1,302 @@ + + + + + +FilestackPicker (filestack 5.3.0 API) + + + + + + + + +
    + + +
    Skip navigation links
    + + + + +
    + + + +
    +
    com.filestack.android
    +

    Class FilestackPicker

    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    + + +
    + + +
    Skip navigation links
    + + + + +
    + + + + diff --git a/docs/com/filestack/android/FsActivity.html b/docs/com/filestack/android/FsActivity.html index 666fa7dc..47e0fd29 100644 --- a/docs/com/filestack/android/FsActivity.html +++ b/docs/com/filestack/android/FsActivity.html @@ -2,9 +2,9 @@ - -FsActivity (filestack 5.1.0 API) - + +FsActivity (filestack 5.3.0 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,13 +12,13 @@ + + + + + +
    + + +
    Skip navigation links
    + + + + +
    + + + +
    +
    com.filestack.android
    +

    Class Theme.Builder

    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    + + +
    + + +
    Skip navigation links
    + + + + +
    + + + + diff --git a/docs/com/filestack/android/Theme.html b/docs/com/filestack/android/Theme.html new file mode 100644 index 00000000..378b91da --- /dev/null +++ b/docs/com/filestack/android/Theme.html @@ -0,0 +1,420 @@ + + + + + +Theme (filestack 5.3.0 API) + + + + + + + + +
    + + +
    Skip navigation links
    + + + + +
    + + + +
    +
    com.filestack.android
    +

    Class Theme

    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    + + +
    + + +
    Skip navigation links
    + + + + +
    + + + + diff --git a/docs/com/filestack/android/internal/BackButtonListener.html b/docs/com/filestack/android/internal/BackButtonListener.html index 4d675296..e1191ac4 100644 --- a/docs/com/filestack/android/internal/BackButtonListener.html +++ b/docs/com/filestack/android/internal/BackButtonListener.html @@ -2,9 +2,9 @@ - -BackButtonListener (filestack 5.1.0 API) - + +BackButtonListener (filestack 5.3.0 API) + @@ -12,7 +12,7 @@ @@ -12,14 +12,14 @@ @@ -12,7 +12,7 @@ @@ -12,13 +12,13 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ + + + + + +
    + + +
    Skip navigation links
    + + + + +
    + + + +
    +
    com.filestack.android.internal
    +

    Class SquareImageView

    +
    +
    + +
    + +
    +
    + +
    +
    + +
    +
    + + +
    + + +
    Skip navigation links
    + + + + +
    + + + + diff --git a/docs/com/filestack/android/internal/UploadService.html b/docs/com/filestack/android/internal/UploadService.html index af6d0424..167fd3bf 100644 --- a/docs/com/filestack/android/internal/UploadService.html +++ b/docs/com/filestack/android/internal/UploadService.html @@ -2,9 +2,9 @@ - -UploadService (filestack 5.1.0 API) - + +UploadService (filestack 5.3.0 API) + @@ -12,13 +12,13 @@ @@ -12,13 +12,13 @@ @@ -29,7 +29,7 @@

    Classes

  • Selector.Single
  • SimpleSelectionSaver
  • SourceInfo
  • -
  • SpacingDecoration
  • +
  • SquareImageView
  • UploadService
  • Util
  • diff --git a/docs/com/filestack/android/internal/package-summary.html b/docs/com/filestack/android/internal/package-summary.html index eef9a68b..ad4191ed 100644 --- a/docs/com/filestack/android/internal/package-summary.html +++ b/docs/com/filestack/android/internal/package-summary.html @@ -2,9 +2,9 @@ - -com.filestack.android.internal (filestack 5.1.0 API) - + +com.filestack.android.internal (filestack 5.3.0 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -13,9 +13,13 @@

    Classes

    diff --git a/docs/com/filestack/android/package-summary.html b/docs/com/filestack/android/package-summary.html index 34dddf23..2011807e 100644 --- a/docs/com/filestack/android/package-summary.html +++ b/docs/com/filestack/android/package-summary.html @@ -2,9 +2,9 @@ - -com.filestack.android (filestack 5.1.0 API) - + +com.filestack.android (filestack 5.3.0 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ diff --git a/docs/overview-summary.html b/docs/overview-summary.html index ccd64ee6..6930d19f 100644 --- a/docs/overview-summary.html +++ b/docs/overview-summary.html @@ -2,9 +2,9 @@ - -Overview (filestack 5.1.0 API) - + +Overview (filestack 5.3.0 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@