Skip to content

Commit

Permalink
Gradle 8.2.0 compatibility (#26)
Browse files Browse the repository at this point in the history
* Add namespace for AGP 8 compatibility

* Update kotlin version
  • Loading branch information
eric-nextsense authored Dec 21, 2023
1 parent 8b8e8fc commit 8578cc2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
13 changes: 8 additions & 5 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,32 @@ group 'com.bhikadia.receive_intent'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.5.31'
ext.kotlin_version = '1.7.22'
repositories {
google()
jcenter()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

rootProject.allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
if (project.android.hasProperty("namespace")) {
namespace 'com.bhikadia.receive_intent'
}
compileSdkVersion 30

sourceSets {
Expand All @@ -38,4 +41,4 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "androidx.annotation:annotation:1.3.0"
}
}
3 changes: 3 additions & 0 deletions example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
if (project.android.hasProperty("namespace")) {
namespace "com.bhikadia.receive_intent_example"
}
compileSdkVersion 30

sourceSets {
Expand Down

0 comments on commit 8578cc2

Please sign in to comment.