Skip to content

Commit 2091e3f

Browse files
authored
Update Android build (#38)
1 parent 95e4d17 commit 2091e3f

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

update_available_android/CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## UNRELEASED
2+
3+
- Add support for Android namespace
4+
- Bump `compileSdkVersion` to 34
5+
- Update `com.google.android.play:app-update` to `2.1.0`
6+
17
## 3.0.1
28

39
- Upgraded `flutter_lints` to `^3.0.1`

update_available_android/android/build.gradle

+11-6
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ group 'me.mateusfccp.update_available_android'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.5.31'
5+
ext.kotlin_version = '1.6.21'
66
repositories {
77
google()
8-
jcenter()
8+
mavenCentral()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.0'
12+
classpath 'com.android.tools.build:gradle:7.2.2'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -25,7 +25,12 @@ apply plugin: 'com.android.library'
2525
apply plugin: 'kotlin-android'
2626

2727
android {
28-
compileSdkVersion 33
28+
compileSdkVersion 34
29+
30+
// Conditional for compatibility with AGP <4.2.
31+
if (project.android.hasProperty("namespace")) {
32+
namespace 'me.mateusfccp.update_available_android'
33+
}
2934

3035
sourceSets {
3136
main.java.srcDirs += 'src/main/kotlin'
@@ -41,6 +46,6 @@ android {
4146
dependencies {
4247
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4348

44-
implementation 'com.google.android.play:app-update:2.0.1'
45-
implementation 'com.google.android.play:app-update-ktx:2.0.1'
49+
implementation 'com.google.android.play:app-update:2.1.0'
50+
implementation 'com.google.android.play:app-update-ktx:2.1.0'
4651
}

0 commit comments

Comments
 (0)