Skip to content

Commit

Permalink
Merge pull request #542 from MikeOrtiz/AndroidFlamingo
Browse files Browse the repository at this point in the history
Android Studio Flamingo
  • Loading branch information
hannesa2 committed Aug 3, 2023
2 parents 39e961f + db6bfd9 commit d3531e4
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
6 changes: 5 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ android {
buildFeatures {
viewBinding true
}
namespace 'info.touchimage.demo'
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

namespace 'info.touchimage.demo'
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import org.gradle.internal.jvm.Jvm

buildscript {
ext.kotlin_version = '1.9.0'
ext.kotlin_version = '1.8.22'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
classpath 'com.android.tools.build:gradle:8.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
android.enableJetifier=true
android.useAndroidX=true
android.useAndroidX=true

android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jdk:
- openjdk11
- openjdk17
install:
- ./gradlew :touchview:build :touchview:publishToMavenLocal -x :touchview:test
18 changes: 14 additions & 4 deletions touchview/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ android {

defaultConfig {
minSdkVersion 16
aarMetadata {
minCompileSdk = 28
}
testFixtures {
enable = true
}

targetSdkVersion defaultTargetSdkVersion
buildConfigField "String", 'VERSION', "\"" + versionName + "\""
Expand All @@ -22,17 +28,21 @@ android {
}
namespace 'com.ortiz.touchview'

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

dependencies {
api 'androidx.appcompat:appcompat:1.6.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
publishing {
publications {
release(MavenPublication) {
afterEvaluate {
from components.release
}
}
Expand Down

0 comments on commit d3531e4

Please sign in to comment.