Skip to content

Commit

Permalink
Merge pull request #427 from magnusja/gradle-8-9
Browse files Browse the repository at this point in the history
update shittons of stufff
  • Loading branch information
magnusja authored Nov 5, 2024
2 parents 500376e + fd3d0bb commit e71b1fa
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 35 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: set up JDK 1.11
uses: actions/setup-java@v1
- name: set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 1.11
distribution: 'oracle'
java-version: '21'
- name: install libusb
run: wget https://github.com/libusb/libusb/archive/v1.0.26.zip && unzip v1.0.26.zip
- name: write local properties
Expand Down
12 changes: 9 additions & 3 deletions androidtests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 32
buildToolsVersion "30.0.3"
kotlinOptions {
jvmTarget = '21'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

defaultConfig {
testInstrumentationRunnerArguments
minSdkVersion 15
targetSdkVersion 32
targetSdkVersion 33
compileSdk 33

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments.package = 'me.jahnen.libaums.androidtests'
Expand Down
12 changes: 9 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 33
buildToolsVersion '30.0.3'

android {
kotlinOptions {
jvmTarget = '21'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}
defaultConfig {
applicationId "com.github.mjdev.usbfileman"
minSdkVersion 16
targetSdkVersion 33
compileSdk 33
versionCode 1
versionName "1.0"
multiDexEnabled true
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.8.0'
ext.kotlin_version = '2.0.20'
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.7.2'

classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'

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

classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10"
classpath "org.jacoco:org.jacoco.core:0.8.8"
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.5'
classpath "org.jacoco:org.jacoco.core:0.8.11"
classpath 'com.mxalbert.gradle.jacoco-android:com.mxalbert.gradle.jacoco-android.gradle.plugin:0.2.1'
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.defaults.buildfeatures.buildconfig=true
android.enableJetifier=true
android.nonFinalResIds=false
android.nonTransitiveRClass=false
android.useAndroidX=true

org.gradle.jvmargs=-Xmx4096M
6 changes: 3 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Nov 22 10:59:55 CET 2022
#Tue Nov 05 15:02:06 CET 2024
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
14 changes: 10 additions & 4 deletions httpserver/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ configurations {
}

android {
compileSdkVersion 32
buildToolsVersion '30.0.3'
kotlinOptions {
jvmTarget = '21'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

defaultConfig {
minSdkVersion 16
targetSdkVersion 32
targetSdkVersion 33
compileSdk 33
}
buildTypes {
release {
Expand All @@ -48,7 +54,7 @@ dependencies {
api 'androidx.core:core:1.2.0-rc01'
api project(':libaums')
api "androidx.core:core-ktx:1.1.0"
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}

repositories {
Expand Down
6 changes: 3 additions & 3 deletions javafs/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 32
buildToolsVersion '30.0.3'

defaultConfig {
minSdkVersion 15
targetSdkVersion 32
targetSdkVersion 33
compileSdk 33

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand All @@ -21,6 +20,7 @@ android {
abortOnError false
}
namespace 'me.jahnen.libaums.javafs'
compileSdk 34
}

dependencies {
Expand Down
19 changes: 13 additions & 6 deletions libaums/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'com.dicedmelon.gradle.jacoco-android'
apply plugin: 'com.mxalbert.gradle.jacoco-android'

jacoco {
toolVersion = "0.8.7"
toolVersion = "0.8.11"
}

ext {
Expand All @@ -20,12 +20,18 @@ configurations {
}

android {
compileSdkVersion 33
buildToolsVersion '30.0.3'
kotlinOptions {
jvmTarget = '21'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

defaultConfig {
minSdkVersion 15
targetSdkVersion 33
compileSdk 33

externalNativeBuild {
cmake {
Expand All @@ -38,10 +44,11 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
testCoverageEnabled true
enableUnitTestCoverage true
enableAndroidTestCoverage true
}

}


Expand Down
9 changes: 8 additions & 1 deletion libusbcommunication/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ ext {
apply from: "${rootProject.projectDir}/publish-module.gradle"

android {
compileSdkVersion 33
kotlinOptions {
jvmTarget = '21'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_21
targetCompatibility JavaVersion.VERSION_21
}

defaultConfig {
minSdkVersion 15
targetSdkVersion 33
compileSdk 33

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
2 changes: 1 addition & 1 deletion publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ afterEvaluate {

// Two artifacts, the `aar` (or `jar`) and the sources
if (project.plugins.findPlugin("com.android.library")) {
from components.release
from components.findByName("android") ?: components.findByName("release")
} else {
from components.java
}
Expand Down
5 changes: 2 additions & 3 deletions storageprovider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ configurations {
}

android {
compileSdkVersion 32
buildToolsVersion '30.0.3'

defaultConfig {
minSdkVersion 16
targetSdkVersion 32
targetSdkVersion 33
compileSdk 33
}
buildTypes {
release {
Expand Down
2 changes: 1 addition & 1 deletion storageprovider/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<application>

<provider
android:name="me.jahnen.libaums.core.storageprovider.UsbDocumentProvider"
android:name="me.jahnen.libaums.storageprovider.UsbDocumentProvider"
android:authorities="me.jahnen.libaums.storageprovider.documents"
android:exported="true"
android:grantUriPermissions="true"
Expand Down

0 comments on commit e71b1fa

Please sign in to comment.