Compare commits

..

27 Commits

Author SHA1 Message Date
JW
32cb1e0d8f Update pom.xml 2023-08-22 17:39:22 +02:00
JW
3210707bce Update maven-publish.yml 2023-08-22 17:39:04 +02:00
JW
e7f9d6e9d5 Update maven-publish.yml 2023-08-22 17:38:48 +02:00
GitHub Action
03001d607d Update version in pom.xml 2023-08-22 15:33:39 +00:00
JW
cbabad0888 Update pom.xml 2023-08-22 17:32:34 +02:00
JW
09c531e9f4 Update maven-publish.yml 2023-08-22 17:32:17 +02:00
GitHub Action
997c8d399e Update version in pom.xml 2023-08-22 15:30:36 +00:00
JW
668f28e357 Update maven-publish.yml 2023-08-22 17:29:30 +02:00
JW
b332c2f5d8 Update pom.xml 2023-08-22 17:27:57 +02:00
GitHub Action
5be113cbc8 Update version in pom.xml 2023-08-22 15:26:05 +00:00
JW
e0287aaa96 Update pom.xml 2023-08-22 17:24:52 +02:00
JW
8e2759cb1e Update maven-publish.yml 2023-08-22 17:23:32 +02:00
JW
fb9a48376b Update README.md 2023-08-22 14:24:20 +02:00
JW
3741351b7b Update README.md 2023-08-22 14:22:55 +02:00
GitHub Action
7eed221bab Update version in pom.xml 2023-08-22 11:55:25 +00:00
JW
e6089a99a1 Update pom 2023-08-22 13:54:01 +02:00
GitHub Action
7e77b06b93 Update version in pom.xml 2023-08-22 11:47:12 +00:00
JW
8594c0c3a2 Update pom 2023-08-22 13:45:55 +02:00
JW
48e03d960e Merge remote-tracking branch 'origin/master' 2023-08-22 13:44:01 +02:00
JW
fe9deac73a Update pom 2023-08-22 13:43:54 +02:00
GitHub Action
f7c67845eb Update version in pom.xml 2023-08-22 11:36:58 +00:00
JW
55a04b2439 Update pom 2023-08-22 13:35:51 +02:00
JW
9fdab77e5b Update pom 2023-08-22 13:30:46 +02:00
JW
2d6333a817 Update jitpack file 2023-08-22 13:18:13 +02:00
Jacek Wolniewicz
dd0dcb43d2 Merge remote-tracking branch 'origin/master' 2023-08-18 01:41:43 +02:00
Jacek Wolniewicz
77ac427b84 Fix maven 2023-08-18 01:41:35 +02:00
GitHub Action
d2999147a4 Update version in pom.xml 2023-08-17 23:18:12 +00:00
7 changed files with 97 additions and 19 deletions

View File

@@ -32,7 +32,6 @@ jobs:
change_path: "."
short_tags: false
bump_each_commit: false
- name: 2.7 Update version in pom.xml (Release only)
@@ -74,6 +73,10 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add pom.xml
git add API/pom.xml
git add Client/pom.xml
git add TestApplication/pom.xml
git add Tools/pom.xml
git commit -m "Update version in pom.xml"
- name: Push changes
uses: ad-m/github-push-action@master

View File

@@ -10,14 +10,16 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>API</artifactId>
<properties>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.24.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>kr.motd.maven</groupId>

View File

@@ -13,8 +13,6 @@
<dependencies>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
@@ -26,6 +24,18 @@
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.24.1</version>
</dependency>
</dependencies>
<properties>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

View File

@@ -20,9 +20,41 @@ Do you prefer other programming languages?
## Getting started
1. Install the package via Maven
1. Install the package via Maven (dependecies will be simplify in future)
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```
npm i tiktok-live-connector
```xml
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.24.1</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.github.jwdeveloper.TikTok-Live-Java</groupId>
<artifactId>API</artifactId>
<version>0.0.4-Release</version>
</dependency>
<dependency>
<groupId>com.github.jwdeveloper.TikTok-Live-Java</groupId>
<artifactId>Client</artifactId>
<version>0.0.4-Release</version>
</dependency>
```
2. Create your first chat connection

20
ensure-java-16 Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
JV=`java -version 2>&1 >/dev/null | head -1`
echo $JV | sed -E 's/^.*version "([^".]*)\.[^"]*".*$/\1/'
if [ "$JV" != 16 ]; then
case "$1" in
install)
echo "Installing SDKMAN..."
curl -s "https://get.sdkman.io" | bash
source ~/.sdkman/bin/sdkman-init.sh
sdk version
sdk install java 16.0.2-open
;;
use)
echo "must source ~/.sdkman/bin/sdkman-init.sh"
exit 1
;;
esac
fi

View File

@@ -1,2 +1,10 @@
jdk:
- openjdk16
- openjdk16
before_install:
- echo "Before Install"
- bash ensure-java-16 install
install:
- echo "Install"
- if ! bash ensure-java-16 use; then source ~/.sdkman/bin/sdkman-init.sh; fi
- java -version
- mvn install

17
pom.xml
View File

@@ -23,6 +23,15 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>16</source>
<target>16</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
@@ -77,12 +86,6 @@
<version>1.18.22</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.8.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -98,4 +101,4 @@
</dependencies>
</project>
</project>