Updating build configuration for snapshot publish
This commit is contained in:
parent
8aef580471
commit
13aae5e65f
18
README.md
18
README.md
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
[](http://search.maven.org/#search|ga|1|g%3A%22ru.noties%22%20AND%20a%3A%22markwon%22)
|
[](http://search.maven.org/#search|ga|1|g%3A%22ru.noties%22%20AND%20a%3A%22markwon%22)
|
||||||
[](http://search.maven.org/#search|ga|1|g%3A%22ru.noties%22%20AND%20a%3A%22markwon-image-loader%22)
|
[](http://search.maven.org/#search|ga|1|g%3A%22ru.noties%22%20AND%20a%3A%22markwon-image-loader%22)
|
||||||
|
[](http://search.maven.org/#search|ga|1|g%3A%22ru.noties%22%20AND%20a%3A%22markwon-syntax%22)
|
||||||
[](http://search.maven.org/#search|ga|1|g%3A%22ru.noties%22%20AND%20a%3A%22markwon-view%22)
|
[](http://search.maven.org/#search|ga|1|g%3A%22ru.noties%22%20AND%20a%3A%22markwon-view%22)
|
||||||
|
|
||||||
**Markwon** is a library for Android that renders markdown as system-native Spannables. It gives ability to display markdown in all TextView widgets (**TextView**, **Button**, **Switch**, **CheckBox**, etc), **Notifications**, **Toasts**, etc. <u>**No WebView is required**</u>. Library provides reasonable defaults for display style of markdown but also gives all the means to tweak the appearance if desired. All markdown features are supported (including limited support for inlined HTML code, markdown tables and images).
|
**Markwon** is a library for Android that renders markdown as system-native Spannables. It gives ability to display markdown in all TextView widgets (**TextView**, **Button**, **Switch**, **CheckBox**, etc), **Notifications**, **Toasts**, etc. <u>**No WebView is required**</u>. Library provides reasonable defaults for display style of markdown but also gives all the means to tweak the appearance if desired. All markdown features are supported (including limited support for inlined HTML code, markdown tables and images).
|
||||||
@ -12,9 +13,10 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```groovy
|
```groovy
|
||||||
compile 'ru.noties:markwon:1.0.6'
|
implementation 'ru.noties:markwon:1.0.6'
|
||||||
compile 'ru.noties:markwon-image-loader:1.0.6' // optional
|
implementation 'ru.noties:markwon-image-loader:1.0.6' // optional
|
||||||
compile 'ru.noties:markwon-view:1.0.6' // optional
|
implementation 'ru.noties:markwon-syntax:x.x.x' // optional
|
||||||
|
implementation 'ru.noties:markwon-view:1.0.6' // optional
|
||||||
```
|
```
|
||||||
|
|
||||||
### Snapshot
|
### Snapshot
|
||||||
@ -35,10 +37,10 @@ allprojects {
|
|||||||
and then in your module `build.gradle`:
|
and then in your module `build.gradle`:
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'ru.noties:markwon:1.0.6-SNAPSHOT'
|
implementation 'ru.noties:markwon:1.1.0-SNAPSHOT'
|
||||||
```
|
```
|
||||||
|
|
||||||
Please note that `markwon-image-loader` and `markwon-view` are also present in `SNAPSHOT` repository and share the same version as main `markwon` artifact.
|
Please note that `markwon-image-loader`, `markwon-syntax` and `markwon-view` are also present in `SNAPSHOT` repository and share the same version as main `markwon` artifact.
|
||||||
|
|
||||||
## Supported markdown features:
|
## Supported markdown features:
|
||||||
* Emphasis (`*`, `_`)
|
* Emphasis (`*`, `_`)
|
||||||
@ -141,6 +143,12 @@ you can use [Better-Link-Movement-Method][better-link-movement-method].
|
|||||||
|
|
||||||
Please refer to [SpannableConfiguration] document for more info
|
Please refer to [SpannableConfiguration] document for more info
|
||||||
|
|
||||||
|
## Syntax highlight
|
||||||
|
|
||||||
|
Starting with version `1.1.0` there is an artifact (`markwon-syntax`) that allows you to have syntax highlight functionality.
|
||||||
|
It is based on [Prism4j](https://github.com/noties/Prism4j) project. It contains 2 builtin themes:
|
||||||
|
`Default` (light, `Prism4jThemeDefault`) and `Darkula` (dark, `Prism4jThemeDarkula`).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Demo
|
# Demo
|
||||||
|
@ -25,6 +25,10 @@ dependencies {
|
|||||||
api OK_HTTP
|
api OK_HTTP
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
generateReleaseBuildConfig.enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
if (project.hasProperty('release')) {
|
if (project.hasProperty('release')) {
|
||||||
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
}
|
}
|
@ -22,3 +22,7 @@ dependencies {
|
|||||||
afterEvaluate {
|
afterEvaluate {
|
||||||
generateReleaseBuildConfig.enabled = false
|
generateReleaseBuildConfig.enabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (project.hasProperty('release')) {
|
||||||
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
|
}
|
3
library-syntax/gradle.properties
Normal file
3
library-syntax/gradle.properties
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
POM_NAME=Markwon
|
||||||
|
POM_ARTIFACT_ID=markwon-syntax
|
||||||
|
POM_PACKAGING=aar
|
@ -18,6 +18,10 @@ dependencies {
|
|||||||
compileOnly SUPPORT_APP_COMPAT
|
compileOnly SUPPORT_APP_COMPAT
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
generateReleaseBuildConfig.enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
if (project.hasProperty('release')) {
|
if (project.hasProperty('release')) {
|
||||||
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
}
|
}
|
||||||
|
@ -20,6 +20,10 @@ dependencies {
|
|||||||
api COMMON_MARK_TABLE
|
api COMMON_MARK_TABLE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
afterEvaluate {
|
||||||
|
generateReleaseBuildConfig.enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
if (project.hasProperty('release')) {
|
if (project.hasProperty('release')) {
|
||||||
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
apply from: 'https://raw.githubusercontent.com/noties/gradle-mvn-push/master/gradle-mvn-push-aar.gradle'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user