Skip to content

Commit 4b64f26

Browse files
committed
docs: add SPDX license header with reuse
1 parent a7e88e5 commit 4b64f26

File tree

263 files changed

+1206
-460
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

263 files changed

+1206
-460
lines changed

.clang-format

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
---
26
Language: Cpp
37
BasedOnStyle: Google

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
# EditorConfig is awesome: https://EditorConfig.org
26

37
# top-most EditorConfig file

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
# Handle line endings automatically for files detected as text
26
# and leave all files detected as binary untouched.
37
* text=auto

.github/FUNDING.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
# add alipay QR code for sponsor
26
custom: https://raw.githubusercontent.com/osfans/trime/develop/osfans_alipay.png

.github/ISSUE_TEMPLATE/bug-report.md

+6

.github/ISSUE_TEMPLATE/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
blank_issues_enabled: false
26

.github/ISSUE_TEMPLATE/feature-request.md

+6

.github/pull-request-template.md

+6

.github/workflows/commit-ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
name: Commit
26
on: [push]
37

.github/workflows/nightly-ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
name: Nightly
26
on:
37
workflow_dispatch:

.github/workflows/pull-request-ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
name: Pull Request
26

37
on:

.github/workflows/release-ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
name: Release
26
on:
37
workflow_dispatch:

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
# Created by https://www.toptal.com/developers/gitignore/api/android,androidstudio,java,kotlin,windows,linux,macos,c++,cmake,vim,intellij+all,c
26
# Edit at https://www.toptal.com/developers/gitignore?templates=android,androidstudio,java,kotlin,windows,linux,macos,c++,cmake,vim,intellij+all,c
37

.gitmodules

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
[submodule "OpenCC"]
26
path = app/src/main/jni/OpenCC
37
url = https://github.com/BYVoid/OpenCC.git

CODE_OF_CONDUCT.md

+5

CONTRIBUTING.md

+6

PRIVACY.md

+6

README.md

+6

README_sc.md

+6

README_tc.md

+6

app/build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
@file:Suppress("UnstableApiUsage")
26

37
import org.gradle.configurationcache.extensions.capitalized

app/src/main/AndroidManifest.xml

+4-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
23
<!--
3-
/**
4-
* Copyright (C) 2015-present, osfans
5-
* [email protected] https://github.com/osfans
6-
*
7-
* This program is free software: you can redistribute it and/or modify
8-
* it under the terms of the GNU General Public License as published by
9-
* the Free Software Foundation, either version 3 of the License, or
10-
* (at your option) any later version.
11-
*
12-
* This program is distributed in the hope that it will be useful,
13-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
* GNU General Public License for more details.
16-
*
17-
* You should have received a copy of the GNU General Public License
18-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19-
*/
4+
SPDX-FileCopyrightText: 2015 - 2024 Rime community
5+
6+
SPDX-License-Identifier: GPL-3.0-or-later
207
-->
218

229
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

app/src/main/assets/rime/tongwenfeng.trime.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
# Trime custom style settings
26
# encoding: utf-8
37

app/src/main/assets/rime/trime.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
#
3+
# SPDX-License-Identifier: GPL-3.0-or-later
4+
15
# Trime default style settings
26
# encoding: utf-8
37

app/src/main/java/com/osfans/trime/TrimeApplication.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime
26

37
import android.app.Application

app/src/main/java/com/osfans/trime/core/Rime.kt

+4-17
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,7 @@
1-
/*
2-
* Copyright (C) 2015-present, osfans
3-
* [email protected] https://github.com/osfans
4-
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU General Public License as published by
7-
* the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
9-
*
10-
* This program is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU General Public License
16-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17-
*/
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
185
package com.osfans.trime.core
196

207
import com.osfans.trime.data.AppPrefs

app/src/main/java/com/osfans/trime/core/RimeApi.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.core
26

37
import kotlinx.coroutines.flow.SharedFlow

app/src/main/java/com/osfans/trime/core/RimeDispatcher.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.core
26

37
import kotlinx.coroutines.CoroutineDispatcher

app/src/main/java/com/osfans/trime/core/RimeLifecycle.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
// Adapted from https://github.com/fcitx5-android/fcitx5-android/blob/364afb44dcf0d9e3db3d43a21a32601b2190cbdf/app/src/main/java/org/fcitx/fcitx5/android/core/FcitxLifecycle.kt
26
package com.osfans.trime.core
37

app/src/main/java/com/osfans/trime/core/RimeNotification.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.core
26

37
sealed class RimeNotification<T>(open val value: T) {

app/src/main/java/com/osfans/trime/core/Structs.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.core
26

37
import timber.log.Timber

app/src/main/java/com/osfans/trime/daemon/Extensions.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.daemon
26

37
import com.osfans.trime.core.RimeApi

app/src/main/java/com/osfans/trime/daemon/RimeDaemon.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.daemon
26

37
import android.app.NotificationChannel

app/src/main/java/com/osfans/trime/daemon/RimeSession.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.daemon
26

37
import com.osfans.trime.core.RimeApi

app/src/main/java/com/osfans/trime/data/AppPrefs.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data
26

37
import android.content.Context

app/src/main/java/com/osfans/trime/data/DataManager.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data
26

37
import com.blankj.utilcode.util.PathUtils

app/src/main/java/com/osfans/trime/data/SymbolHistory.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data
26

37
import com.osfans.trime.util.appContext

app/src/main/java/com/osfans/trime/data/db/ClipboardHelper.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data.db
26

37
import android.content.ClipboardManager

app/src/main/java/com/osfans/trime/data/db/CollectionHelper.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data.db
26

37
import android.content.Context

app/src/main/java/com/osfans/trime/data/db/Database.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data.db
26

37
import androidx.room.Database

app/src/main/java/com/osfans/trime/data/db/DatabaseBean.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data.db
26

37
import android.content.ClipData

app/src/main/java/com/osfans/trime/data/db/DatabaseDao.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data.db
26

37
import androidx.room.Dao

app/src/main/java/com/osfans/trime/data/db/DraftHelper.kt

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2015 - 2024 Rime community
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
15
package com.osfans.trime.data.db
26

37
import android.content.Context

0 commit comments

Comments
 (0)