Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: tuancoltech
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand All @@ -12,4 +12,4 @@ lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cl
polar: # Replace with a single Polar username
buy_me_a_coffee: tuancoltech
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
custom: [![Donate Crypto (ERC-20)](https://img.shields.io/badge/Donate-Crypto%20(ERC%E2%80%9120)-brightgreen)](https://etherscan.io/address/0x9D8dC28E9d9C4C5a387A858182edF9ab8B90F565)
29 changes: 29 additions & 0 deletions .github/workflows/connected-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: connectedCheck

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
strategy:
matrix:
api-level: [28, 29]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm

- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
script: ./gradlew connectedCheck
23 changes: 23 additions & 0 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Gradle Build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
java: [17, 21]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- uses: gradle/gradle-build-action@v3
- run: ./gradlew clean build
19 changes: 19 additions & 0 deletions .github/workflows/gradle-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Gradle Lint

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- uses: gradle/gradle-build-action@v3
- run: ./gradlew lint
35 changes: 0 additions & 35 deletions .github/workflows/main.yml

This file was deleted.

32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,39 @@ Grab via Maven:
Gradle:
```groovy
dependencies {
implementation 'io.crossbar.autobahn:autobahn-android:21.7.1'
implementation 'io.crossbar.autobahn:autobahn-android:21.7.2'
}
```

In your root `build.gradle`, add:
```groovy

def properties = new Properties()
properties.load(project.rootProject.file("local.properties").newDataInputStream())
def autoBahnActor = properties.getProperty("AUTOBAHN_ACTOR")
def autoBahnToken = properties.getProperty("AUTOBAHN_TOKEN")

allprojects {
repositories {
// ...
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/tuancoltech/autobahn-kotlin")
credentials {
username = autoBahnActor
password = autoBahnToken
}
}
}
}
```

In your root `local.properties`, add:
```
AUTOBAHN_TOKEN=<Your Personal Access Token>
AUTOBAHN_ACTOR=<Your Github username>
```

For non-android systems use artifactID `autobahn-java` or just
Download [the latest JAR](https://search.maven.org/remote_content?g=io.crossbar.autobahn&a=autobahn-java&v=LATEST)

Expand Down
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:8.4.2"
// classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24" // if Kotlin
}
}

allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
}
}
}

def IS_ANDROID = project.hasProperty('IS_ANDROID') ? project.IS_ANDROID: true
def IS_NEXT = project.hasProperty('IS_NEXT') ? project.IS_NEXT: false
def IS_NETTY = project.hasProperty('IS_NETTY') ? project.IS_NETTY: false
Expand Down
5 changes: 3 additions & 2 deletions demo-gallery/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: project.IS_ANDROID ? project.PLUGIN_ANDROID_APP: project.PLUGIN_JAVA_APP
def IS_ANDROID = project.hasProperty('IS_ANDROID') ? project.IS_ANDROID: true
apply plugin: IS_ANDROID ? 'com.android.application': 'application'

if (plugins.hasPlugin(project.PLUGIN_ANDROID_APP)) {
if (plugins.hasPlugin('com.android.application')) {
android {

defaultConfig {
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Aug 18 10:18:14 ICT 2025
#Tue Aug 19 09:53:07 ICT 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading