Skip to content

Commit

Permalink
Change target SDK version to 33 (#81)
Browse files Browse the repository at this point in the history
[80] Update to target Android 13
  • Loading branch information
jpvasconcellos authored Aug 19, 2022
1 parent 4deeb90 commit 12b772c
Show file tree
Hide file tree
Showing 19 changed files with 50 additions and 50 deletions.
12 changes: 6 additions & 6 deletions zello-sdk-sample-contacts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "com.android.tools.build:gradle:7.2.2"
}
}

Expand All @@ -23,13 +23,13 @@ java {
}

android {
compileSdkVersion 30
buildToolsVersion "31.0.0"
compileSdkVersion 33
buildToolsVersion "33.0.0"

defaultConfig {
applicationId "com.zello.sdk.sample.contacts"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 23
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
Expand All @@ -49,5 +49,5 @@ android {

dependencies {
implementation files("libs/zello-sdk.aar")
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.appcompat:appcompat:1.5.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
Binary file modified zello-sdk-sample-contacts/libs/zello-sdk.aar
Binary file not shown.
10 changes: 5 additions & 5 deletions zello-sdk-sample-misc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "com.android.tools.build:gradle:7.2.2"
}
}

Expand All @@ -17,13 +17,13 @@ repositories {
apply plugin: "com.android.application"

android {
compileSdkVersion 30
compileSdkVersion 33
buildToolsVersion "31.0.0"

defaultConfig {
applicationId "com.zello.sdk.sample.miscellaneous"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 23
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
Expand All @@ -43,5 +43,5 @@ android {

dependencies {
implementation files("libs/zello-sdk.aar")
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.appcompat:appcompat:1.5.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
Binary file modified zello-sdk-sample-misc/libs/zello-sdk.aar
Binary file not shown.
10 changes: 5 additions & 5 deletions zello-sdk-sample-ptt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "com.android.tools.build:gradle:7.2.2"
}
}

Expand All @@ -17,13 +17,13 @@ repositories {
apply plugin: "com.android.application"

android {
compileSdkVersion 30
compileSdkVersion 33
buildToolsVersion "31.0.0"

defaultConfig {
applicationId "com.zello.sdk.sample.ptt"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 23
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
Expand All @@ -43,5 +43,5 @@ android {

dependencies {
implementation files("libs/zello-sdk.aar")
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.appcompat:appcompat:1.5.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
Binary file modified zello-sdk-sample-ptt/libs/zello-sdk.aar
Binary file not shown.
10 changes: 5 additions & 5 deletions zello-sdk-sample-signin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}

dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "com.android.tools.build:gradle:7.2.2"
}
}

Expand All @@ -17,13 +17,13 @@ repositories {
apply plugin: "com.android.application"

android {
compileSdkVersion 30
compileSdkVersion 33
buildToolsVersion "31.0.0"

defaultConfig {
applicationId "com.zello.sdk.sample"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 23
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
Expand All @@ -43,5 +43,5 @@ android {

dependencies {
implementation files("libs/zello-sdk.aar")
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.appcompat:appcompat:1.5.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
Binary file modified zello-sdk-sample-signin/libs/zello-sdk.aar
Binary file not shown.
16 changes: 8 additions & 8 deletions zello-sdk-sample/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
buildscript {
ext.kotlin_version = "1.5.31"
ext.kotlin_version = "1.7.10"

repositories {
google()
mavenCentral()
}

dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "com.android.tools.build:gradle:7.2.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -21,13 +21,13 @@ apply plugin: "com.android.application"
apply plugin: "kotlin-android"

android {
compileSdkVersion 30
compileSdkVersion 33
buildToolsVersion "31.0.0"

defaultConfig {
applicationId "com.zello.sdk.sample"
minSdkVersion 16
targetSdkVersion 30
minSdkVersion 23
targetSdkVersion 33
versionCode 1
versionName "1.0"
}
Expand All @@ -51,8 +51,8 @@ android {

dependencies {
implementation files("libs/zello-sdk.aar")
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.core:core-ktx:1.6.0"
implementation "androidx.media:media:1.4.2"
implementation "androidx.appcompat:appcompat:1.5.0"
implementation "androidx.core:core-ktx:1.8.0"
implementation "androidx.media:media:1.6.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
2 changes: 1 addition & 1 deletion zello-sdk-sample/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
Binary file modified zello-sdk-sample/libs/zello-sdk.aar
Binary file not shown.
Binary file modified zello-sdk.aar
Binary file not shown.
22 changes: 11 additions & 11 deletions zello-sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
buildscript {
ext.kotlin_version = "1.5.31"
ext.kotlin_version = "1.7.10"

repositories {
google()
mavenCentral()
}

dependencies {
classpath "com.android.tools.build:gradle:7.0.2"
classpath "com.android.tools.build:gradle:7.2.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand All @@ -27,10 +27,10 @@ java {
}

dependencies {
implementation "androidx.appcompat:appcompat:1.3.1"
implementation "androidx.core:core-ktx:1.6.0"
implementation "androidx.media:media:1.4.2"
implementation "androidx.annotation:annotation:1.2.0"
implementation "androidx.appcompat:appcompat:1.5.0"
implementation "androidx.core:core-ktx:1.8.0"
implementation "androidx.media:media:1.6.0"
implementation "androidx.annotation:annotation:1.4.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

Expand Down Expand Up @@ -95,7 +95,7 @@ task zelloSdkAarDeployReleaseToSamples {
rename("${sourceAarName}", "${targetAarName}")
}
dependencies {
implementation "androidx.annotation:annotation:1.2.0"
implementation "androidx.annotation:annotation:1.4.0"
}
shouldRunAfter "assembleRelease"
}
Expand Down Expand Up @@ -141,14 +141,14 @@ tasks.whenTaskAdded { task ->
}

android {
compileSdkVersion 30
buildToolsVersion "31.0.0"
compileSdkVersion 33
buildToolsVersion "33.0.0"

ext.sdkVersion = "4.116.0"

defaultConfig {
targetSdkVersion 30
minSdkVersion 16
targetSdkVersion 33
minSdkVersion 23
manifestPlaceholders = [sdkVersion: "$sdkVersion"]
buildConfigField "String", "SDK_VERSION", "\"$sdkVersion\""
consumerProguardFiles "consumer-rules.pro"
Expand Down
6 changes: 3 additions & 3 deletions zello-sdk/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Nov 18 13:04:35 CST 2020
#Sat Aug 13 22:07:02 BST 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class HeadsetMediaSessionImpl : HeadsetMediaSession {
val mediaButtonIntent = Intent(Intent.ACTION_MEDIA_BUTTON).run {
setClass(context.applicationContext, MediaButtonReceiver::class.java)
}
session.setMediaButtonReceiver(PendingIntent.getBroadcast(context.applicationContext, 0, mediaButtonIntent, 0))
session.isActive = true;
session.setMediaButtonReceiver(PendingIntent.getBroadcast(context.applicationContext, 0, mediaButtonIntent, PendingIntent.FLAG_IMMUTABLE))
session.isActive = true
// Switch the session to "playing" state
val playbackState = PlaybackStateCompat.Builder().run {
setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE or PlaybackStateCompat.ACTION_PAUSE)
Expand Down

0 comments on commit 12b772c

Please sign in to comment.