Skip to content

Commit 653e15c

Browse files
author
RiskyN
committed
First commit
0 parents  commit 653e15c

18 files changed

Lines changed: 1614 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build
2+
3+
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
4+
concurrency:
5+
group: "build"
6+
cancel-in-progress: true
7+
8+
on:
9+
push:
10+
branches:
11+
# choose your default branch
12+
- master
13+
- main
14+
paths-ignore:
15+
- '*.md'
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@master
23+
with:
24+
path: "src"
25+
26+
- name: Checkout builds
27+
uses: actions/checkout@master
28+
with:
29+
ref: "builds"
30+
path: "builds"
31+
32+
- name: Clean old builds
33+
run: rm -f $GITHUB_WORKSPACE/builds/*.cs3
34+
35+
- name: Setup JDK 17
36+
uses: actions/setup-java@v1
37+
with:
38+
java-version: 17
39+
40+
- name: Setup Android SDK
41+
uses: android-actions/setup-android@v2
42+
43+
- name: Build Plugins
44+
run: |
45+
cd $GITHUB_WORKSPACE/src
46+
chmod +x gradlew
47+
./gradlew make makePluginsJson
48+
cp **/build/*.cs3 $GITHUB_WORKSPACE/builds
49+
cp build/plugins.json $GITHUB_WORKSPACE/builds
50+
cp repo.json $GITHUB_WORKSPACE/builds
51+
52+
- name: Push builds
53+
run: |
54+
cd $GITHUB_WORKSPACE/builds
55+
git config --local user.email "actions@github.com"
56+
git config --local user.name "GitHub Actions"
57+
git add .
58+
git commit --amend -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit
59+
git push --force

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea
5+
.DS_Store
6+
/build
7+
**/build
8+
/captures
9+
.externalNativeBuild
10+
.cxx
11+
local.properties
12+
.vscode

AnimeVerse/build.gradle.kts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
dependencies {
2+
implementation("com.google.android.material:material:1.12.0")
3+
implementation("androidx.recyclerview:recyclerview:1.3.2")
4+
testImplementation("junit:junit:4.13.2")
5+
testImplementation("org.mozilla:rhino:1.7.15")
6+
testImplementation(files("C:/Users/user/.gradle/caches/cloudstream/cloudstream/cloudstream.jar"))
7+
}
8+
9+
version = 1
10+
11+
cloudstream {
12+
description = "AnimeVerse Provider"
13+
authors = listOf("errorcode26")
14+
status = 1
15+
tvTypes = listOf("Anime", "AnimeMovie")
16+
requiresResources = false
17+
language = "en"
18+
}
19+
20+
android {
21+
namespace = "com.animeverse"
22+
buildFeatures {
23+
buildConfig = true
24+
viewBinding = false
25+
}
26+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest />
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.animeverse
2+
3+
import android.content.Context
4+
import com.lagradost.cloudstream3.plugins.CloudstreamPlugin
5+
import com.lagradost.cloudstream3.plugins.Plugin
6+
7+
@CloudstreamPlugin
8+
class AnimeVersePlugin: Plugin() {
9+
override fun load(context: Context) {
10+
// Register the provider
11+
registerMainAPI(AnimeVerseProvider())
12+
}
13+
}

0 commit comments

Comments
 (0)