Skip to content

Commit

Permalink
release 0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Miha-x64 committed Nov 3, 2019
1 parent f8e5c31 commit 39fa23f
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 24 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

[![Download](https://api.bintray.com/packages/miha-x64/maven/net.aquadc.properties%3Apersistence/images/download.svg)](https://bintray.com/miha-x64/maven/net.aquadc.properties%3Apersistence/_latestVersion) Persistence

[![Download](https://api.bintray.com/packages/miha-x64/maven/net.aquadc.properties%3Aextended-persistence/images/download.svg)](https://bintray.com/miha-x64/maven/net.aquadc.properties%3Aextended-persistence/_latestVersion) Extended Persistence

[![Download](https://api.bintray.com/packages/miha-x64/maven/net.aquadc.properties%3Aandroid-bindings/images/download.svg)](https://bintray.com/miha-x64/maven/net.aquadc.properties%3Aandroid-bindings/_latestVersion) Android Bindings

```
Expand All @@ -26,10 +28,10 @@ repositories {
// module-level build.gradle
dependencies {
implementation 'net.aquadc.properties:properties:0.0.9' // core, both for JVM and Android
implementation 'net.aquadc.properties:persistence:0.0.9' // persistence for JVM and Android
implementation 'net.aquadc.properties:extended-persistence:0.0.9' // Partial Structs, unsigned types, primitive arrays
implementation 'net.aquadc.properties:android-bindings:0.0.9' // Android-only AAR package
implementation 'net.aquadc.properties:properties:0.0.10' // core, both for JVM and Android
implementation 'net.aquadc.properties:persistence:0.0.10' // persistence for JVM and Android
implementation 'net.aquadc.properties:extended-persistence:0.0.10' // Partial Structs, unsigned types, primitive arrays
implementation 'net.aquadc.properties:android-bindings:0.0.10' // Android-only AAR package
}
```

Expand Down
2 changes: 1 addition & 1 deletion android-bindings/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=Android bindings for Reactive Properties.
POM_BINTRAY_NAME=net.aquadc.properties:android-bindings
POM_ARTIFACT_ID=android-bindings
POM_PACKAGING=jar
POM_VERSION=0.0.9
POM_VERSION=0.0.10
20 changes: 10 additions & 10 deletions bintray/bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ version = libraryVersion

if (project.hasProperty("android")) { // Android libraries
task sourcesJar(type: Jar) {
classifier = 'sources'
archiveClassifier.set 'sources'
from android.sourceSets.main.java.srcDirs
}

task javadoc(type: Javadoc) {
/*task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
Expand All @@ -20,33 +20,33 @@ if (project.hasProperty("android")) { // Android libraries
}
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
classifier = 'javadoc'
archiveClassifier.set 'javadoc'
from "$buildDir/javadoc"
}
}*/
} else { // Java libraries
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier.set 'sources'
from sourceSets.main.allSource
}

apply plugin: "org.jetbrains.dokka"
/*apply plugin: "org.jetbrains.dokka"
task dokkaJavadoc(type: dokka.getClass()) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
}
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
classifier = 'javadoc'
archiveClassifier.set 'javadoc'
from "$buildDir/javadoc"
}
}*/
}

bintrayUpload.dependsOn assemble
bintrayUpload.dependsOn sourcesJar
bintrayUpload.dependsOn javadocJar
//bintrayUpload.dependsOn javadocJar

artifacts {
archives javadocJar
// archives javadocJar
archives sourcesJar
}

Expand Down
2 changes: 1 addition & 1 deletion extended-persistence/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=Additional DataType implementations
POM_BINTRAY_NAME=net.aquadc.properties:extended-persistence
POM_ARTIFACT_ID=extended-persistence
POM_PACKAGING=jar
POM_VERSION=0.0.9
POM_VERSION=0.0.10
2 changes: 1 addition & 1 deletion persistence/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=Universal observable persistence.
POM_BINTRAY_NAME=net.aquadc.properties:persistence
POM_ARTIFACT_ID=persistence
POM_PACKAGING=jar
POM_VERSION=0.0.9
POM_VERSION=0.0.10
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ inline class StructBuilder<SCH : Schema<SCH>> /*internal*/ constructor(
/**
* Asserts that the given field is set and gets its value.
* Useful for patching structures deeply:
* struct.copy {
* it[Nested] = it[Nested].copy {
* it[SomeField] = newValue
* }
* }
* ```
* struct.copy {
* it[Nested] = it[Nested].copy {
* it[SomeField] = newValue
* }
* }
* ```
*/
operator fun <T> get(key: FieldDef<SCH, T, *>): T {
val v = values[key.ordinal.toInt()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ sealed class FieldDef<SCH : Schema<SCH>, T, DT : DataType<T>>(
this in struct.fields

/**
* Returns value of [this] field for the given [struct], or `null`, if it is absent.
* Returns value of this field for the given [struct], or `null`, if it is absent.
*/
override fun invoke(struct: PartialStruct<SCH>): T? =
if (this in struct.fields) struct.getOrThrow(this)
Expand Down
2 changes: 1 addition & 1 deletion properties/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ POM_DESCRIPTION=Lightweight properties / subjects.
POM_BINTRAY_NAME=net.aquadc.properties:properties
POM_ARTIFACT_ID=properties
POM_PACKAGING=jar
POM_VERSION=0.0.9
POM_VERSION=0.0.10

0 comments on commit 39fa23f

Please sign in to comment.