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

Add license tag to all Kotlin files (#282) #283

Closed
wants to merge 1 commit into from
Closed
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
11 changes: 11 additions & 0 deletions add_license.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
LICENSE_TEXT="/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/"

for file in $(find . -name "*.kt"); do
echo -e "$LICENSE_TEXT\n$(cat $file)" > $file
done
32 changes: 32 additions & 0 deletions app/src/androidTest/kotlin/be/scri/fragments/MainFragmentTest.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import android.content.Context
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatDelegate
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/App.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri

import android.app.Application
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/activities/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.activities

import android.content.Context
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/adapters/ViewPagerAdapter.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.adapters

import androidx.fragment.app.Fragment
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/extensions/CommonsContext.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.extensions

import android.content.Context
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/extensions/Context.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.extensions

import android.content.Context
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/extensions/ContextStyling.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.extensions

import android.content.Context
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/extensions/Drawable.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.extensions

import android.graphics.PorterDuff
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/extensions/Int.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.extensions

import android.graphics.Color
Expand Down
32 changes: 32 additions & 0 deletions app/src/main/java/be/scri/extensions/RecyclerView.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/*
* Copyright (C) 2024 Scribe-Android
*
* This file is part of Scribe-Android and is licensed under the
* GNU General Public License, version 3.
* See LICENSE for more information.
*/
/**
* Class of methods to manage Scribe's behaviors.
*
* Copyright (C) 2024 Scribe
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package be.scri.extensions

import CustomDividerItemDecoration
Expand Down
Loading
Loading