TP-52987 | AGP 8.2.0 & Gradle 8.5 (#91)

Co-authored-by: Shivam Goyal <shivam.goyal@navi.com>
This commit is contained in:
Sayed Owais Ali
2024-01-04 16:42:13 +05:30
committed by GitHub
parent 2955cc4ebe
commit 5ad25a2cc1
22 changed files with 43 additions and 217 deletions

20
app/.gitignore vendored
View File

@@ -1,18 +1,10 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea/deploymentTargetDropDown.xml
/.idea/gradle.xml
/.idea/misc.xml
.DS_Store
/.idea/
/build
/captures
/local.properties
*.iml
.externalNativeBuild
.cxx
local.properties
.gradle
.DS_Store
local.properties

View File

@@ -5,11 +5,11 @@ plugins {
android {
namespace 'com.alfred.demo'
compileSdk 32
compileSdk 34
defaultConfig {
minSdk 21
targetSdk 32
targetSdk 33
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
@@ -17,6 +17,9 @@ android {
}
}
buildFeatures {
buildConfig true
}
buildTypes {
release {
minifyEnabled false
@@ -24,11 +27,11 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '1.8'
jvmTarget = '17'
}
packagingOptions {
resources {

View File

@@ -1,24 +0,0 @@
package com.alfred.demo
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.alfred.demo", appContext.packageName)
}
}

View File

@@ -1,17 +0,0 @@
package com.alfred.demo
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}