Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Kotlin/Js support #78

Open
wants to merge 267 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
267 commits
Select commit Hold shift + click to select a range
38c917d
Reworked Instant, continued flushing out API
erikc5000 Sep 17, 2019
2b958e6
Introduced and improved numerous operators in the process of flushing…
erikc5000 Sep 18, 2019
1d63677
Fixed iOS build
erikc5000 Sep 18, 2019
fcfd9f0
Added now() methods to create date-time objects from the current instant
erikc5000 Sep 19, 2019
c5a580d
Renamed RegionalDateTime since it's just too much to type
erikc5000 Sep 19, 2019
6cc2a06
Fixed iOS build error
erikc5000 Sep 19, 2019
ff8769e
Added more Instant functionality
erikc5000 Sep 20, 2019
3296846
Removed companion invoke() and added new Unix epoch properties
erikc5000 Sep 20, 2019
07d2c58
Added negateExact()
erikc5000 Sep 20, 2019
22edc5f
Renamed tz package to zone
erikc5000 Sep 20, 2019
1f6c114
Reworked the clock classes and made now() functions extensions to fac…
erikc5000 Sep 22, 2019
b760136
Build fixes
erikc5000 Sep 22, 2019
8f8e695
Fixed iOS system clock implementation
erikc5000 Sep 22, 2019
170e99b
Added --standalone to so xcrun works with XCode 11
erikc5000 Sep 22, 2019
249f483
Moved everything to io.islandtime package
erikc5000 Sep 22, 2019
1e80638
Added more iOS conversions
erikc5000 Sep 22, 2019
873227d
Remove companion invoke() from year and require explicit validation to
erikc5000 Sep 22, 2019
fb52114
Added WIP support for a wider range of time intervals -- this is all …
erikc5000 Oct 3, 2019
111ba4a
Renamed interval package to "measures"
erikc5000 Oct 3, 2019
141b10c
Test fixes
erikc5000 Oct 3, 2019
a9362a9
iOS build fixes
erikc5000 Oct 3, 2019
7b911ed
Fixed time zone rules transitionAt() bug in threetenabp extensions
erikc5000 Oct 3, 2019
cce49c3
Make conversion to Instant a function rather than property
erikc5000 Oct 3, 2019
c19e908
Fixed still broken threetenabp time zone rules
erikc5000 Oct 3, 2019
4f3e48d
Bumped KotlinPoet to 1.4.0
erikc5000 Oct 4, 2019
f47acc2
Added ability to add/subtract Period and Duration to date-time types
erikc5000 Oct 4, 2019
41a939f
Added additional unit conversion and truncation functions to Duration
erikc5000 Oct 8, 2019
49fe903
Added functions to quickly adjust day of week and get to start/end of…
erikc5000 Oct 10, 2019
eacbf2d
First attempt at getting Travis CI going
erikc5000 Oct 11, 2019
8afeb46
Travis adjustments, round 1
erikc5000 Oct 11, 2019
5282da4
Travis adjustments, round 2
erikc5000 Oct 11, 2019
9d61ae0
Travis adjustments, round 3
erikc5000 Oct 12, 2019
a3c2260
Travis adjustments, round 4
erikc5000 Oct 12, 2019
76a2d8e
Travis adjustments, round 5
erikc5000 Oct 12, 2019
9ed57db
Travis adjustments, round 6
erikc5000 Oct 12, 2019
fd5fbda
Added full Maven publishing support
erikc5000 Oct 18, 2019
4e646c8
Added CI deployment to Maven Central
erikc5000 Oct 18, 2019
8c686eb
Fix CI deployment (hopefully)
erikc5000 Oct 19, 2019
86dbb65
More publishing fixes
erikc5000 Oct 19, 2019
371e5d1
Bump Gradle to 5.6.3
erikc5000 Oct 19, 2019
aba6bc7
Added README file
erikc5000 Oct 19, 2019
d3eb9d8
Updated README
erikc5000 Oct 19, 2019
b3d5f95
Added macOS target
erikc5000 Oct 22, 2019
470ff9f
Added a "grouped" date-time parser to handle interval parsing and reo…
erikc5000 Oct 24, 2019
34befa1
Renamed properties and improved documentation
erikc5000 Oct 25, 2019
1ccbbd0
Removed accidental commit
erikc5000 Oct 25, 2019
df5f781
Try increasing Gradle JVM heap size to see if it fixes spurious build…
erikc5000 Oct 25, 2019
b25495a
Removed more accidental check-ins
erikc5000 Oct 25, 2019
0b641e5
Renamed time zone rules providers and now using platform provider by …
erikc5000 Oct 28, 2019
0d09a47
Renamed Java conversion functions and added a few that were missing
erikc5000 Oct 28, 2019
d6092dc
README fixes
erikc5000 Oct 28, 2019
81cd55f
Try to fix Android emulator
erikc5000 Oct 28, 2019
c233419
Travis fixes for Android emulator, try 2
erikc5000 Oct 28, 2019
8a6fdd9
Travis fixes for Android emulator, try 3
erikc5000 Oct 28, 2019
6b16b02
Travis fixes for Android emulator, try 4
erikc5000 Oct 28, 2019
bd3b935
Travis fixes for Android emulator, try 5
erikc5000 Oct 28, 2019
345b66e
Minor tweaks, mainly to docs
erikc5000 Oct 28, 2019
3c3bfc0
Minor tweaks to ZonedDateTime constructors
erikc5000 Oct 28, 2019
a1ec19d
Travis fixes for Android emulator, try 6
erikc5000 Oct 28, 2019
9c03704
Build fix
erikc5000 Oct 28, 2019
d999fbf
Travis fixes for Android emulator, try 7
erikc5000 Oct 28, 2019
871519e
Travis fixes for Android emulator, try 8
erikc5000 Oct 28, 2019
1b33782
Travis fixes for Android emulator, try 9
erikc5000 Oct 28, 2019
5938130
Bump KotlinPoet to 1.4.1
erikc5000 Oct 28, 2019
eabef4e
Added contains operators to check if a smaller calendrical unit is wi…
erikc5000 Oct 28, 2019
6da48a1
UtcOffset documentation clean up -- and made toComponents() inline
erikc5000 Oct 29, 2019
dae12fa
Fixed forced duration unit lengthening being unnecessarily applied on…
erikc5000 Oct 29, 2019
a3a7cc3
Bump Gradle to 5.6.4
erikc5000 Nov 2, 2019
a834925
Make buildIsoString() inline
erikc5000 Nov 2, 2019
8a8b336
Cleaned up a lot of edge cases around time zones, particularly when d…
erikc5000 Nov 3, 2019
62c22c9
Make withInclusiveEnd() methods internal
erikc5000 Nov 5, 2019
0b688fa
Bump AGP to 3.6.0-beta02
erikc5000 Nov 5, 2019
5f3a1be
Added support for open start and end in DateRange
erikc5000 Nov 6, 2019
c20c89e
Cleaned up packaged parsers and removed some of the ordinal ones
erikc5000 Nov 6, 2019
05e9f4c
Cleaned up lint, style errors, and dead code
erikc5000 Nov 6, 2019
e0c53d4
Removed invoke() construction from Time (#1)
erikc5000 Nov 6, 2019
1e8f4b3
Added conversions to InstantInterval from other ranges, harmonized na…
erikc5000 Nov 8, 2019
e5aadce
Update to AGP 3.6.0-beta03
erikc5000 Nov 8, 2019
1501c8f
Documentation updates
erikc5000 Nov 10, 2019
cb27b4f
More documentation updates.
erikc5000 Nov 10, 2019
7058dfd
More documentation updates
erikc5000 Nov 10, 2019
42ccc12
Documentation tweaks
erikc5000 Nov 10, 2019
6dc30c0
Documentation and naming updates
erikc5000 Nov 10, 2019
92d14e0
Converted Instant to a non-inline class, cleaned up the API, and expa…
erikc5000 Nov 10, 2019
0377675
Fixed broken iOS tests
erikc5000 Nov 10, 2019
d59cac1
Cleaned up ranges/intervals and expanded documentation/tests
erikc5000 Nov 11, 2019
820a20e
Expanded documentation
erikc5000 Nov 11, 2019
925e967
Removed invoke() constructors from DayOfWeek and Month (#1)
erikc5000 Nov 12, 2019
7388637
Expanded documentation
erikc5000 Nov 12, 2019
b6def1a
Converted YearMonth from inline class to regular class (#3)
erikc5000 Nov 13, 2019
5893d8e
Clean ups to DayOfWeek and Month (support Long in add/subtract and ve…
erikc5000 Nov 13, 2019
da6e86e
Expanded documentation and renamed/reworked properties/methods in eff…
erikc5000 Nov 13, 2019
cf4af38
Fix mismatched parameter name
erikc5000 Nov 14, 2019
aa6fd07
Bump AGP to 3.6.0-beta04
erikc5000 Nov 15, 2019
6ca9864
Revamped code generation to include day-based units and eliminate the…
erikc5000 Nov 15, 2019
3ec0612
Coverted a few properties to functions to be more consistent with the…
erikc5000 Nov 16, 2019
020ba55
Fixed iOS dependencies not getting published correctly
erikc5000 Nov 18, 2019
c7c6ee7
Minor cleanup in iOS time zone rules
erikc5000 Nov 18, 2019
72cdbc0
Updated README
erikc5000 Nov 18, 2019
a499b67
Bump Gradle to 6.0.1
erikc5000 Nov 19, 2019
2d10b19
Bump Kotlin to 1.3.60
erikc5000 Nov 19, 2019
6b8c3ed
Bump XCode version to 11
erikc5000 Nov 19, 2019
929da85
Add Kotlin dependency info to the README
erikc5000 Nov 19, 2019
c0ff1d2
Try creating the iOS simulator in travis.yml
erikc5000 Nov 19, 2019
184b5e1
Update .travis.yml
erikc5000 Nov 19, 2019
bca6ec0
Update .travis.yml
erikc5000 Nov 19, 2019
24f19ee
Update .travis.yml
erikc5000 Nov 19, 2019
41b0606
Try fixing Travis simulator setup again
erikc5000 Nov 19, 2019
dfe3d70
Try fixing Travis simulator setup again...
erikc5000 Nov 19, 2019
d0148dd
Removed unused import
erikc5000 Nov 19, 2019
1305fee
Add support for tvOS and watchOS
erikc5000 Nov 19, 2019
ded9765
Back out tvOS and watchOS support since they aren't in Stately right now
erikc5000 Nov 20, 2019
4bc674c
Update README.md
erikc5000 Nov 20, 2019
03cd8d6
Merge pull request #13 from erikc5000/gradle-6.0.1
erikc5000 Nov 20, 2019
e36ae98
Merge remote-tracking branch 'origin/master'
erikc5000 Nov 20, 2019
79d23a7
Further refactoring of TemporalUnitGenerator
erikc5000 Nov 20, 2019
45c1b6b
Make overflow safe operations the default and unchecked internal only
erikc5000 Nov 23, 2019
4a580df
Fixed timesExact() behavior when multiplying Long.MIN_VALUE by -1 on …
erikc5000 Nov 23, 2019
e829503
Code cleanup
erikc5000 Nov 23, 2019
6210c1a
Addressed TODO items with unchecked operations
erikc5000 Nov 23, 2019
34ee158
Add more overflow tests on Period
erikc5000 Nov 23, 2019
ba62e42
Add ability to do scalar * duration or period
erikc5000 Nov 23, 2019
1e6d002
Merge pull request #15 from erikc5000/duration-unit-rework
erikc5000 Nov 23, 2019
8fe75d1
OffsetTime no longer implements Comparable, making it consistent with…
erikc5000 Nov 24, 2019
483b6df
Documentation improvements
erikc5000 Nov 24, 2019
2305586
More documentation improvements
erikc5000 Nov 24, 2019
2ec400c
Updated README -- still a work in progress
erikc5000 Nov 26, 2019
1a60c93
More README updates
erikc5000 Nov 27, 2019
e7ae82e
Update README.md
erikc5000 Nov 27, 2019
fd9ce65
Package re-organization (#16)
erikc5000 Nov 27, 2019
c392145
Update Kotlin to 1.3.61
erikc5000 Nov 27, 2019
6f49144
Make JVM TimeZoneRulesProvider compatible with Android's java.time su…
erikc5000 Nov 27, 2019
c776ef9
More README tweaks
erikc5000 Nov 27, 2019
1c30931
Fix README grammar
erikc5000 Nov 28, 2019
6783713
Add more examples to README
erikc5000 Nov 28, 2019
7e4801e
Make isZero property a function for consistency
erikc5000 Nov 28, 2019
83f8dd9
Throw an exception when creating a range/interval with an inclusive e…
erikc5000 Nov 29, 2019
e7c8d8c
Prepare version 0.1.0
erikc5000 Nov 29, 2019
4e2ece0
Prepare next release
erikc5000 Nov 29, 2019
6e78567
Add jacoco test coverage task for common code
erikc5000 Dec 2, 2019
63bae18
Fixed issue with ZonedDateTime dayOfYear constructor
erikc5000 Dec 6, 2019
d7563cf
Add test coverage for DateTimeInterval
erikc5000 Dec 6, 2019
ff3e0f8
Fix DateTimeInterval equality
erikc5000 Dec 6, 2019
e089e46
Add module with parcelers for all date-time primitives and ranges
erikc5000 Dec 6, 2019
e2ee87d
Bump AGP to 3.6.0-beta05
erikc5000 Dec 6, 2019
14e02f7
Revert Travis changes that didn't work
erikc5000 Dec 6, 2019
4ef3d8a
Revert Travis changes that didn't work
erikc5000 Dec 6, 2019
f5aa4db
Try fixing Android emulator
erikc5000 Dec 6, 2019
81d1dfe
Revert Travis back...
erikc5000 Dec 6, 2019
4c2db0e
Merge pull request #17 from erikc5000/parcelize-extensions
erikc5000 Dec 8, 2019
df6fd47
Try fixing Android emulator on Travis
erikc5000 Dec 8, 2019
677b7ba
Update .travis.yml
erikc5000 Dec 8, 2019
bee2382
Update .travis.yml
erikc5000 Dec 8, 2019
9a6cd9b
Update .travis.yml
erikc5000 Dec 8, 2019
a2af532
Update .travis.yml
erikc5000 Dec 8, 2019
899d887
Update .travis.yml
erikc5000 Dec 9, 2019
41717b4
Update .travis.yml
erikc5000 Dec 9, 2019
379de42
Update .travis.yml
erikc5000 Dec 9, 2019
c45ab4e
Update .travis.yml
erikc5000 Dec 9, 2019
f9640cc
Update .travis.yml
erikc5000 Dec 9, 2019
79892e1
Update .travis.yml
erikc5000 Dec 9, 2019
b643c97
Update .travis.yml
erikc5000 Dec 9, 2019
8574258
Update .travis.yml
erikc5000 Dec 9, 2019
e4caa0a
Update .travis.yml
erikc5000 Dec 9, 2019
20e440b
Update .travis.yml
erikc5000 Dec 9, 2019
12a734c
Update .travis.yml
erikc5000 Dec 9, 2019
2cb9c0b
Update .travis.yml
erikc5000 Dec 9, 2019
53a6d59
Add android-wait-for-emulator script for Travis
erikc5000 Dec 9, 2019
a8db35d
Update .travis.yml
erikc5000 Dec 9, 2019
896cb81
Try working around Android emulator issue again
erikc5000 Dec 10, 2019
6dfd164
Fix system clock test
erikc5000 Dec 11, 2019
17d8c9b
Reset time zone rules provider before each test
erikc5000 Dec 11, 2019
1041634
Fix test/CI issues (#18)
erikc5000 Dec 11, 2019
68bf4c3
Add watchOS and tvOS targets (#19)
erikc5000 Dec 17, 2019
6301b8c
Expand documentation/test coverage, deprecate NsTimeZone.toUtcOffset(…
erikc5000 Dec 22, 2019
02b0ed5
Fix wrong index in StringParser's onEachChar{} (#21)
erikc5000 Dec 26, 2019
20fd0ba
Fix overflow handling when parsing numbers (#22)
erikc5000 Dec 26, 2019
ed5985b
Fix bug in DateTime.millisecondsSinceUnixEpochAt(), increase test cov…
erikc5000 Dec 27, 2019
864f28d
Add download badge to README
erikc5000 Dec 30, 2019
405c1a7
Add artifact with ISO string serializers for kotlinx.serialization (#25)
erikc5000 Jan 8, 2020
1da5bf1
Add locale support (#24)
erikc5000 Jan 10, 2020
3bb21d0
Fix publishing of serialization extensions
erikc5000 Jan 10, 2020
3d1abea
Gradle script clean up
erikc5000 Jan 11, 2020
ce3dc31
Enable debugging for Travis publishing issue
erikc5000 Jan 11, 2020
a8dcb3a
Try build scan to debug publishing issue
erikc5000 Jan 11, 2020
83efa8e
Accept Gradle license terms
erikc5000 Jan 11, 2020
2f53a7a
Try fixing Travis publishing again
erikc5000 Jan 12, 2020
3d6d301
Build fixes, bump AGP and KotlinPoet (#27)
erikc5000 Jan 12, 2020
ad34e4f
Support case-insensitive parsing (#26)
erikc5000 Jan 12, 2020
eb7dd31
By default, respect the system setting for first day of week (#28)
erikc5000 Jan 14, 2020
3bbd22e
Replace Travis with GitHub Actions (#29)
erikc5000 Jan 19, 2020
a6398f6
Update build badge in README
erikc5000 Jan 19, 2020
2dadadc
Replace groups() in GroupedDateTimeParserBuilder with repeat() (#30)
erikc5000 Jan 19, 2020
75c47ad
Work around publishing issue with Gradle project
erikc5000 Jan 20, 2020
a26b5bb
Bump Gradle to 6.1 (#31)
erikc5000 Jan 22, 2020
29cca57
Bump threetenabp to 1.2.2 (#32)
erikc5000 Jan 22, 2020
44a5f54
Bump AGP to 3.6.0-rc02, Dokka to 0.10.1, Gradle to 6.1.1 (#33)
erikc5000 Feb 4, 2020
70d9283
Bump Gradle and AGP versions (#34)
erikc5000 Feb 17, 2020
3b29386
Improve GitHub Actions cache usage (#35)
erikc5000 Feb 17, 2020
a42e985
Duration unit improvements (#36)
erikc5000 Feb 21, 2020
313003b
Split out time zone text from DateTimeTextProvider (#37)
erikc5000 Feb 21, 2020
7533328
Expand the supported year range (#38)
erikc5000 Feb 23, 2020
de8281a
Parser improvements (#39)
erikc5000 Feb 24, 2020
74029aa
Bump Gradle to 6.2.1 and AGP to 3.6.0 final (#40)
erikc5000 Feb 25, 2020
edec062
Fix Instant printing/parsing when DateTime's range is exceeded (#41)
erikc5000 Mar 1, 2020
9050877
Update to Kotlin 1.3.70 (#42)
erikc5000 Mar 6, 2020
a253821
Remove dependency on kotlin-reflect (#43)
erikc5000 Mar 6, 2020
2bfa714
Introduce week range operators (#44)
erikc5000 Mar 11, 2020
9293875
Prepare for 0.2.0 release
erikc5000 Mar 11, 2020
e0df2c1
Merge remote-tracking branch 'origin/master'
erikc5000 Mar 11, 2020
f81db8e
Prepare for next release
erikc5000 Mar 11, 2020
a6d32ef
Remove internal function that accidentally made it into the public AP…
erikc5000 Mar 13, 2020
2677f1d
Add missing hashCode() method to DateTimeInterval (#46)
erikc5000 Mar 13, 2020
d03bdef
Fix minor OffsetDateTimeInterval behavior issues (#47)
erikc5000 Mar 14, 2020
2922abf
Bump Google Truth to 1.0.1, centralize dependency versions (#48)
erikc5000 Mar 14, 2020
8d10415
Add conversions to and from kotlin.time.Duration (#49)
erikc5000 Mar 15, 2020
9890ecd
Add additional conversions to and from Darwin types (#50)
erikc5000 Mar 16, 2020
5f15e3a
Avoid potential library name clashes on native (#51)
erikc5000 Mar 21, 2020
e0915a4
Bump Kotlin to 1.3.71 (#52)
erikc5000 Mar 23, 2020
61deba0
Bump Gradle to 6.3 (#53)
erikc5000 Mar 25, 2020
53c3768
Bump threetenabp to 1.2.3 (#54)
erikc5000 Mar 30, 2020
6548dae
Bump Stately to 1.0.0-a3 (#55)
erikc5000 Mar 30, 2020
e7c9378
Clean up build scripts (#56)
erikc5000 Mar 30, 2020
55c8c11
Prepare for 0.2.1 release
erikc5000 Mar 30, 2020
af8961f
Prepare for next release
erikc5000 Mar 30, 2020
ef6717b
Fix lint issues (#58)
erikc5000 Apr 11, 2020
300d76f
Bump Kotlin to 1.3.72 (#59)
erikc5000 Apr 14, 2020
f526a9e
Fix reversed MIN and MAX on UtcOffset (#60)
erikc5000 Apr 27, 2020
4f4d87c
Improve consistency of Offset*/ZonedDateTime conversion functions/pro…
erikc5000 Apr 30, 2020
7abce9f
Bump Gradle to 6.4.1 (#62)
erikc5000 May 16, 2020
089af30
Bump Stately to 1.0.2-a4 (#63)
erikc5000 May 16, 2020
afea820
Fix interval random() behavior and add randomOrNull() (#64)
erikc5000 May 19, 2020
f4eb275
Fix publishing of atomicfu transitive dependency on native
erikc5000 May 20, 2020
1d73edb
Merge pull request #67 from erikc5000/atomicfu-publish-fix
erikc5000 May 20, 2020
f73a9f9
Add IDEA code style to VCS (#68)
erikc5000 May 20, 2020
a003c2a
Make generateRandom() private instead of internal (#69)
erikc5000 May 20, 2020
4dbc5d1
Documentation improvements (#70)
erikc5000 May 20, 2020
19662e8
Prepare for 0.2.2 release
erikc5000 May 20, 2020
7d270c9
Prepare for next release
erikc5000 May 20, 2020
0129e71
Fix random()/randomOrNull() behavior with half-bounded intervals (#73)
erikc5000 May 22, 2020
5de90c5
Remove duplicated toComponents() code (#74)
erikc5000 May 27, 2020
4726c8c
Rename Unix epoch-related properties/functions for consistency
erikc5000 May 31, 2020
7dd8e29
Expand test coverage
erikc5000 Jun 1, 2020
42a49d7
Rename Unix epoch-related properties/functions for consistency (#75)
erikc5000 Jun 1, 2020
18343d0
Bump KotlinPoet to 1.6.0
erikc5000 Jun 3, 2020
41ce848
Merge pull request #76 from erikc5000/kotlinpoet-1.6.0
erikc5000 Jun 3, 2020
84a0cc0
Improve generated code for duration units (#77)
erikc5000 Jun 4, 2020
0de8feb
basic kotlin/js support
Jun 7, 2020
d882cb9
removed moment/js
Jun 21, 2020
185051a
addressed comments
Jul 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
41 changes: 41 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test pull request

on:
pull_request:
paths-ignore:
- '*.md'

jobs:
macos-build:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Cache Gradle
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Cache Konan
uses: actions/cache@v1
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('buildSrc/build.gradle.kts') }}
restore-keys: |
${{ runner.os }}-konan-

- name: Build and test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 21
script: ./gradlew build connectedCheck

env:
ORG_GRADLE_PROJECT_iosDevice: "iPhone 11"
42 changes: 42 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish

on:
push:
branches:
- master

jobs:
macos-build:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Cache Gradle
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-

- name: Cache Konan
uses: actions/cache@v1
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('buildSrc/build.gradle.kts') }}
restore-keys: |
${{ runner.os }}-konan-

- name: Publish
env:
ORG_GRADLE_PROJECT_repositoryUsername: ${{ secrets.ORG_GRADLE_PROJECT_repositoryUsername }}
ORG_GRADLE_PROJECT_repositoryPassword: ${{ secrets.ORG_GRADLE_PROJECT_repositoryPassword }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingPassword }}
run: |
./gradlew assemble
./gradlew publishAllPublicationsToMavenRepository
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Gradle files
**/.idea/*
!/.idea/codeStyleSettings.xml
!/.idea/codeStyles
.gradle/
.idea/
build/

# Local configuration file
*.iml
local.properties
13 changes: 13 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

236 changes: 236 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


Portions of this codebase are derived from the ThreeTen backport project
(https://github.com/ThreeTen/threetenbp), to which the following copyright
notice applies:

Copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos.

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

* Neither the name of JSR-310 nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.