Skip to content

Commit 37432ec

Browse files
committed
[feature] firebase
1 parent 07a14b0 commit 37432ec

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

.github/workflows/release.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,19 @@ jobs:
88
build-and-release:
99
runs-on: ubuntu-latest
1010
steps:
11+
1112
- name: Checkout
1213
uses: actions/[email protected]
1314
with:
1415
submodules: recursive
1516
token: ${{ secrets.TOKEN }}
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
repository: 'easybangumiorg/EasyBangumiPrivate'
21+
token: ${{ secrets.TOKEN }}
22+
path: 'private'
23+
ref: main
1624
- name: Setup Java JDK
1725
uses: actions/[email protected]
1826
with:
@@ -28,6 +36,7 @@ jobs:
2836
RELEASE: true
2937
- name: Build
3038
run: |
39+
mv private/google-service.json app/google-service.json
3140
chmod +x ./gradlew
3241
./gradlew :app:assemble
3342
env:
@@ -59,13 +68,7 @@ jobs:
5968
gh release create -d ${{ github.ref_name }} easybangumi-${{ github.ref_name }}.apk
6069
env:
6170
GITHUB_TOKEN: ${{ secrets.TOKEN }}
62-
- name: Checkout
63-
uses: actions/checkout@v4
64-
with:
65-
repository: 'easybangumiorg/EasyBangumiPrivate'
66-
token: ${{ secrets.TOKEN }}
67-
path: 'private'
68-
ref: main
71+
6972
- name: push_mapping
7073
run: |
7174
cd private

app/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
alias(build.plugins.android.application)
99
alias(build.plugins.kotlin.android)
1010
alias(build.plugins.ksp)
11+
id("com.google.gms.google-services")
1112
}
1213

1314
val publishingProps = Properties()
@@ -240,5 +241,8 @@ dependencies {
240241

241242
implementation(libs.uni.file)
242243

244+
implementation("com.google.firebase:firebase-analytics")
245+
implementation(platform("com.google.firebase:firebase-bom:33.1.2"))
246+
243247

244248
}

app/src/main/java/com/heyanle/easybangumi4/ui/cartoon_play/VideoComponent.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ fun VideoControl(
662662
if (image != null) {
663663
val imageFile = bufferImageCache(image)
664664
val imageUri = FileProvider.getUriForFile(
665-
APP, "${APP.packageName}.fileProvider", imageFile
665+
APP, "${APP.packageName}.provider", imageFile
666666
)
667667
shareImageText(imageUri, detailState.cartoonInfo.url)
668668
}

build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
alias(build.plugins.android.library) apply false
55
alias(build.plugins.kotlin.android) apply false
66
alias(build.plugins.kotlin.jvm) apply false
7+
id("com.google.gms.google-services") version "4.4.2" apply false
78
}
89

910
tasks.create<Delete>("clean") {

0 commit comments

Comments
 (0)