Skip to content

Commit

Permalink
update jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
zhwanng committed Aug 2, 2023
1 parent f25b8a6 commit 9d41370
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 22 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 33
compileSdkVersion rootProject.ext.compileSdkVersion

defaultConfig {
applicationId "br.tiagohm.markdownview.app"
minSdkVersion 16
targetSdkVersion 31

minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
Expand All @@ -26,8 +27,7 @@ dependencies {
implementation project(path: ':emoji')
implementation project(path: ':library')

final def x_version = '1.5.0'
implementation "androidx.appcompat:appcompat:$x_version"
implementation "androidx.appcompat:appcompat:$rootProject.ext.appcompat"

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
Expand Down
15 changes: 13 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

buildscript {
repositories {
jcenter()
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.2'
Expand All @@ -15,11 +16,21 @@ buildscript {

allprojects {
repositories {
jcenter()
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}


ext {
compileSdkVersion = 33
minSdkVersion = 26
targetSdkVersion = 30
buildToolsVersion = '30.0.3'
appcompat = '1.5.0'
}

task clean(type: Delete) {
delete rootProject.buildDir
}
11 changes: 6 additions & 5 deletions emoji/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
plugins {
id 'com.android.library'
}

group = 'com.github.haiwen'

android {
compileSdkVersion 27
compileSdkVersion rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion 16
targetSdkVersion 27
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Wed Aug 02 13:27:22 CST 2023
#Wed Aug 02 14:49:14 CST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
org.gradle.caching=false
6 changes: 6 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
before_install:
- sdk install java 11.0.10-open
- sdk use java 11.0.10-open

jdk:
- openjdk11
26 changes: 17 additions & 9 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
plugins {
id 'com.android.library'
id 'maven-publish'
}

group = 'com.github.haiwen'
def libVersion = "0.19.3"
def group = 'com.github.haiwen'
def libVersion = "0.19.4"
def libCode = 4

android {
compileSdkVersion 33
compileSdkVersion rootProject.ext.compileSdkVersion

defaultConfig {
minSdkVersion 16
targetSdkVersion 31
versionCode 1
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
versionCode libCode
versionName libVersion

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
Expand All @@ -22,6 +25,11 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}

dependencies {
Expand Down Expand Up @@ -51,7 +59,7 @@ afterEvaluate {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.github.haiwen'
groupId = group
artifactId = 'MarkdownView'
version = libVersion
}
Expand Down

0 comments on commit 9d41370

Please sign in to comment.