7 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ jobs:
18
18
steps :
19
19
20
20
- name : Checkout repository and submodules
21
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
22
22
with :
23
23
submodules : recursive
24
24
25
- - name : Set up Java 11
26
- uses : actions/setup-java@v2
25
+ - name : Set up Java 17
26
+ uses : actions/setup-java@v3
27
27
with :
28
- distribution : ' adopt '
29
- java-version : ' 11 '
28
+ distribution : ' temurin '
29
+ java-version : ' 17 '
30
30
31
31
- name : Build with Gradle
32
32
run : ./gradlew build
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ dependencies {
12
12
implementation ' androidx.recyclerview:recyclerview:1.3.0'
13
13
// implementation 'androidx.activity:activity:1.4.0'
14
14
implementation ' androidx.dynamicanimation:dynamicanimation:1.0.0'
15
- implementation ' com.google.android.material:material:1.8 .0'
15
+ implementation ' com.google.android.material:material:1.9 .0'
16
16
// Added only to resolve https://issuetracker.google.com/issues/242384116
17
17
implementation ' androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1'
18
18
}
@@ -27,10 +27,10 @@ android {
27
27
// API level 21: Jetpack Compose
28
28
defaultConfig {
29
29
applicationId ' ee.ioc.phon.android.speak'
30
- minSdkVersion 23
30
+ minSdkVersion 24
31
31
targetSdkVersion 33
32
- versionCode 1901
33
- versionName ' 1.9.01 '
32
+ versionCode 1906
33
+ versionName ' 1.9.06 '
34
34
vectorDrawables. useSupportLibrary = true
35
35
// Keep only en and et resources
36
36
resConfigs ' en' , ' et'
Original file line number Diff line number Diff line change 25
25
In Android versions before v6.0 (~35% of the users as of 2017-06-18)
26
26
the permission is granted at install time, which is not nice, but this user base will
27
27
disappear over time.
28
+ Doc: "READ_EXTERNAL_STORAGE is deprecated (and is not granted) when targeting Android 13+.
29
+ If you need to query or interact with MediaStore or media files on the shared storage,
30
+ you should instead use one or more new storage permissions: READ_MEDIA_IMAGES, READ_MEDIA_VIDEO or READ_MEDIA_AUDIO."
31
+ TODO: test importing rewrite rules (which are plain text) on Android 13+.
28
32
-->
29
- <uses-permission android : name =" android.permission.READ_EXTERNAL_STORAGE" />
33
+ <uses-permission
34
+ android : name =" android.permission.READ_EXTERNAL_STORAGE"
35
+ android : maxSdkVersion =" 32" />
30
36
31
37
<!-- Permission SET_ALARM.
32
38
Used to set the alarm clock if the transcription resolves to an AlarmClock intent.
Original file line number Diff line number Diff line change @@ -56,7 +56,12 @@ class VoiceSearchDemo : AbstractRecognizerDemoActivity() {
56
56
// in the voice search system. We have to keep the bundle separate,
57
57
// because it becomes immutable once it enters the PendingIntent.
58
58
val queryIntent = Intent (Intent .ACTION_SEARCH )
59
- val pending = PendingIntent .getActivity(this , 0 , queryIntent, PendingIntent .FLAG_ONE_SHOT )
59
+ val pending = PendingIntent .getActivity(
60
+ this ,
61
+ 0 ,
62
+ queryIntent,
63
+ PendingIntent .FLAG_ONE_SHOT or PendingIntent .FLAG_IMMUTABLE
64
+ )
60
65
61
66
// Now set up the bundle that will be inserted into the pending intent
62
67
// when it is time to do the search. We always build it here (even if empty)
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ buildscript {
4
4
mavenCentral()
5
5
}
6
6
dependencies {
7
- classpath ' com.android.tools.build:gradle:7.4 .2'
7
+ classpath ' com.android.tools.build:gradle:8.0 .2'
8
8
classpath ' org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0'
9
9
}
10
10
}
Original file line number Diff line number Diff line change
1
+ android.defaults.buildfeatures.buildconfig =true
1
2
android.enableJetifier =false
3
+ android.nonFinalResIds =false
4
+ android.nonTransitiveRClass =false
2
5
android.useAndroidX =true
3
6
org.gradle.jvmargs =-Xmx2560m
4
7
org.gradle.unsafe.configuration-cache =true
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-7.5 -bin.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.0 -bin.zip
0 commit comments