Skip to content

Commit e23d20e

Browse files
david-allisonlukstbit
authored andcommitted
docs: convert licenses to SPDX format
30 recently changed files. AnkiDroid is standardizing licenses to SPDX. I removed my copyright lines from the files as-per docs/contributing/copyright-headers.md Issue 20954 This change was not performed using LLMs and I have verified that it is correct Assisted-by: Claude Opus 4.8 - proposed the files
1 parent 90bbe81 commit e23d20e

30 files changed

Lines changed: 88 additions & 470 deletions

AnkiDroid/src/androidTest/java/com/ichi2/anki/ReviewerFragmentTest.kt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
/*
2-
* This program is free software; you can redistribute it and/or modify it under
3-
* the terms of the GNU General Public License as published by the Free Software
4-
* Foundation; either version 3 of the License, or (at your option) any later
5-
* version.
6-
*
7-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
8-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9-
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
10-
*
11-
* You should have received a copy of the GNU General Public License along with
12-
* this program. If not, see <http://www.gnu.org/licenses/>.
13-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
143
package com.ichi2.anki
154

165
import androidx.core.content.edit

AnkiDroid/src/androidTest/java/com/ichi2/anki/ReviewerTest.kt

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
/*
2-
* Copyright (c) 2023
3-
*
4-
* This program is free software; you can redistribute it and/or modify it under
5-
* the terms of the GNU General Public License as published by the Free Software
6-
* Foundation; either version 3 of the License, or (at your option) any later
7-
* version.
8-
*
9-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
10-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11-
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
12-
*
13-
* You should have received a copy of the GNU General Public License along with
14-
* this program. If not, see <http://www.gnu.org/licenses/>.
15-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2023
3+
164
package com.ichi2.anki
175

186
import androidx.core.content.edit

AnkiDroid/src/androidTest/java/com/ichi2/anki/dialogs/CollectionPathMismatchRecoveryTest.kt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
/*
2-
* Copyright (c) 2026 Sumit Singh <sumitsinghkoranga7@gmail.com>
3-
*
4-
* This program is free software; you can redistribute it and/or modify it under
5-
* the terms of the GNU General Public License as published by the Free Software
6-
* Foundation; either version 3 of the License, or (at your option) any later
7-
* version.
8-
*
9-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
10-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11-
* A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12-
*
13-
* You should have received a copy of the GNU General Public License along with
14-
* this program. If not, see <http://www.gnu.org/licenses/>.
15-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2026 Sumit Singh <sumitsinghkoranga7@gmail.com>
163

174
package com.ichi2.anki.dialogs
185

AnkiDroid/src/androidTest/java/com/ichi2/anki/reviewer/PeripheralKeymapTest.kt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
/*
2-
* Copyright (c) 2020 David Allison <davidallisongithub@gmail.com>
3-
*
4-
* This program is free software; you can redistribute it and/or modify it under
5-
* the terms of the GNU General Public License as published by the Free Software
6-
* Foundation; either version 3 of the License, or (at your option) any later
7-
* version.
8-
*
9-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
10-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11-
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
12-
*
13-
* You should have received a copy of the GNU General Public License along with
14-
* this program. If not, see <http://www.gnu.org/licenses/>.
15-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
163
package com.ichi2.anki.reviewer
174

185
import android.view.KeyEvent

AnkiDroid/src/androidTest/java/com/ichi2/anki/tests/ACRATest.kt

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
/*
2-
* Copyright (c) 2018 Mike Hardy <github@mikehardy.net>
3-
*
4-
* This program is free software; you can redistribute it and/or modify it under
5-
* the terms of the GNU General Public License as published by the Free Software
6-
* Foundation; either version 3 of the License, or (at your option) any later
7-
* version.
8-
*
9-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
10-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11-
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
12-
*
13-
* You should have received a copy of the GNU General Public License along with
14-
* this program. If not, see <http://www.gnu.org/licenses/>.
15-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2018 Mike Hardy <github@mikehardy.net>
3+
164
package com.ichi2.anki.tests
175

186
import android.annotation.SuppressLint

AnkiDroid/src/main/java/com/ichi2/anki/AbstractFlashcardViewer.kt

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
/* **************************************************************************************
2-
* Copyright (c) 2011 Kostas Spyropoulos <inigo.aldana@gmail.com> *
3-
* Copyright (c) 2014 Bruno Romero de Azevedo <brunodea@inf.ufsm.br> *
4-
* Copyright (c) 2014–15 Roland Sieker <ospalh@gmail.com> *
5-
* Copyright (c) 2015 Timothy Rae <perceptualchaos2@gmail.com> *
6-
* Copyright (c) 2016 Mark Carter <mark@marcardar.com> *
7-
* *
8-
* This program is free software; you can redistribute it and/or modify it under *
9-
* the terms of the GNU General Public License as published by the Free Software *
10-
* Foundation; either version 3 of the License, or (at your option) any later *
11-
* version. *
12-
* *
13-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY *
14-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
15-
* PARTICULAR PURPOSE. See the GNU General Public License for more details. *
16-
* *
17-
* You should have received a copy of the GNU General Public License along with *
18-
* this program. If not, see <http://www.gnu.org/licenses/>. *
19-
****************************************************************************************/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2011 Kostas Spyropoulos <inigo.aldana@gmail.com>
3+
// SPDX-FileCopyrightText: Copyright (c) 2014 Bruno Romero de Azevedo <brunodea@inf.ufsm.br>
4+
// SPDX-FileCopyrightText: Copyright (c) 2014–15 Roland Sieker <ospalh@gmail.com>
5+
// SPDX-FileCopyrightText: Copyright (c) 2015 Timothy Rae <perceptualchaos2@gmail.com>
6+
// SPDX-FileCopyrightText: Copyright (c) 2016 Mark Carter <mark@marcardar.com>
207

218
// TODO: implement own menu? http://www.codeproject.com/Articles/173121/Android-Menus-My-Way
229
package com.ichi2.anki

AnkiDroid/src/main/java/com/ichi2/anki/AcraCrashReporter.kt

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
1-
/*
2-
* Copyright (c) 2022 lukstbit <lukstbit@users.noreply.github.com>
3-
*
4-
* This program is free software; you can redistribute it and/or modify it under
5-
* the terms of the GNU General Public License as published by the Free Software
6-
* Foundation; either version 3 of the License, or (at your option) any later
7-
* version.
8-
*
9-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
10-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11-
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
12-
*
13-
* You should have received a copy of the GNU General Public License along with
14-
* this program. If not, see <http://www.gnu.org/licenses/>.
15-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2022 lukstbit <lukstbit@users.noreply.github.com>
3+
164
package com.ichi2.anki
175

186
import android.app.Application

AnkiDroid/src/main/java/com/ichi2/anki/AnkiDroidApp.kt

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
/*
2-
* Copyright (c) 2009 Edu Zamora <edu.zasu@gmail.com>
3-
* Copyright (c) 2009 Casey Link <unnamedrambler@gmail.com>
4-
* Copyright (c) 2014 Timothy Rae <perceptualchaos2@gmail.com>
5-
*
6-
* This program is free software; you can redistribute it and/or modify it under
7-
* the terms of the GNU General Public License as published by the Free Software
8-
* Foundation; either version 3 of the License, or (at your option) any later
9-
* version.
10-
*
11-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
12-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13-
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU General Public License along with
16-
* this program. If not, see <http://www.gnu.org/licenses/>.
17-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2009 Edu Zamora <edu.zasu@gmail.com>
3+
// SPDX-FileCopyrightText: Copyright (c) 2009 Casey Link <unnamedrambler@gmail.com>
4+
// SPDX-FileCopyrightText: Copyright (c) 2014 Timothy Rae <perceptualchaos2@gmail.com>
5+
186
package com.ichi2.anki
197

208
import android.app.Activity

AnkiDroid/src/main/java/com/ichi2/anki/CollectionHelper.kt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
/*
2-
* Copyright (c) 2015 Timothy Rae <perceptualchaos2@gmail.com>
3-
*
4-
* This program is free software; you can redistribute it and/or modify it under
5-
* the terms of the GNU General Public License as published by the Free Software
6-
* Foundation; either version 3 of the License, or (at your option) any later
7-
* version.
8-
*
9-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY
10-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11-
* PARTICULAR PURPOSE. See the GNU General Public License for more details.
12-
*
13-
* You should have received a copy of the GNU General Public License along with
14-
* this program. If not, see <http://www.gnu.org/licenses/>.
15-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2015 Timothy Rae <perceptualchaos2@gmail.com>
163

174
package com.ichi2.anki
185

AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
/* **************************************************************************************
2-
* Copyright (c) 2009 Andrew Dubya <andrewdubya@gmail.com> *
3-
* Copyright (c) 2009 Nicolas Raoul <nicolas.raoul@gmail.com> *
4-
* Copyright (c) 2009 Edu Zamora <edu.zasu@gmail.com> *
5-
* Copyright (c) 2009 Daniel Svard <daniel.svard@gmail.com> *
6-
* Copyright (c) 2010 Norbert Nagold <norbert.nagold@gmail.com> *
7-
* Copyright (c) 2014 Timothy Rae <perceptualchaos2@gmail.com>
8-
* *
9-
* This program is free software; you can redistribute it and/or modify it under *
10-
* the terms of the GNU General Public License as published by the Free Software *
11-
* Foundation; either version 3 of the License, or (at your option) any later *
12-
* version. *
13-
* *
14-
* This program is distributed in the hope that it will be useful, but WITHOUT ANY *
15-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
16-
* PARTICULAR PURPOSE. See the GNU General Public License for more details. *
17-
* *
18-
* You should have received a copy of the GNU General Public License along with *
19-
* this program. If not, see <http://www.gnu.org/licenses/>. *
20-
****************************************************************************************/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
// SPDX-FileCopyrightText: Copyright (c) 2009 Andrew Dubya <andrewdubya@gmail.com>
3+
// SPDX-FileCopyrightText: Copyright (c) 2009 Nicolas Raoul <nicolas.raoul@gmail.com>
4+
// SPDX-FileCopyrightText: Copyright (c) 2009 Edu Zamora <edu.zasu@gmail.com>
5+
// SPDX-FileCopyrightText: Copyright (c) 2009 Daniel Svard <daniel.svard@gmail.com>
6+
// SPDX-FileCopyrightText: Copyright (c) 2010 Norbert Nagold <norbert.nagold@gmail.com>
7+
// SPDX-FileCopyrightText: Copyright (c) 2014 Timothy Rae <perceptualchaos2@gmail.com>
218

229
// usage of 'this' in constructors when class is non-final - weak warning
2310
// should be OK as this is only non-final for tests

0 commit comments

Comments
 (0)