Skip to content

Commit c25e643

Browse files
authored
Merge pull request #371 from magnusja/develop
core v0.9.2 libusbcommunication v0.2.3
2 parents 51e6f60 + 0d290bb commit c25e643

File tree

24 files changed

+158
-58
lines changed

24 files changed

+158
-58
lines changed

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
with:
1515
java-version: 1.11
1616
- name: install libusb
17-
run: wget https://github.com/libusb/libusb/archive/v1.0.24.zip && unzip v1.0.24.zip
17+
run: wget https://github.com/libusb/libusb/archive/v1.0.26.zip && unzip v1.0.26.zip
1818
- name: write local properties
19-
run: echo "libusb.dir=$GITHUB_WORKSPACE/libusb-1.0.24" > $GITHUB_WORKSPACE/local.properties
19+
run: echo "libusb.dir=$GITHUB_WORKSPACE/libusb-1.0.26" > $GITHUB_WORKSPACE/local.properties
2020
- name: Build & test with Gradle
2121
run: ./gradlew jacocoTestReport --stacktrace
2222
- name: codecov

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A library to access USB mass storage devices (pen drives, external HDDs, card re
1313
The library can be included into your project like this:
1414

1515
```ruby
16-
implementation 'me.jahnen.libaums:core:0.9.1'
16+
implementation 'me.jahnen.libaums:core:0.9.2'
1717
```
1818

1919
If you need the HTTP or the storage provider module:
@@ -93,7 +93,7 @@ UsbFile root = currentFs.getRootDirectory();
9393
UsbFile[] files = root.listFiles();
9494
for(UsbFile file: files) {
9595
Log.d(TAG, file.getName());
96-
if(file.isDirectory()) {
96+
if(!file.isDirectory()) {
9797
Log.d(TAG, file.getLength());
9898
}
9999
}

androidtests/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ android {
2929
useLibrary 'android.test.runner'
3030
useLibrary 'android.test.base'
3131
useLibrary 'android.test.mock'
32+
namespace 'me.jahnen.libaums.core.androidtests'
3233
}
3334

3435
dependencies {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="me.jahnen.libaums.core.androidtests">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
</manifest>

app/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ android {
1818
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
1919
}
2020
}
21-
22-
lintOptions {
21+
lint {
2322
abortOnError false
2423
}
24+
namespace 'me.jahnen.libaums.core.usbfileman'
25+
2526
}
2627

2728
dependencies {

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
*/
1818
-->
1919
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20-
xmlns:tools="http://schemas.android.com/tools"
21-
package="me.jahnen.libaums.core.usbfileman" >
20+
xmlns:tools="http://schemas.android.com/tools">
2221

2322
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
2423
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.6.10'
4+
ext.kotlin_version = '1.8.0'
55
repositories {
66
mavenCentral()
77
maven { url "https://plugins.gradle.org/m2/" }
88
google()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.0.4'
11+
classpath 'com.android.tools.build:gradle:7.4.2'
1212

1313
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
1414
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
1515

1616
classpath 'org.codehaus.groovy:groovy-all:2.4.15'
1717
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1818

19-
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.6.10"
20-
classpath "org.jacoco:org.jacoco.core:0.8.7"
19+
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10"
20+
classpath "org.jacoco:org.jacoco.core:0.8.8"
2121
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.5'
22-
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0'
22+
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
2323
// NOTE: Do not place your application dependencies here; they belong
2424
// in the individual module build.gradle files
2525
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Sep 11 11:27:30 CEST 2019
1+
#Tue Nov 22 10:59:55 CET 2022
22
distributionBase=GRADLE_USER_HOME
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
34
distributionPath=wrapper/dists
4-
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
6+
zipStoreBase=GRADLE_USER_HOME

httpserver/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ android {
3030
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3131
}
3232
}
33-
lintOptions {
33+
lint {
3434
abortOnError false
3535
}
36+
namespace 'me.jahnen.libaums.core.httpserver'
3637
}
3738

3839

httpserver/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="me.jahnen.libaums.core.httpserver">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

43
<uses-permission android:name="android.permission.INTERNET" />
54

0 commit comments

Comments
 (0)