Skip to content

Commit 25e1fa5

Browse files
authored
Java upgrades (#1194)
1 parent 2cf759e commit 25e1fa5

File tree

21 files changed

+150
-137
lines changed

21 files changed

+150
-137
lines changed

binding/ios/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ Porcupine is:
1616
To learn more about Porcupine, see the [product](https://picovoice.ai/products/porcupine/), [documentation](https://picovoice.ai/docs/), and [GitHub](https://github.com/Picovoice/porcupine/) pages.
1717

1818
## Installation
19-
19+
<!-- markdown-link-check-disable -->
2020
The Porcupine iOS binding is available via [CocoaPods](https://cocoapods.org/pods/Porcupine-iOS). To import it into your iOS project, add the following line to your Podfile:
21+
<!-- markdown-link-check-enable -->
2122

2223
```ruby
2324
pod 'Porcupine-iOS'

demo/android/Activity/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ext {
2-
defaultTargetSdkVersion = 31
2+
defaultTargetSdkVersion = 33
33
}
44

55
buildscript {
@@ -8,14 +8,16 @@ buildscript {
88
mavenCentral()
99
}
1010
dependencies {
11-
classpath 'com.android.tools.build:gradle:7.2.2'
11+
classpath 'com.android.tools.build:gradle:7.4.2'
1212
}
1313
}
1414

1515
allprojects {
1616
gradle.projectsEvaluated {
17-
tasks.withType(JavaCompile) {
18-
options.compilerArgs << "-Xlint:deprecation"
17+
tasks.withType(JavaCompile).tap {
18+
configureEach {
19+
options.compilerArgs << "-Xlint:deprecation"
20+
}
1921
}
2022
}
2123
repositories {
@@ -24,6 +26,6 @@ allprojects {
2426
}
2527
}
2628

27-
task clean(type: Delete) {
29+
tasks.register('clean', Delete) {
2830
delete rootProject.buildDir
2931
}

demo/android/Activity/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

demo/android/Activity/porcupine-activity-demo-app/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import groovy.json.JsonSlurper
2+
13
apply plugin: 'com.android.application'
24

35
android {
4-
compileSdkVersion defaultTargetSdkVersion
6+
compileSdk defaultTargetSdkVersion
57

68
defaultConfig {
79
applicationId "ai.picovoice.porcupine.demo"
@@ -18,7 +20,7 @@ android {
1820
}
1921

2022
def testDataFile = file('../../../../resources/.test/test_data.json')
21-
def parsedJson = new groovy.json.JsonSlurper().parseText(testDataFile.text)
23+
def parsedJson = new JsonSlurper().parseText(testDataFile.text)
2224
def languages = []
2325
parsedJson.tests.singleKeyword.each { a ->
2426
languages.add(a.language)
@@ -64,6 +66,7 @@ android {
6466
lint {
6567
abortOnError false
6668
}
69+
namespace 'ai.picovoice.porcupine.demo'
6770
}
6871

6972
dependencies {

demo/android/Activity/porcupine-activity-demo-app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="ai.picovoice.porcupine.demo">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

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

demo/android/STT/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ext {
2-
defaultTargetSdkVersion = 31
2+
defaultTargetSdkVersion = 33
33
}
44

55
buildscript {
@@ -9,7 +9,7 @@ buildscript {
99
mavenCentral()
1010
}
1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.2.2'
12+
classpath 'com.android.tools.build:gradle:7.4.2'
1313
}
1414
}
1515

@@ -20,6 +20,6 @@ allprojects {
2020
}
2121
}
2222

23-
task clean(type: Delete) {
23+
tasks.register('clean', Delete) {
2424
delete rootProject.buildDir
2525
}

demo/android/STT/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

demo/android/STT/porcupine-stt-demo-app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion defaultTargetSdkVersion
4+
compileSdk defaultTargetSdkVersion
55
defaultConfig {
66
applicationId "ai.picovoice.porcupine.sttdemo"
77
minSdkVersion 21
@@ -22,6 +22,7 @@ android {
2222
lint {
2323
abortOnError false
2424
}
25+
namespace 'ai.picovoice.porcupine.sttdemo'
2526
}
2627

2728
dependencies {

demo/android/STT/porcupine-stt-demo-app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="ai.picovoice.porcupine.sttdemo">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

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

demo/android/Service/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
21
ext {
3-
defaultTargetSdkVersion = 31
2+
defaultTargetSdkVersion = 33
43
}
54

65
buildscript {
@@ -9,7 +8,7 @@ buildscript {
98
mavenCentral()
109
}
1110
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.2.2'
11+
classpath 'com.android.tools.build:gradle:7.4.2'
1312
}
1413
}
1514

@@ -20,6 +19,6 @@ allprojects {
2019
}
2120
}
2221

23-
task clean(type: Delete) {
22+
tasks.register('clean', Delete) {
2423
delete rootProject.buildDir
2524
}

0 commit comments

Comments
 (0)