Skip to content

Commit

Permalink
chore: add license header
Browse files Browse the repository at this point in the history
Added license headers to all source files and resource files.
This ensures that the project's licensing information is clearly stated and easily accessible.
  • Loading branch information
dingyi222666 committed Nov 28, 2024
1 parent 2ecc7a3 commit 6e4ed41
Show file tree
Hide file tree
Showing 31 changed files with 560 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/copyright/dingyi_apache_2_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions app/src/main/kotlin/com/dingyi/treeview/FileActivity.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
* https://github.com/dingyi222666/TreeView
*
* Copyright (C) 2023-2024. dingyi222666@foxmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.dingyi.treeview

import android.content.Intent
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/kotlin/com/dingyi/treeview/MainActivity.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
* https://github.com/dingyi222666/TreeView
*
* Copyright (C) 2023-2024. dingyi222666@foxmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.dingyi.treeview

import android.content.Intent
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/kotlin/com/dingyi/treeview/MainApplication.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
* https://github.com/dingyi222666/TreeView
*
* Copyright (C) 2023-2024. dingyi222666@foxmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.dingyi.treeview

import android.app.Application
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/drawable/baseline_folder_24.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<vector android:height="24dp" android:tint="?colorOnBackground"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/drawable/baseline_insert_drive_file_24.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<vector android:height="24dp" android:tint="?colorOnBackground"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/drawable/baseline_keyboard_arrow_right_24.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<vector android:height="24dp" android:tint="?colorOnBackground"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/layout/item_dir.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/layout/item_file.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/menu/file.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/menu/main.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
Expand Down
19 changes: 19 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ TreeView - An TreeView implement in Android with RecyclerView written in kotlin.
~ https://github.com/dingyi222666/TreeView
~
~ Copyright (C) 2023-2024. dingyi222666@foxmail.com
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
Expand Down
Loading

0 comments on commit 6e4ed41

Please sign in to comment.