
* Update build configuration * Update commonmark to 0.11.0 and android-gif to 1.2.14 * Add module `library-syntax` * Add default prism4j theme implementation * Add syntax highlight to sample app * Update syntax highlight to use SpannableStringBuilder * Working with syntax rendering * Add darkula theme to syntax highlight * Add attribute for image-loader module * Update version to 1.1.0-SNAPSHOT * Updating build configuration for snapshot publish * Add headingTypeface, headingTextSizes to SpannableTheme (#51) * Add headingTypeface to SpannableTheme, use a custom heading typeface in the sample app * Add headingTextSizes * Switching to headingTextSizeMultipliers, adding validating annotations, adding example * Consolidate logic, add crash if header index is out of bounds * Add small version clarifications * Introduce MediaDecoder abstraction for image-loader module * Switch to use SpannableFactory * Switch to use SpannableFactory for html parsing * Update sample application to add play-pause functionality for gifs * Small cleanup * Update prism4j version 1.1.0 * Update build configuration * Add README to library-syntax module * Update README
56 lines
1.4 KiB
Groovy
56 lines
1.4 KiB
Groovy
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.0.1'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
if (project.hasProperty('LOCAL_MAVEN_URL')) {
|
|
maven { url LOCAL_MAVEN_URL }
|
|
}
|
|
jcenter()
|
|
google()
|
|
}
|
|
version = VERSION_NAME
|
|
group = GROUP
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion '4.8.1'
|
|
distributionType 'all'
|
|
}
|
|
|
|
ext {
|
|
|
|
// Config
|
|
BUILD_TOOLS = '27.0.3'
|
|
TARGET_SDK = 27
|
|
MIN_SDK = 16
|
|
|
|
// Dependencies
|
|
final def supportVersion = '27.1.1'
|
|
SUPPORT_ANNOTATIONS = "com.android.support:support-annotations:$supportVersion"
|
|
SUPPORT_APP_COMPAT = "com.android.support:appcompat-v7:$supportVersion"
|
|
|
|
final def commonMarkVersion = '0.11.0'
|
|
COMMON_MARK = "com.atlassian.commonmark:commonmark:$commonMarkVersion"
|
|
COMMON_MARK_STRIKETHROUGHT = "com.atlassian.commonmark:commonmark-ext-gfm-strikethrough:$commonMarkVersion"
|
|
COMMON_MARK_TABLE = "com.atlassian.commonmark:commonmark-ext-gfm-tables:$commonMarkVersion"
|
|
|
|
ANDROID_SVG = 'com.caverock:androidsvg:1.2.1'
|
|
ANDROID_GIF = 'pl.droidsonroids.gif:android-gif-drawable:1.2.14'
|
|
OK_HTTP = 'com.squareup.okhttp3:okhttp:3.9.0'
|
|
|
|
PRISM_4J = 'ru.noties:prism4j:1.1.0'
|
|
PRISM_4J_BUNDLER = 'ru.noties:prism4j-bundler:1.1.0'
|
|
}
|