Skip to content

Commit

Permalink
Prepare 0.0.8 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
cdr-chakotay committed Jul 17, 2023
1 parent 397b33e commit 6123aea
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 35 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ on:

jobs:
android:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: set up JDK 11
- name: set up JDK 19
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '19'
distribution: 'adopt'
cache: gradle

Expand All @@ -32,7 +31,7 @@ jobs:
run: ./gradlew check

slack-on-failure:
needs: [ android ]
needs: [android]
if: failure() && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '19'
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down
44 changes: 26 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
### 0.0.7 / 2022-10-30 ###
* Updated dependency for Transloadit Java SDK to 0.4.4 => includes Socket-IO 4 and a security patch
* Updated to androidx.appcompat:appcompat:1.5.1
* Set compileSdkVersion to 31, and targetSdkVersion 31

### 0.0.6 / 2022-02-03 ###
* Update dependency for Transloadit Java SDK to 0.4.2
* Add Android SDK version to Transloadit-Client header
* Updated Tus-Android to 0.1.10

### 0.0.5 / 2022-01-10 ###
* Update dependency for Transloadit Java SDK to 0.4.1,
### 0.0.8 / 2023-07-17

- Changing method signatures including Activity to Context in order to make the SDKs usage more flexible.
- This is considered as not breaking, as a Activity is a Context, and the SDK will still work as before.

### 0.0.7 / 2022-10-30

- Updated dependency for Transloadit Java SDK to 0.4.4 => includes Socket-IO 4 and a security patch
- Updated to androidx.appcompat:appcompat:1.5.1
- Set compileSdkVersion to 31, and targetSdkVersion 31

### 0.0.6 / 2022-02-03

- Update dependency for Transloadit Java SDK to 0.4.2
- Add Android SDK version to Transloadit-Client header
- Updated Tus-Android to 0.1.10

### 0.0.5 / 2022-01-10

- Update dependency for Transloadit Java SDK to 0.4.1,
this update is recommended as it contains patches for known security vulnerabilities.

### 0.0.4 / 2021-02-25 ###
### 0.0.4 / 2021-02-25

* Update dependency for Transloadit Java SDK to 0.1.6
- Update dependency for Transloadit Java SDK to 0.1.6

### 0.0.3 / 2018-07-18 ###
### 0.0.3 / 2018-07-18

* Update dependency
- Update dependency

### 0.0.2 / 2018-04-07 ###
### 0.0.2 / 2018-04-07

* Initial release
- Initial release
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![CI](https://github.com/transloadit/android-sdk/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/transloadit/android-sdk/actions/workflows/CI.yml)
# android-sdk

# android-sdk

An **Android** Integration for [Transloadit](https://transloadit.com)'s file uploading and encoding service

## Intro
Expand All @@ -15,7 +17,7 @@ The JARs can be downloaded manually from [Maven Central](https://search.maven.or
**Gradle:**

```groovy
implementation 'com.transloadit.android.sdk:transloadit-android:0.0.7'
implementation 'com.transloadit.android.sdk:transloadit-android:0.0.8'
```

**Maven:**
Expand All @@ -24,7 +26,7 @@ implementation 'com.transloadit.android.sdk:transloadit-android:0.0.7'
<dependency>
<groupId>com.transloadit.android.sdk</groupId>
<artifactId>transloadit-android</artifactId>
<version>0.0.7</version>
<version>0.0.8</version>
</dependency>
```

Expand All @@ -36,7 +38,7 @@ All interactions with the SDK begin with the `com.transloadit.android.sdk.Transl

To create an assembly, you use the `newAssembly` method.

To use this functionality in it's full glory, you need implement the `AssemblyProgressListener`
To use this functionality in it's full glory, you need implement the `AssemblyProgressListener`
interface.

```java
Expand Down Expand Up @@ -69,7 +71,7 @@ public class MyAssemblyProgressListener implements AssemblyProgressListener {
exception.printStackTrace();
}
}

```

And in your activity you can have something like this
Expand All @@ -82,15 +84,15 @@ public class MainActivity extends AppCompatActivity {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

progressBar = (ProgressBar) findViewById(R.id.progressBar);

AssemblyProgressListener listener = new MyAssemblyProgressListener();

AndroidTransloadit transloadit = new AndroidTransloadit("key", "secret");
AndroidAsyncAssembly assembly = transloadit.newAssembly(listener);
assembly.addFile(new File("path/to/file.jpg"), "file");

Map<String, Object> stepOptions = new HashMap<>();
stepOptions.put("width", 75);
stepOptions.put("height", 75);
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Dec 15 15:07:56 CET 2021
#Mon Jul 17 14:41:28 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
2 changes: 1 addition & 1 deletion transloadit-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
implementation 'org.jetbrains:annotations:23.0.0'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:4.8.0'
testImplementation 'org.mock-server:mockserver-junit-rule:5.14.0'
testImplementation 'org.mock-server:mockserver-junit-rule:5.15.0'
}

def config = new ConfigSlurper().parse(new File("${projectDir}/src/main/resources/android-sdk-version/version.properties").toURI().toURL())
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
version="0.0.7"
version="0.0.8"
description="An Android Integration of the Transloadit's(https://transloadit.com) file uploading and encoding service."
group='com.transloadit.android.sdk'

0 comments on commit 6123aea

Please sign in to comment.