Remove unnecessary Android-specific stuff (#319)

This commit is contained in:
Jorge Antonio Díaz-Benito Soriano 2018-05-03 15:39:37 +02:00 committed by Ramona Harrison
parent 2866e4bd95
commit d26d50a5b6
9 changed files with 40 additions and 153 deletions

View file

@ -2,11 +2,11 @@
![Store Logo](https://raw.githubusercontent.com/NYTimes/Store/feature/rx2/Images/store-logo.png) ![Store Logo](https://raw.githubusercontent.com/NYTimes/Store/feature/rx2/Images/store-logo.png)
Store is an Android library for effortless, reactive data loading. Store is a Java library for effortless, reactive data loading.
### The Problems: ### The Problems:
+ Modern Android Apps need their data representations to be fluid and always available. + Modern software needs data representations to be fluid and always available.
+ Users expect their UI experience to never be compromised (blocked) by new data loads. Whether an application is social, news, or business-to-business, users expect a seamless experience both online and offline. + Users expect their UI experience to never be compromised (blocked) by new data loads. Whether an application is social, news, or business-to-business, users expect a seamless experience both online and offline.
+ International users expect minimal data downloads as many megabytes of downloaded data can quickly result in astronomical phone bills. + International users expect minimal data downloads as many megabytes of downloaded data can quickly result in astronomical phone bills.

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.nytimes.android.external.cache">
<application>
</application>
</manifest>

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.nytimes.android.filesystem">
<application>
</application>
</manifest>

View file

@ -94,111 +94,55 @@ afterEvaluate { project ->
sign configurations.archives sign configurations.archives
} }
if (project.getPlugins().hasPlugin('com.android.application') || install {
project.getPlugins().hasPlugin('com.android.library')) { repositories.mavenInstaller {
task install(type: Upload, dependsOn: assemble) { pom.groupId = GROUP
repositories.mavenInstaller { pom.artifactId = POM_ARTIFACT_ID
configuration = configurations.archives pom.version = VERSION_NAME
pom.groupId = GROUP pom.project {
pom.artifactId = POM_ARTIFACT_ID name POM_NAME
pom.version = VERSION_NAME packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL
pom.project { scm {
name POM_NAME url POM_SCM_URL
packaging POM_PACKAGING connection POM_SCM_CONNECTION
description POM_DESCRIPTION developerConnection POM_SCM_DEV_CONNECTION
url POM_URL }
scm { licenses {
url POM_SCM_URL license {
connection POM_SCM_CONNECTION name POM_LICENCE_NAME
developerConnection POM_SCM_DEV_CONNECTION url POM_LICENCE_URL
distribution POM_LICENCE_DIST
} }
}
licenses { developers {
license { developer {
name POM_LICENCE_NAME id POM_DEVELOPER_ID
url POM_LICENCE_URL name POM_DEVELOPER_NAME
distribution POM_LICENCE_DIST
}
}
developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
} }
} }
} }
} }
}
task androidJavadocs(type: Javadoc) { task sourcesJar(type: Jar, dependsOn:classes) {
source = android.sourceSets.main.java.source classifier = 'sources'
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) from sourceSets.main.allSource
} }
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc' classifier = 'javadoc'
from androidJavadocs.destinationDir from javadoc.destinationDir
} }
task androidSourcesJar(type: Jar) { task kotlinJavadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'sources' classifier = 'javadoc'
from android.sourceSets.main.java.source from "$buildDir/dokka"
}
} else {
install {
repositories.mavenInstaller {
pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME
pom.project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL
scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}
licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}
developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}
}
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task kotlinJavadocJar(type: Jar, dependsOn:javadoc) {
classifier = 'javadoc'
from "$buildDir/dokka"
}
} }
if (JavaVersion.current().isJava8Compatible()) { if (JavaVersion.current().isJava8Compatible()) {
@ -210,8 +154,7 @@ afterEvaluate { project ->
} }
artifacts { artifacts {
if (project.getPlugins().hasPlugin('com.android.application') || if (project.getPlugins().hasPlugin('com.android.application')) {
project.getPlugins().hasPlugin('com.android.library')) {
archives androidSourcesJar archives androidSourcesJar
archives androidJavadocsJar archives androidJavadocsJar
} else { } else {

View file

@ -1,11 +0,0 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nytimes.android.external.store.middleware.jackson">
<application android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true"
>
</application>
</manifest>

View file

@ -1,6 +0,0 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nytimes.android.external.store.middleware.moshi">
<application />
</manifest>

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.nytimes.android.external.store.middleware">
<application>
</application>
</manifest>

View file

@ -1,3 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.nytimes.android.external.store-kotlin"/>

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
package="com.nytimes.android.external.store">
<application>
</application>
</manifest>