Skip to content

Commit

Permalink
[feature] 1.新架构
Browse files Browse the repository at this point in the history
  • Loading branch information
heyanLE committed Dec 26, 2023
1 parent 4b0a612 commit c3dd96d
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 149 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: release
on:
push:
tags:
- '**'
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 17
- name: Build
run: |
chmod a+x ./gradlew
./gradlew :app:assemble
- name: sign-apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: app/build/outputs/apk/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.KEY_ALIAS }}
keyStorePassword: ${{ secrets.KEY_STORE_PWD }}
keyPassword: ${{ secrets.KEY_PWD }}
- name: rename-apk
run: mv app/build/outputs/apk/release/app-release-unsigned-signed.apk easybangumi-${{ github.ref_name }}.apk
- name: Release
run: |
gh release create -d ${{ github.ref_name }} kan-animation-${{ github.ref_name }}.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion app-old/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

import com.heyanle.buildsrc.Android
import com.heyanle.buildsrc.Config
import com.heyanle.buildsrc.RoomSchemaArgProvider
import com.heyanle.buildsrc.project

Expand Down
18 changes: 13 additions & 5 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@

import com.heyanle.buildsrc.Android
import com.heyanle.buildsrc.Config
import com.heyanle.buildsrc.RoomSchemaArgProvider
import com.heyanle.buildsrc.project
import java.util.Properties

plugins {
alias(build.plugins.android.application)
alias(build.plugins.kotlin.android)
alias(build.plugins.ksp)
}

val publishingProps = Properties()
runCatching {
publishingProps.load(project.rootProject.file("publishing/publishing.properties").inputStream())
}.onFailure {
// it.printStackTrace()
}

android {
namespace = "com.heyanle.easybangumi4"
compileSdk = Android.compileSdk
Expand All @@ -26,11 +32,13 @@ android {
vectorDrawables {
useSupportLibrary = true
}

buildConfigField(
"String",
Config.APP_CENTER_SECRET,
"\"${Config.getPrivateValue(Config.APP_CENTER_SECRET)}\""
"app_center_secret",
publishingProps.getProperty(
"APP_CENTER_SECRET",
System.getenv("APPCENTER_SECRET")
)?:""
)

ksp {
Expand Down
21 changes: 0 additions & 21 deletions buildSrc/src/main/java/com/heyanle/buildsrc/Config.kt

This file was deleted.

43 changes: 0 additions & 43 deletions buildSrc/src/main/java/com/heyanle/buildsrc/Const.kt

This file was deleted.

62 changes: 0 additions & 62 deletions buildSrc/src/main/java/com/heyanle/buildsrc/Dependency.kt

This file was deleted.

15 changes: 0 additions & 15 deletions buildSrc/src/main/java/com/heyanle/buildsrc/SourceExtension.kt

This file was deleted.

2 changes: 0 additions & 2 deletions easy-dlna/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

import com.heyanle.buildsrc.implementation

plugins {
alias(build.plugins.android.library)
Expand Down Expand Up @@ -37,7 +36,6 @@ android {

dependencies {
implementation(libs.bundles.cling)
implementation("org.fourthline.cling:cling-support:${com.heyanle.buildsrc.Version.cling}")
//jetty()
//servlet()
implementation(files("libs/javax.servlet-3.0.0.v201103241009.jar"))
Expand Down

0 comments on commit c3dd96d

Please sign in to comment.