From 8a8a0deb260839b0796677c7f4bcde7b7194bab0 Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 19:50:54 +0530 Subject: [PATCH 1/9] Added google AR implementation in Dependency Added google AR implementation in dependencies with this line of code. implementation 'com.google.ar:core:1.43.0' --- android/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 832b909..ff2edfd 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -12,6 +12,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:8.3.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + implementation 'com.google.ar:core:1.43.0' } } @@ -53,4 +54,4 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'io.github.sceneview:arsceneview:2.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' -} \ No newline at end of file +} From 2da32dbcf4e189a28f98f3c64c862d5f54f7e8f8 Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 19:57:45 +0530 Subject: [PATCH 2/9] Add packaging options for JNI libraries in android {} packagingOptions { jniLibs { useLegacyPackaging = false } } --- android/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index ff2edfd..7093c25 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -40,6 +40,12 @@ android { jvmTarget = '17' } + packagingOptions { + jniLibs { + useLegacyPackaging = false + } +} + sourceSets { main.java.srcDirs += 'src/main/kotlin' } From 85c5071a802a16afe4edd77e7bf1dfa9e7b8e669 Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 20:01:03 +0530 Subject: [PATCH 3/9] Update Kotlin version to 1.9.22 Update Kotlin version to 1.9.22 from 1.9.10 --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 7093c25..e4ad1de 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -2,7 +2,7 @@ group 'com.uhg0.ar_flutter_plugin_2' version '1.0-SNAPSHOT' buildscript { - ext.kotlin_version = '1.9.10' + ext.kotlin_version = '1.9.22' repositories { mavenLocal() google() From 4aa33307043a2df19505d5c34e7ce78536aadbd4 Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 20:15:20 +0530 Subject: [PATCH 4/9] Update build.gradle for SDK and dependencies Removed from buildscript dependencies and added in dependencies section: implementation 'com.google.ar:core:1.43.0' --- android/build.gradle | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index e4ad1de..a28bf78 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -3,8 +3,8 @@ version '1.0-SNAPSHOT' buildscript { ext.kotlin_version = '1.9.22' + repositories { - mavenLocal() google() mavenCentral() } @@ -12,15 +12,6 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:8.3.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - implementation 'com.google.ar:core:1.43.0' - } -} - -allprojects { - repositories { - mavenLocal() - google() - mavenCentral() } } @@ -28,8 +19,13 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { - compileSdk 34 namespace 'com.uhg0.ar_flutter_plugin_2' + compileSdk 34 + + defaultConfig { + minSdk 28 + targetSdk 34 + } compileOptions { sourceCompatibility JavaVersion.VERSION_17 @@ -41,23 +37,28 @@ android { } packagingOptions { - jniLibs { - useLegacyPackaging = false + jniLibs { + useLegacyPackaging = false + } } -} sourceSets { main.java.srcDirs += 'src/main/kotlin' } +} - defaultConfig { - minSdkVersion 28 - targetSdkVersion 34 - } +repositories { + google() + mavenCentral() } dependencies { - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + // ✅ ARCore from Google (16 KB safe) + implementation 'com.google.ar:core:1.43.0' + + // SceneView (Filament) implementation 'io.github.sceneview:arsceneview:2.2.1' + + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.constraintlayout:constraintlayout:2.1.4' } From 69a54ee77969ee650b4d3b0780505847c7a7992c Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 20:21:40 +0530 Subject: [PATCH 5/9] Update build.gradle Updated the code in build.gradle From c081645f6f271b8235f80610be91e14835283ae8 Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 20:59:24 +0530 Subject: [PATCH 6/9] Upgrade compileSdk and targetSdk to version 36 Upgrade compileSdk and targetSdk to version 34 to 36 --- android/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index a28bf78..5a8b5aa 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -20,11 +20,11 @@ apply plugin: 'kotlin-android' android { namespace 'com.uhg0.ar_flutter_plugin_2' - compileSdk 34 + compileSdk 36 defaultConfig { minSdk 28 - targetSdk 34 + targetSdk 36 } compileOptions { From 6a7e6eb747c12807a9d5e968d2ce0189843809c7 Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 21:04:16 +0530 Subject: [PATCH 7/9] Update ARCore dependency version to 1.52.0 Update ARCore dependency version to 1.52.0 from 1.43.0 --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 5a8b5aa..16e901d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -54,7 +54,7 @@ repositories { dependencies { // ✅ ARCore from Google (16 KB safe) - implementation 'com.google.ar:core:1.43.0' + implementation 'com.google.ar:core:1.52.0' // SceneView (Filament) implementation 'io.github.sceneview:arsceneview:2.2.1' From ec14922e72012b95b8e2244b55e95dfed8f37397 Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 21:48:52 +0530 Subject: [PATCH 8/9] Refactor build.gradle to update SDK versions Updated compileSdk and targetSdk versions to 34 and removed unnecessary buildscript and repositories sections. --- android/build.gradle | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 16e901d..9e7541a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,30 +1,16 @@ group 'com.uhg0.ar_flutter_plugin_2' version '1.0-SNAPSHOT' -buildscript { - ext.kotlin_version = '1.9.22' - - repositories { - google() - mavenCentral() - } - - dependencies { - classpath 'com.android.tools.build:gradle:8.3.2' - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { namespace 'com.uhg0.ar_flutter_plugin_2' - compileSdk 36 + compileSdk 34 defaultConfig { minSdk 28 - targetSdk 36 + targetSdk 34 } compileOptions { @@ -47,18 +33,8 @@ android { } } -repositories { - google() - mavenCentral() -} - dependencies { - // ✅ ARCore from Google (16 KB safe) implementation 'com.google.ar:core:1.52.0' - - // SceneView (Filament) implementation 'io.github.sceneview:arsceneview:2.2.1' - - implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation 'androidx.constraintlayout:constraintlayout:2.1.4' + implementation "org.jetbrains.kotlin:kotlin-stdlib:1.9.22" } From 50995113f7dcca6b137a834298e4880e7dfb393c Mon Sep 17 00:00:00 2001 From: Navakanth Date: Wed, 7 Jan 2026 22:59:22 +0530 Subject: [PATCH 9/9] Upgrade compileSdk and targetSdk to version 36 Upgrade compileSdk and targetSdk to version 36 and kotlin version to 2.1.10 --- android/build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 9e7541a..e18e617 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -6,11 +6,11 @@ apply plugin: 'kotlin-android' android { namespace 'com.uhg0.ar_flutter_plugin_2' - compileSdk 34 + compileSdk 36 defaultConfig { minSdk 28 - targetSdk 34 + targetSdk 36 } compileOptions { @@ -36,5 +36,5 @@ android { dependencies { implementation 'com.google.ar:core:1.52.0' implementation 'io.github.sceneview:arsceneview:2.2.1' - implementation "org.jetbrains.kotlin:kotlin-stdlib:1.9.22" + implementation "org.jetbrains.kotlin:kotlin-stdlib:2.1.10" }