Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle license plugin #1777

Merged
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
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
- name: Build
run: |
chmod +x ./gradlew
./gradlew clean app:assembleDebug
./gradlew licenseAppCenterDebugReport
./gradlew app:assembleDebug
- name: Upload Artifact
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ gradle/wrapper/gradle-wrapper.properties
/Commend.md
/.kotlin/
/download/00000006.gif
open_source_licenses.html
1,840 changes: 0 additions & 1,840 deletions NOTICE.html

This file was deleted.

11 changes: 1 addition & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "org.jetbrains.kotlin.plugin.parcelize"
apply plugin: "com.jaredsburrows.license"
if (file('google-services.json').exists()) {
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
Expand Down Expand Up @@ -87,20 +88,10 @@ android {

}

//task copyNotice(type: Copy) {
// from '../NOTICE.html'
// into './src/main/assets'
// finalizedBy ":daogenerator:executeDaoGenerator"
//}

//tasks.withType(JavaCompile) {
// task -> task.dependsOn copyNotice
//}

clean {
delete file('src/main/assets/NOTICE.html').absolutePath
}

dependencies {
// 测试工具
// debugCompileOnly 'com.gu.android:toolargetool:0.3.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

mWebView = new WebView(this);
mWebView.loadUrl("file:///android_asset/NOTICE.html");
mWebView.loadUrl("file:///android_asset/open_source_licenses.html");
setContentView(mWebView);

setNavigationIcon(R.drawable.v_arrow_left_dark_x24);
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ plugins {
id "org.jetbrains.kotlin.android" version "2.0.20" apply false
id "org.jetbrains.kotlin.plugin.parcelize" version "2.0.20" apply false
id "com.google.firebase.crashlytics" version "3.0.2" apply false
id "com.jaredsburrows.license" version "0.9.8" apply false
}


Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
Loading