Skip to content

Commit

Permalink
PubNub SDK v5.0.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
client-engineering-bot committed Aug 12, 2020
1 parent bf75b33 commit 54b375e
Show file tree
Hide file tree
Showing 237 changed files with 8,021 additions and 4,468 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @kleewho @bartk @qsoftdevelopment @Chesteer89
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ build/
bin/
gen/
out/
/src/test/resources/config.properties
/src/test/resources/config.properties
*.DS_STORE
20 changes: 16 additions & 4 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
name: kotlin
version: 1.0.0
version: 5.0.0
schema: 1
scm: github.com/pubnub/kotlin
files:
- build/libs/pubnub-kotlin-1.0.0-all.jar
- build/libs/pubnub-kotlin-5.0.0-all.jar
changelog:
- version: v1.0.0
-
version: v5.0.0
date: 2020-08-12
changes:
-
type: improvement
text: "PubNub methods will no longer support builder style calls and will use named arguments instead."
- version: v4.0.1
date: 2020-07-28
changes:
- type: feature
text: kdoc (javadoc)
- version: v4.0.0
date: 2020-06-11
changes:
- type: feature
Expand Down Expand Up @@ -112,4 +124,4 @@ supported-platforms:
- Java8+
- version: PubNub Android SDK
platforms:
- Android 2.3.1+
- Android 2.3.1+
47 changes: 47 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
language: java
dist: trusty
os: linux

before_install:
- wget https://oss.sonatype.org/service/local/repositories/releases/content/com/codacy/codacy-coverage-reporter/2.0.0/codacy-coverage-reporter-2.0.0-assembly.jar

install: skip


stages:
- name: "test"
if: |
type != pull_request \
AND tag IS blank
- name: "code coverage"
if: |
type == pull_request
- name: validate
if: |
branch = master \
AND type != pull_request \
AND tag IS blank
jobs:
include:
- stage: "test"
name: "Build & test"
jdk: oraclejdk8
dist: trusty
script:
- ./gradlew assemble
- ./gradlew check
- stage: "code coverage"
name: "Code coverage"
jdk: oraclejdk8
dist: trusty
script:
- ./gradlew assemble
- ./gradlew check
after_success:
- java -cp ~/codacy-coverage-reporter-2.0.0-assembly.jar com.codacy.CodacyCoverageReporter -l Java -r build/reports/jacoco/test/jacocoTestReport.xml
- stage: "validate"
name: "Validate clean build & test"
jdk: oraclejdk8
dist: trusty
script: ./gradlew clean build
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## [v5.0.0](https://github.com/pubnub/kotlin/releases/tag/v5.0.0)
August 12 2020

[Full Changelog](https://github.com/pubnub/kotlin/compare/v1.0.0...v5.0.0)

- PubNub methods will no longer support builder style calls and will use named arguments instead.


36 changes: 32 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@

# kotlin

## Using your PubNub keys

If you would like to run integration tests against your keys, Execute the following commands to add your publish, subscribe and secret keys to your local copy of the SDK:

If you would like to run integration tests against your keys, Execute the following commands to add your publish, subscribe and secret keys to your local copy of the SDK.

```bash
cd src/test/resources/
Expand All @@ -13,4 +11,34 @@ echo sub_key=YOUR_SUB_KEY >> config.properties
echo pam_pub_key=YOUR_PAM_PUB_KEY >> config.properties
echo pam_sub_key=YOUR_PAM_SUB_KEY >> config.properties
echo pam_sec_key=YOUR_PAM_SEC_KEY >> config.properties
```
```

Please create two keys:
- with disabled Access Manager - pub, sub
- with enabled Access Manager - pam_pub, pam_sub, pam_sec

Configuration of the rest functionality should be:

| Key | Value |
| -------------------------------- | --------------------------- |
| **PRESENCE** | **ON** |
| Announce Max | 20 |
| Interval | 30 |
| Presence Deltas | OFF |
| Generate Leave on TCP FIN or RST | ON |
| Global Here Now | ON |
| Stream Filtering | ON |
| Debounce | 2 |
| **STORAGE & PLAYBACK** | **ON** |
| Retention | 7 Day |
| Enable Delete-From-History | ON |
| Include presence events | ON |
| **STREAM CONTROLLER** | |
| Enable Wildcard Subscribe | ON |
| **OBJECTS** | |
| Region | select nearest one |
| User Metadata Events | ON |
| Channel Metadata Events | ON |
| Membership Events | ON |
| **PUBNUB FUNCTIONS** | ON |
| **ACCESS MANAGER** | ON for PAM, OFF default |
81 changes: 60 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,60 +3,99 @@ plugins {
id 'maven'
id 'com.github.johnrengelman.shadow' version '4.0.2'
id 'java-library'
id 'java-test-fixtures'
id 'com.bmuschko.nexus' version '2.3.1'
id "org.jlleitschuh.gradle.ktlint" version "9.2.1"
id "jacoco"
id 'org.jetbrains.dokka' version '0.10.1'
id 'org.unbroken-dome.test-sets' version '3.0.1'
}

group = 'com.pubnub'
version = '4.0.0'
version = '5.0.0'

repositories {
mavenCentral()
jcenter()
}

testSets {
integrationTest
}

sourceSets {
test {
resources {
srcDir 'src/testFixtures/resources'
}
}
integrationTest {
resources {
srcDir 'src/testFixtures/resources'
}
}
}

configurations {
allTest
testFixturesImplementation { extendsFrom allTest }
integrationTestImplementation { extendsFrom allTest }
testImplementation { extendsFrom allTest }
}

dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"

implementation("com.squareup.retrofit2:retrofit:2.6.2")
implementation "com.squareup.retrofit2:retrofit:2.6.2"

api group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.12.6'
api "com.squareup.okhttp3:logging-interceptor:3.12.6"

api 'com.google.code.gson:gson:2.8.6'
implementation group: 'com.squareup.retrofit2', name: 'converter-gson', version: '2.6.2'

implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.28'
implementation "com.squareup.retrofit2:converter-gson:2.6.2"

testImplementation 'org.awaitility:awaitility-kotlin:4.0.1'
testImplementation 'com.github.tomakehurst:wiremock:2.26.3'
implementation "org.slf4j:slf4j-api:1.7.28"

implementation group: 'org.json', name: 'json', version: '20190722'
implementation "org.json:json:20190722"

testImplementation 'org.junit.jupiter:junit-jupiter:5.6.2'
allTest "junit:junit:4.12"
allTest "org.awaitility:awaitility-kotlin:4.0.3"
allTest "com.github.tomakehurst:wiremock:2.26.3"

testImplementation group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
testImplementation group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3'
allTest "ch.qos.logback:logback-classic:1.2.3"
allTest "ch.qos.logback:logback-core:1.2.3"
allTest "org.json:json:20190722"
allTest "dev.nohus:AutoKonfig:1.0.0"
}

shadowJar {
classifier = "all"
dependencies {
exclude(dependency('org.jetbrains.kotlin:.*'))
}
dependencies {
exclude(dependency('org.jetbrains:annotations:.*'))
}
}

test {
failFast = true
}

dokka {
outputFormat = 'html'
outputFormat = 'gfm'
outputDirectory = "$buildDir/dokka"
configuration {
includeNonPublic = false
skipEmptyPackages = true
}
}

ktlint {
verbose = true
additionalEditorconfigFile.set(file("check/.editorconfig"))
}

tasks.withType(Test) {
useJUnitPlatform {
includeEngines 'junit-jupiter'
additionalEditorconfigFile = file("check/.editorconfig")
kotlinScriptAdditionalPaths {
include fileTree("src/integrationTest/")
include fileTree("src/testFixtures/")
}
}

Expand Down Expand Up @@ -89,7 +128,7 @@ modifyPom {
' broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter\n' +
' second!'
url 'https://github.com/pubnub/kotlin'
inceptionYear '2009'
inceptionYear '2020'

scm {
url 'https://github.com/pubnub/kotlin'
Expand Down
Binary file added codacy-coverage-reporter-2.0.0-assembly.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Wed Oct 23 15:55:29 CEST 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
Loading

0 comments on commit 54b375e

Please sign in to comment.