Skip to content

Commit e6d2474

Browse files
authored
Merge pull request #423 from ytai/PrepareKtsBuild
Prepare kts build
2 parents edeebd9 + efca187 commit e6d2474

File tree

21 files changed

+119
-109
lines changed

21 files changed

+119
-109
lines changed

IOIOBridge/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
apply plugin: "gradle-one-jar"
22

3-
task distJar(type: OneJar) {
4-
mainClass = 'ioio.bridge.Main'
3+
tasks.register("distJar", OneJar) {
4+
mainClass = "ioio.bridge.Main"
55
version = null
66
}
77

8-
task zip(type: Zip, dependsOn: distJar) {
9-
archiveBaseName = 'IOIOBridge'
10-
archiveVersion = '0103'
8+
tasks.register("zip", Zip) {
9+
dependsOn distJar
10+
archiveBaseName = "IOIOBridge"
11+
archiveVersion = "0103"
1112

1213
from distJar
13-
from('ioiobridge', 'ioiobridge.bat')
14-
rename 'IOIOBridge-standalone.jar', 'ioiobridge.jar'
14+
from("ioiobridge", "ioiobridge.bat")
15+
rename "IOIOBridge-standalone.jar", "ioiobridge.jar"
1516
}
1617

1718
tasks.build.dependsOn zip
1819

1920
dependencies {
20-
implementation 'com.sparetimelabs:purejavacomm:1.0.1'
21+
implementation "com.sparetimelabs:purejavacomm:1.0.1"
2122
}

IOIODude/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
apply plugin: "gradle-one-jar"
22

3-
task distJar(type: OneJar) {
4-
mainClass = 'ioio.dude.IOIODudeMain'
3+
tasks.register("distJar", OneJar) {
4+
mainClass = "ioio.dude.IOIODudeMain"
55
version = null
66
}
77

8-
task zip(type: Zip, dependsOn: distJar) {
9-
archiveBaseName = 'IOIODude'
10-
archiveVersion = '0103'
8+
tasks.register("zip", Zip) {
9+
dependsOn distJar
10+
archiveBaseName = "IOIODude"
11+
archiveVersion = "0103"
1112

1213
from distJar
13-
from('ioiodude', 'ioiodude.bat')
14-
rename 'IOIODude-standalone.jar', 'ioiodude.jar'
14+
from("ioiodude", "ioiodude.bat")
15+
rename "IOIODude-standalone.jar", "ioiodude.jar"
1516
}
1617

1718
tasks.build.dependsOn zip
1819

1920
dependencies {
20-
implementation 'com.sparetimelabs:purejavacomm:1.0.1'
21+
implementation "com.sparetimelabs:purejavacomm:1.0.1"
2122
}

IOIOLibAndroid/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
2-
id 'com.android.library'
3-
id 'maven-publish'
2+
id "com.android.library"
3+
id "maven-publish"
44
}
55

66
android {
7-
namespace 'ioio.lib'
7+
namespace "ioio.lib"
88
defaultConfig {
99
minSdkVersion 14
1010
compileSdk 34
@@ -14,14 +14,14 @@ android {
1414

1515
dependencies {
1616
api project(":IOIOLibCore")
17-
implementation 'androidx.appcompat:appcompat:1.6.1'
17+
implementation "androidx.appcompat:appcompat:1.6.1"
1818
}
1919

2020
publishing {
2121
publications {
2222
release(MavenPublication) {
2323
afterEvaluate {
24-
from components.findByName('release')
24+
from components.findByName("release")
2525
}
2626
}
2727
}

IOIOLibAndroidAccessory/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
2-
id 'com.android.library'
3-
id 'maven-publish'
2+
id "com.android.library"
3+
id "maven-publish"
44
}
55

66
android {
7-
namespace 'ioio.lib.accessory'
7+
namespace "ioio.lib.accessory"
88
defaultConfig {
99
minSdkVersion 14
1010
compileSdk 34
@@ -20,7 +20,7 @@ publishing {
2020
publications {
2121
release(MavenPublication) {
2222
afterEvaluate {
23-
from components.findByName('release')
23+
from components.findByName("release")
2424
}
2525
}
2626
}

IOIOLibAndroidBluetooth/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
2-
id 'com.android.library'
3-
id 'maven-publish'
2+
id "com.android.library"
3+
id "maven-publish"
44
}
55

66
android {
7-
namespace 'ioio.lib.bluetooth'
7+
namespace "ioio.lib.bluetooth"
88
defaultConfig {
99
minSdkVersion 14
1010
compileSdk 34
@@ -20,7 +20,7 @@ publishing {
2020
publications {
2121
release(MavenPublication) {
2222
afterEvaluate {
23-
from components.findByName('release')
23+
from components.findByName("release")
2424
}
2525
}
2626
}

IOIOLibAndroidDevice/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
plugins {
2-
id 'com.android.library'
3-
id 'maven-publish'
2+
id "com.android.library"
3+
id "maven-publish"
44
}
55

66
android {
7-
namespace 'ioio.lib.android.device'
7+
namespace "ioio.lib.android.device"
88
defaultConfig {
99
minSdkVersion 14
1010
compileSdk 34
@@ -20,7 +20,7 @@ publishing {
2020
publications {
2121
release(MavenPublication) {
2222
afterEvaluate {
23-
from components.findByName('release')
23+
from components.findByName("release")
2424
}
2525
}
2626
}

IOIOLibCore/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ publishing {
4949
publications {
5050
release(MavenPublication) {
5151
afterEvaluate {
52-
from components.findByName('release')
52+
from components.findByName("release")
5353
}
5454
}
5555
}

IOIOLibPC/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
plugins {
2-
id 'java-library'
2+
id "java-library"
33
}
44

55
javadoc {
6-
source = fileTree(dir: 'src/main/java')
6+
source = fileTree(dir: "src/main/java")
77
failOnError = false
88
}
99

10-
tasks.register('javadocJar', Jar) {
11-
archiveClassifier = 'javadoc'
10+
tasks.register("javadocJar", Jar) {
11+
archiveClassifier = "javadoc"
1212
from javadoc
1313
}
1414

15-
tasks.register('sourcesJar', Jar) {
16-
archiveClassifier = 'sources'
15+
tasks.register("sourcesJar", Jar) {
16+
archiveClassifier = "sources"
1717
from sourceSets.main.allSource
1818
}
1919

@@ -22,7 +22,7 @@ artifacts {
2222
}
2323

2424
dependencies {
25-
implementation 'com.sparetimelabs:purejavacomm:1.0.1'
25+
implementation "com.sparetimelabs:purejavacomm:1.0.1"
2626
api project(":IOIOLibCore")
2727
}
2828

applications/HelloIOIO/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
apply plugin: 'com.android.application'
2-
apply plugin: 'kotlin-android'
1+
apply plugin: "com.android.application"
2+
apply plugin: "kotlin-android"
33

44
android {
55
namespace "ioio.examples.hello"
@@ -13,7 +13,7 @@ android {
1313
versionName getTag()
1414

1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16-
testInstrumentationRunnerArguments useTestStorageService: 'true'
16+
testInstrumentationRunnerArguments useTestStorageService: "true"
1717
}
1818
compileOptions {
1919
sourceCompatibility JavaVersion.VERSION_17
@@ -22,11 +22,11 @@ android {
2222
}
2323

2424
dependencies {
25-
implementation project(':IOIOLibAndroidBluetooth')
26-
implementation project(':IOIOLibAndroidAccessory')
27-
implementation project(':IOIOLibAndroidDevice')
25+
implementation project(":IOIOLibAndroidBluetooth")
26+
implementation project(":IOIOLibAndroidAccessory")
27+
implementation project(":IOIOLibAndroidDevice")
2828

29-
implementation 'androidx.appcompat:appcompat:1.6.1'
29+
implementation "androidx.appcompat:appcompat:1.6.1"
3030

3131
androidTestImplementation "androidx.test.ext:junit-ktx:1.1.5"
3232
androidTestUtil "androidx.test.services:test-services:1.4.2"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<usb-accessory model="IOIO"/>
4+
</resources>

0 commit comments

Comments
 (0)