Skip to content

Commit

Permalink
upgrade AGP and Kotlin version
Browse files Browse the repository at this point in the history
  • Loading branch information
esafirm committed Oct 24, 2022
1 parent f4feee3 commit 00bbd7c
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 16 deletions.
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
buildscript {
ext.kotlin_version = '1.4.32'
ext.kotlin_version = '1.6.21'
ext.core_ktx_version = '1.3.2'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.android.tools.build:gradle:7.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

ext {
sdk = [
compileSdk: 33,
targetSdk : 33,
minSdk : 21
compileSdk: 33,
targetSdk : 33,
minSdk : 21
]
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
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-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
9 changes: 3 additions & 6 deletions imagepicker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.github.dcendents.android-maven'

android {
final sdk = rootProject.ext.sdk
Expand All @@ -11,8 +10,6 @@ android {
defaultConfig {
minSdkVersion sdk.minSdk
targetSdkVersion sdk.targetSdk
versionCode 1
versionName "1.0"
}

buildFeatures {
Expand All @@ -31,16 +28,16 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

lintOptions {
lint {
abortOnError false
}

resourcePrefix "ef_"
}

task sourcesJar(type: Jar) {
tasks.register("sourcesJar", Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
archiveClassifier.set('sources')
}

artifacts {
Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
compileSdkVersion sdk.compileSdk

buildFeatures {
viewBinding true
viewBinding = true
}

defaultConfig {
Expand Down Expand Up @@ -52,8 +52,8 @@ dependencies {
implementation "androidx.core:core-ktx:$core_ktx_version"

/* UI Test */
final espressoVersion = '3.3.0'
final runnerVersion = '1.3.0'
final espressoVersion = '3.4.0'
final runnerVersion = '1.4.0'
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
androidTestImplementation "androidx.test.espresso:espresso-contrib:$espressoVersion"
androidTestImplementation "androidx.test:runner:$runnerVersion"
Expand Down
31 changes: 31 additions & 0 deletions sample/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.esafirm.sample">

<uses-sdk tools:overrideLibrary="com.adevinta.android.barista,android_libs.ub_uiautomator" />

<application>
<activity
android:name="androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity"
android:theme="@android:style/Theme"
tools:replace="android:theme"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name="androidx.test.core.app.InstrumentationActivityInvoker$EmptyActivity"
android:theme="@android:style/Theme"
tools:replace="android:theme"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name="androidx.test.core.app.InstrumentationActivityInvoker$EmptyFloatingActivity"
android:theme="@android:style/Theme.Dialog"
tools:replace="android:theme"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>

</manifest>
2 changes: 2 additions & 0 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
<activity
android:name=".ImageViewerActivity"
android:theme="@style/ef_AppTheme" />


</application>

</manifest>

0 comments on commit 00bbd7c

Please sign in to comment.