Skip to content

Commit ffed3a7

Browse files
committed
- uploaded libray to jcenter bintray as it.sysdata.mobile:htmlspanner
- changed package name to com.sysdata.htmlspanner
1 parent 945593b commit ffed3a7

51 files changed

Lines changed: 349 additions & 256 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

html-textview-master/HtmlSpanner/build.gradle

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,48 @@
1+
apply plugin: 'com.android.library'
2+
apply plugin: 'com.jfrog.artifactory-upload'
3+
apply plugin: 'com.github.dcendents.android-maven'
4+
5+
// This is the library version used when deploying the artifact
6+
version = "1.0.0"
7+
8+
group = "it.sysdata.mobile"
9+
110
buildscript {
2-
repositories {
3-
mavenCentral()
4-
}
511
dependencies {
6-
classpath 'com.android.tools.build:gradle:1.0.0'
12+
repositories {
13+
google()
14+
mavenCentral()
15+
// serve per org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1
16+
maven {
17+
url "https://plugins.gradle.org/m2/"
18+
}
19+
}
20+
// artifactory
21+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
22+
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1'
23+
// bintray
24+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
25+
classpath 'com.github.dcendents:android-maven-plugin:1.2'
726
}
827
}
928

10-
apply plugin: 'com.android.library'
11-
1229
repositories {
30+
google()
1331
mavenCentral()
1432
maven {
1533
url "http://repo.pageturner-reader.org"
1634
}
1735
}
1836

1937
dependencies {
20-
compile 'net.sourceforge.htmlcleaner:htmlcleaner:2.16'
21-
compile 'com.osbcp.cssparser:cssparser:1.5'
22-
compile 'io.reactivex:rxjava:1.2.10'
23-
compile 'io.reactivex:rxandroid:1.2.1'
38+
implementation 'net.sourceforge.htmlcleaner:htmlcleaner:2.16'
39+
implementation 'com.osbcp.cssparser:cssparser:1.5'
40+
implementation 'io.reactivex:rxjava:1.2.10'
41+
implementation 'io.reactivex:rxandroid:1.2.1'
2442
}
2543

2644
android {
2745
compileSdkVersion 21
28-
buildToolsVersion "21.1.0"
2946

3047
defaultConfig {
3148
minSdkVersion 9
@@ -39,6 +56,30 @@ android {
3956
}
4057
}
4158

59+
// pubblicazione maven
60+
Properties properties = new Properties()
61+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
62+
ext {
63+
// GROUP_ID
64+
publishedGroupId = group
65+
// ARTIFACT_ID
66+
artifact = 'sdhtmltextview'
67+
// VERSION_ID
68+
libraryVersion = version
69+
70+
developerId = 'sysdata-mobile'
71+
developerName = ''
72+
developerEmail = 'team.mobile@sysdata.it'
73+
74+
bintrayRepo = 'maven'
75+
bintrayName = 'sdHtmlTextView'
76+
libraryName = 'sdhtmltextview'
77+
bintrayOrganization = 'sysdata'
78+
}
79+
80+
//apply from: 'publishArtifactory.gradle'
81+
apply from: 'publishBintray.gradle'
82+
4283
//apply plugin: 'sonar-runner'
4384
//
4485
//sonarRunner {
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
buildscript {
2+
repositories {
3+
google()
4+
jcenter()
5+
}
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:3.1.3'
8+
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
9+
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.1'
10+
}
11+
}
12+
13+
apply plugin: 'com.android.library'
14+
15+
ext {
16+
libraryDescription = ''
17+
siteUrl = 'https://github.com/SysdataSpA/SDDialogView'
18+
gitUrl = 'https://github.com/SysdataSpA/SDDialogView.git'
19+
20+
licenseName = 'The Apache Software License, Version 2.0'
21+
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
22+
allLicenses = ["Apache-2.0"]
23+
}
24+
25+
//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
26+
apply plugin: 'com.github.dcendents.android-maven'
27+
28+
group = publishedGroupId // Maven Group ID for the artifact
29+
30+
install {
31+
repositories.mavenInstaller {
32+
// This generates POM.xml with proper parameters
33+
pom {
34+
project {
35+
packaging 'aar'
36+
groupId publishedGroupId
37+
artifactId artifact
38+
39+
// Add your description here
40+
name libraryName
41+
description libraryDescription
42+
url siteUrl
43+
44+
// Set your license
45+
licenses {
46+
license {
47+
name licenseName
48+
url licenseUrl
49+
}
50+
}
51+
developers {
52+
developer {
53+
id developerId
54+
name developerName
55+
email developerEmail
56+
}
57+
}
58+
scm {
59+
connection gitUrl
60+
developerConnection gitUrl
61+
url siteUrl
62+
63+
}
64+
}
65+
}
66+
}
67+
}
68+
69+
//apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
70+
apply plugin: 'com.jfrog.bintray'
71+
72+
version = libraryVersion
73+
74+
task sourcesJar(type: Jar) {
75+
dependsOn = ['test', 'connectedAndroidTest']
76+
from android.sourceSets.main.java.srcDirs
77+
classifier = 'sources'
78+
}
79+
80+
task writeNewPom {
81+
pom {
82+
project {
83+
packaging 'aar'
84+
name 'sdHtmlTextView'
85+
url siteUrl
86+
licenses {
87+
license {
88+
name 'The Apache Software License, Version 2.0'
89+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
90+
distribution 'repo'
91+
}
92+
}
93+
}
94+
}.writeTo("$buildDir/poms/pom-default.xml")
95+
}
96+
97+
artifacts {
98+
archives sourcesJar
99+
}
100+
101+
// Bintray
102+
Properties properties = new Properties()
103+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
104+
105+
bintray {
106+
user = properties.getProperty("bintray.user")
107+
key = properties.getProperty("bintray.apikey")
108+
109+
configurations = ['archives']
110+
pkg {
111+
repo = bintrayRepo
112+
name = bintrayName
113+
desc = libraryDescription
114+
userOrg = bintrayOrganization
115+
websiteUrl = siteUrl
116+
vcsUrl = gitUrl
117+
licenses = allLicenses
118+
publish = true
119+
publicDownloadNumbers = true
120+
version {
121+
desc = libraryDescription
122+
gpg {
123+
sign = true //Determines whether to GPG sign the files. The default is false
124+
passphrase = properties.getProperty("bintray.gpg.password")
125+
//Optional. The passphrase for GPG signing'
126+
}
127+
}
128+
}
129+
}

html-textview-master/HtmlSpanner/src/main/AndroidManifest.xml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="net.nightwhistler.htmlspanner"
4-
android:versionCode="05"
5-
android:versionName="0.5">
6-
7-
<uses-sdk
8-
android:minSdkVersion="7"
9-
android:targetSdkVersion="17"/>
3+
package="com.sysdata.htmlspanner"
4+
android:versionCode="1"
5+
android:versionName="1.0.0">
106

117
<application/>
128

html-textview-master/HtmlSpanner/src/main/java/net/nightwhistler/htmlspanner/FontFamily.java renamed to html-textview-master/HtmlSpanner/src/main/java/com/sysdata/htmlspanner/FontFamily.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package net.nightwhistler.htmlspanner;
17+
package com.sysdata.htmlspanner;
1818

1919
import android.graphics.Typeface;
2020

html-textview-master/HtmlSpanner/src/main/java/net/nightwhistler/htmlspanner/FontResolver.java renamed to html-textview-master/HtmlSpanner/src/main/java/com/sysdata/htmlspanner/FontResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.nightwhistler.htmlspanner;
1+
package com.sysdata.htmlspanner;
22

33
/**
44
* Interface for font-resolving components.

html-textview-master/HtmlSpanner/src/main/java/net/nightwhistler/htmlspanner/HtmlSpanner.java renamed to html-textview-master/HtmlSpanner/src/main/java/com/sysdata/htmlspanner/HtmlSpanner.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,34 @@
1414
* limitations under the License.
1515
*/
1616

17-
package net.nightwhistler.htmlspanner;
17+
package com.sysdata.htmlspanner;
1818

1919
import android.text.Spannable;
2020
import android.text.SpannableStringBuilder;
2121
import android.text.TextUtils;
2222
import android.util.Log;
2323

24-
import net.nightwhistler.htmlspanner.exception.ParsingCancelledException;
25-
import net.nightwhistler.htmlspanner.handlers.FontHandler;
26-
import net.nightwhistler.htmlspanner.handlers.HeaderHandler;
27-
import net.nightwhistler.htmlspanner.handlers.ImageHandler;
28-
import net.nightwhistler.htmlspanner.handlers.LinkHandler;
29-
import net.nightwhistler.htmlspanner.handlers.ListItemHandler;
30-
import net.nightwhistler.htmlspanner.handlers.MonoSpaceHandler;
31-
import net.nightwhistler.htmlspanner.handlers.NewLineHandler;
32-
import net.nightwhistler.htmlspanner.handlers.PreHandler;
33-
import net.nightwhistler.htmlspanner.handlers.StyleNodeHandler;
34-
import net.nightwhistler.htmlspanner.handlers.StyledTextHandler;
35-
import net.nightwhistler.htmlspanner.handlers.SubScriptHandler;
36-
import net.nightwhistler.htmlspanner.handlers.SuperScriptHandler;
37-
import net.nightwhistler.htmlspanner.handlers.TableHandler;
38-
import net.nightwhistler.htmlspanner.handlers.UnderlineHandler;
39-
import net.nightwhistler.htmlspanner.handlers.attributes.AlignmentAttributeHandler;
40-
import net.nightwhistler.htmlspanner.handlers.attributes.BorderAttributeHandler;
41-
import net.nightwhistler.htmlspanner.handlers.attributes.HorizontalLineHandler;
42-
import net.nightwhistler.htmlspanner.handlers.attributes.StyleAttributeHandler;
43-
import net.nightwhistler.htmlspanner.style.Style;
44-
import net.nightwhistler.htmlspanner.style.StyleValue;
24+
import com.sysdata.htmlspanner.exception.ParsingCancelledException;
25+
import com.sysdata.htmlspanner.handlers.FontHandler;
26+
import com.sysdata.htmlspanner.handlers.HeaderHandler;
27+
import com.sysdata.htmlspanner.handlers.ImageHandler;
28+
import com.sysdata.htmlspanner.handlers.LinkHandler;
29+
import com.sysdata.htmlspanner.handlers.ListItemHandler;
30+
import com.sysdata.htmlspanner.handlers.MonoSpaceHandler;
31+
import com.sysdata.htmlspanner.handlers.NewLineHandler;
32+
import com.sysdata.htmlspanner.handlers.PreHandler;
33+
import com.sysdata.htmlspanner.handlers.StyleNodeHandler;
34+
import com.sysdata.htmlspanner.handlers.StyledTextHandler;
35+
import com.sysdata.htmlspanner.handlers.SubScriptHandler;
36+
import com.sysdata.htmlspanner.handlers.SuperScriptHandler;
37+
import com.sysdata.htmlspanner.handlers.TableHandler;
38+
import com.sysdata.htmlspanner.handlers.UnderlineHandler;
39+
import com.sysdata.htmlspanner.handlers.attributes.AlignmentAttributeHandler;
40+
import com.sysdata.htmlspanner.handlers.attributes.BorderAttributeHandler;
41+
import com.sysdata.htmlspanner.handlers.attributes.HorizontalLineHandler;
42+
import com.sysdata.htmlspanner.handlers.attributes.StyleAttributeHandler;
43+
import com.sysdata.htmlspanner.style.Style;
44+
import com.sysdata.htmlspanner.style.StyleValue;
4545

4646
import org.htmlcleaner.CleanerProperties;
4747
import org.htmlcleaner.ContentNode;

html-textview-master/HtmlSpanner/src/main/java/net/nightwhistler/htmlspanner/SpanCallback.java renamed to html-textview-master/HtmlSpanner/src/main/java/com/sysdata/htmlspanner/SpanCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.nightwhistler.htmlspanner;
1+
package com.sysdata.htmlspanner;
22

33
import android.text.SpannableStringBuilder;
44

html-textview-master/HtmlSpanner/src/main/java/net/nightwhistler/htmlspanner/SpanStack.java renamed to html-textview-master/HtmlSpanner/src/main/java/com/sysdata/htmlspanner/SpanStack.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package net.nightwhistler.htmlspanner;
1+
package com.sysdata.htmlspanner;
22

33
import android.text.Spannable;
44
import android.text.SpannableStringBuilder;
55
import android.util.Log;
6-
import net.nightwhistler.htmlspanner.css.CompiledRule;
7-
import net.nightwhistler.htmlspanner.style.Style;
6+
import com.sysdata.htmlspanner.css.CompiledRule;
7+
import com.sysdata.htmlspanner.style.Style;
88
import org.htmlcleaner.TagNode;
99

1010
import java.util.*;

html-textview-master/HtmlSpanner/src/main/java/net/nightwhistler/htmlspanner/SystemFontResolver.java renamed to html-textview-master/HtmlSpanner/src/main/java/com/sysdata/htmlspanner/SystemFontResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.nightwhistler.htmlspanner;
1+
package com.sysdata.htmlspanner;
22

33
import android.graphics.Typeface;
44
import android.util.Log;

html-textview-master/HtmlSpanner/src/main/java/net/nightwhistler/htmlspanner/TagNodeHandler.java renamed to html-textview-master/HtmlSpanner/src/main/java/com/sysdata/htmlspanner/TagNodeHandler.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package net.nightwhistler.htmlspanner;
17-
18-
import android.text.Spannable;
19-
import android.text.Spanned;
20-
import android.text.style.ForegroundColorSpan;
21-
import android.text.style.UnderlineSpan;
22-
import android.util.Log;
23-
import net.nightwhistler.htmlspanner.spans.FontFamilySpan;
24-
import net.nightwhistler.htmlspanner.spans.LineHeightSpanImpl;
25-
import net.nightwhistler.htmlspanner.spans.VerticalMarginSpan;
16+
package com.sysdata.htmlspanner;
2617

2718
import org.htmlcleaner.TagNode;
2819

0 commit comments

Comments
 (0)