From b184366cf47b3dcc73a53c95cce70628e35f61e3 Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 8 Jul 2019 17:58:26 +0100 Subject: [PATCH 1/6] Add license disclaimer to all code files --- .idea/copyright/Apache_2.xml | 6 ++++++ .idea/copyright/profiles_settings.xml | 8 ++++++++ app/build.gradle | 20 +++++++++++++++++-- app/src/main/java/com/marcdonald/hibi/Hibi.kt | 15 ++++++++++++++ .../java/com/marcdonald/hibi/MainActivity.kt | 15 ++++++++++++++ .../hibi/data/database/AppDatabase.kt | 15 ++++++++++++++ .../com/marcdonald/hibi/data/database/DAO.kt | 15 ++++++++++++++ .../data/database/ProductionAppDatabase.kt | 15 ++++++++++++++ .../com/marcdonald/hibi/data/entity/Book.kt | 15 ++++++++++++++ .../hibi/data/entity/BookEntryRelation.kt | 15 ++++++++++++++ .../com/marcdonald/hibi/data/entity/Entry.kt | 15 ++++++++++++++ .../marcdonald/hibi/data/entity/EntryImage.kt | 15 ++++++++++++++ .../marcdonald/hibi/data/entity/NewWord.kt | 15 ++++++++++++++ .../com/marcdonald/hibi/data/entity/Tag.kt | 15 ++++++++++++++ .../hibi/data/entity/TagEntryRelation.kt | 15 ++++++++++++++ .../data/network/ConnectivityInterceptor.kt | 15 ++++++++++++++ .../network/ConnectivityInterceptorImpl.kt | 15 ++++++++++++++ .../data/network/github/GithubAPIService.kt | 15 ++++++++++++++ .../data/network/github/apiresponse/Asset.kt | 15 ++++++++++++++ .../data/network/github/apiresponse/Author.kt | 15 ++++++++++++++ .../apiresponse/GithubVersionResponse.kt | 15 ++++++++++++++ .../network/github/apiresponse/Uploader.kt | 15 ++++++++++++++ .../data/network/jisho/JishoAPIService.kt | 15 ++++++++++++++ .../network/jisho/apiresponse/Attribution.kt | 15 ++++++++++++++ .../data/network/jisho/apiresponse/Data.kt | 15 ++++++++++++++ .../network/jisho/apiresponse/Japanese.kt | 15 ++++++++++++++ .../jisho/apiresponse/SearchResponse.kt | 15 ++++++++++++++ .../data/network/jisho/apiresponse/Sense.kt | 15 ++++++++++++++ .../repository/BookEntryRelationRepository.kt | 15 ++++++++++++++ .../BookEntryRelationRepositoryImpl.kt | 15 ++++++++++++++ .../hibi/data/repository/BookRepository.kt | 15 ++++++++++++++ .../data/repository/BookRepositoryImpl.kt | 15 ++++++++++++++ .../data/repository/EntryImageRepository.kt | 15 ++++++++++++++ .../repository/EntryImageRepositoryImpl.kt | 15 ++++++++++++++ .../hibi/data/repository/EntryRepository.kt | 15 ++++++++++++++ .../data/repository/EntryRepositoryImpl.kt | 15 ++++++++++++++ .../hibi/data/repository/NewWordRepository.kt | 15 ++++++++++++++ .../data/repository/NewWordRepositoryImpl.kt | 15 ++++++++++++++ .../repository/TagEntryRelationRepository.kt | 15 ++++++++++++++ .../TagEntryRelationRepositoryImpl.kt | 15 ++++++++++++++ .../hibi/data/repository/TagRepository.kt | 15 ++++++++++++++ .../hibi/data/repository/TagRepositoryImpl.kt | 15 ++++++++++++++ .../com/marcdonald/hibi/internal/Constants.kt | 15 ++++++++++++++ .../marcdonald/hibi/internal/Exceptions.kt | 15 ++++++++++++++ .../hibi/internal/base/HibiActivity.kt | 15 ++++++++++++++ .../base/HibiBottomSheetDialogFragment.kt | 15 ++++++++++++++ .../hibi/internal/base/HibiDialogFragment.kt | 15 ++++++++++++++ .../hibi/internal/extension/ViewExtension.kt | 15 ++++++++++++++ .../hibi/internal/utils/DateTimeUtils.kt | 15 ++++++++++++++ .../hibi/internal/utils/FileUtils.kt | 15 ++++++++++++++ .../hibi/internal/utils/FileUtilsImpl.kt | 15 ++++++++++++++ .../hibi/internal/utils/ThemeUtils.kt | 15 ++++++++++++++ .../hibi/internal/utils/ThemeUtilsImpl.kt | 15 ++++++++++++++ .../hibi/internal/utils/UpdateUtils.kt | 15 ++++++++++++++ .../hibi/internal/utils/UpdateUtilsImpl.kt | 15 ++++++++++++++ .../notification/ReminderAlertReceiver.kt | 15 ++++++++++++++ .../hibi/screens/about/AboutFragment.kt | 15 ++++++++++++++ .../screens/about/AboutPreferenceFragment.kt | 15 ++++++++++++++ .../about/OpenSourceLicencesFragment.kt | 15 ++++++++++++++ .../screens/about/PrivacyPolicyFragment.kt | 15 ++++++++++++++ .../BookEntriesFragment.kt | 15 ++++++++++++++ .../BookEntriesViewModel.kt | 15 ++++++++++++++ .../BookEntriesViewModelFactory.kt | 15 ++++++++++++++ .../mainbooksfragment/BookDisplayItem.kt | 15 ++++++++++++++ .../mainbooksfragment/BooksFragment.kt | 15 ++++++++++++++ .../BooksFragmentRecyclerViewHolder.kt | 15 ++++++++++++++ .../BooksFragmentViewModel.kt | 15 ++++++++++++++ .../BooksFragmentViewModelFactory.kt | 15 ++++++++++++++ .../mainbooksfragment/BooksRecyclerAdapter.kt | 15 ++++++++++++++ .../calendarscreen/CalendarFragment.kt | 15 ++++++++++++++ .../calendarscreen/CalendarTabViewModel.kt | 15 ++++++++++++++ .../CalendarTabViewModelFactory.kt | 15 ++++++++++++++ .../entryscreens/ImageRecyclerAdapter.kt | 15 ++++++++++++++ .../addentryscreen/AddEntryFragment.kt | 15 ++++++++++++++ .../addentryscreen/AddEntryViewModel.kt | 15 ++++++++++++++ .../AddEntryViewModelFactory.kt | 15 ++++++++++++++ .../addentryscreen/DateTimeStore.kt | 15 ++++++++++++++ .../FullscreenImageFragment.kt | 15 ++++++++++++++ .../viewentryscreen/ViewEntryFragment.kt | 15 ++++++++++++++ .../viewentryscreen/ViewEntryViewModel.kt | 15 ++++++++++++++ .../ViewEntryViewModelFactory.kt | 15 ++++++++++++++ .../mainentries/MainEntriesFragment.kt | 15 ++++++++++++++ .../mainentries/MainEntriesViewModel.kt | 15 ++++++++++++++ .../MainEntriesViewModelFactory.kt | 15 ++++++++++++++ .../BaseEntriesRecyclerViewHolder.kt | 15 ++++++++++++++ .../BookEntryDisplayItem.kt | 15 ++++++++++++++ .../EntriesRecyclerAdapter.kt | 15 ++++++++++++++ .../EntriesRecyclerViewHolder.kt | 15 ++++++++++++++ .../EntriesRecyclerViewHolderHeader.kt | 15 ++++++++++++++ .../MainEntriesDisplayItem.kt | 15 ++++++++++++++ .../MainEntriesHeaderItemDecoration.kt | 15 ++++++++++++++ .../TagEntryDisplayItem.kt | 15 ++++++++++++++ .../screens/mainscreen/MainScreenFragment.kt | 15 ++++++++++++++ .../mainscreen/MainScreenMenuDialog.kt | 15 ++++++++++++++ .../mainscreen/MainScreenPageAdapter.kt | 15 ++++++++++++++ .../screens/mainscreen/MainScreenViewModel.kt | 15 ++++++++++++++ .../mainscreen/MainScreenViewModelFactory.kt | 15 ++++++++++++++ .../searchentries/EntrySearchCriteria.kt | 15 ++++++++++++++ .../SearchEntriesFragment.kt | 15 ++++++++++++++ .../SearchEntriesViewModel.kt | 15 ++++++++++++++ .../SearchEntriesViewModelFactory.kt | 15 ++++++++++++++ .../MainEntriesDisplayPreferenceDialog.kt | 15 ++++++++++++++ .../hibi/screens/settings/SettingsFragment.kt | 15 ++++++++++++++ .../settings/SettingsPreferenceFragment.kt | 15 ++++++++++++++ .../settings/backupdialog/BackupDialog.kt | 15 ++++++++++++++ .../backupdialog/BackupDialogViewModel.kt | 15 ++++++++++++++ .../BackupDialogViewModelFactory.kt | 15 ++++++++++++++ .../settings/restoredialog/RestoreDialog.kt | 15 ++++++++++++++ .../restoredialog/RestoreDialogViewModel.kt | 15 ++++++++++++++ .../RestoreDialogViewModelFactory.kt | 15 ++++++++++++++ .../settings/updatedialog/UpdateDialog.kt | 15 ++++++++++++++ .../updatedialog/UpdateDialogViewModel.kt | 15 ++++++++++++++ .../UpdateDialogViewModelFactory.kt | 15 ++++++++++++++ .../maintagsfragment/TagDisplayItem.kt | 15 ++++++++++++++ .../maintagsfragment/TagsFragment.kt | 15 ++++++++++++++ .../TagsFragmentRecyclerViewHolder.kt | 15 ++++++++++++++ .../maintagsfragment/TagsFragmentViewModel.kt | 15 ++++++++++++++ .../TagsFragmentViewModelFactory.kt | 15 ++++++++++++++ .../maintagsfragment/TagsRecyclerAdapter.kt | 15 ++++++++++++++ .../TaggedEntriesFragment.kt | 15 ++++++++++++++ .../TaggedEntriesViewModel.kt | 15 ++++++++++++++ .../TaggedEntriesViewModelFactory.kt | 15 ++++++++++++++ .../ThrowbackDisplayItem.kt | 15 ++++++++++++++ .../mainthrowbackscreen/ThrowbackFragment.kt | 15 ++++++++++++++ .../ThrowbackFragmentViewModel.kt | 15 ++++++++++++++ .../ThrowbackFragmentViewModelFactory.kt | 15 ++++++++++++++ .../ThrowbackRecyclerAdapter.kt | 15 ++++++++++++++ .../ThrowbackRecyclerViewHolder.kt | 15 ++++++++++++++ .../ThrowbackEntriesFragment.kt | 15 ++++++++++++++ .../ThrowbackEntriesViewModel.kt | 15 ++++++++++++++ .../ThrowbackEntriesViewModelFactory.kt | 15 ++++++++++++++ .../SearchMoreInfoDialog.kt | 15 ++++++++++++++ .../SearchMoreInfoViewModel.kt | 15 ++++++++++++++ .../SearchMoreInfoViewModelFactory.kt | 15 ++++++++++++++ ...archMoreInfoAlternativesRecyclerAdapter.kt | 15 ++++++++++++++ ...hMoreInfoAlternativesRecyclerViewHolder.kt | 15 ++++++++++++++ .../SearchMoreInfoSenseRecyclerAdapter.kt | 15 ++++++++++++++ .../SearchMoreInfoSenseRecyclerViewHolder.kt | 15 ++++++++++++++ .../searchresults/SearchResultsDialog.kt | 15 ++++++++++++++ .../SearchResultsRecyclerAdapter.kt | 15 ++++++++++++++ .../SearchResultsRecyclerViewHolder.kt | 15 ++++++++++++++ .../search/searchresults/SearchViewModel.kt | 15 ++++++++++++++ .../searchresults/SearchViewModelFactory.kt | 15 ++++++++++++++ .../hibi/uicomponents/BinaryOptionDialog.kt | 15 ++++++++++++++ .../hibi/uicomponents/DatePickerDialog.kt | 15 ++++++++++++++ .../hibi/uicomponents/TextInputDialog.kt | 15 ++++++++++++++ .../hibi/uicomponents/TimePickerDialog.kt | 15 ++++++++++++++ .../addbookdialog/AddBookDialog.kt | 15 ++++++++++++++ .../addbookdialog/AddBookViewModel.kt | 15 ++++++++++++++ .../addbookdialog/AddBookViewModelFactory.kt | 15 ++++++++++++++ .../AddEntryToBookDialog.kt | 15 ++++++++++++++ .../AddEntryToBookViewModel.kt | 15 ++++++++++++++ .../AddEntryToBookViewModelFactory.kt | 15 ++++++++++++++ .../addnewworddialog/AddNewWordDialog.kt | 15 ++++++++++++++ .../addnewworddialog/AddNewWordViewModel.kt | 15 ++++++++++++++ .../AddNewWordViewModelFactory.kt | 15 ++++++++++++++ .../uicomponents/addtagdialog/AddTagDialog.kt | 15 ++++++++++++++ .../addtagdialog/AddTagViewModel.kt | 15 ++++++++++++++ .../addtagdialog/AddTagViewModelFactory.kt | 15 ++++++++++++++ .../AddTagToEntryDialog.kt | 15 ++++++++++++++ .../AddTagToEntryViewModel.kt | 15 ++++++++++++++ .../AddTagToEntryViewModelFactory.kt | 15 ++++++++++++++ .../AddLocationToEntryDialog.kt | 15 ++++++++++++++ .../AddLocationToEntryViewModel.kt | 15 ++++++++++++++ .../AddLocationToEntryViewModelFactory.kt | 15 ++++++++++++++ .../multiselectdialog/MultiSelectMenu.kt | 15 ++++++++++++++ .../AddMultiEntryToBookDialog.kt | 15 ++++++++++++++ .../AddMultiEntryToBookViewModel.kt | 15 ++++++++++++++ .../AddMultiEntryToBookViewModelFactory.kt | 15 ++++++++++++++ .../AddTagToMultiEntryDialog.kt | 15 ++++++++++++++ .../AddTagToMultiEntryViewModel.kt | 15 ++++++++++++++ .../AddTagToMultiEntryViewModelFactory.kt | 15 ++++++++++++++ .../newwordsdialog/NewWordDialog.kt | 15 ++++++++++++++ .../newwordsdialog/NewWordViewModel.kt | 15 ++++++++++++++ .../newwordsdialog/NewWordViewModelFactory.kt | 15 ++++++++++++++ .../newwordsdialog/NewWordsRecyclerAdapter.kt | 15 ++++++++++++++ .../NewWordsRecyclerViewHolder.kt | 15 ++++++++++++++ .../hibi/uicomponents/views/CheckBoxWithId.kt | 15 ++++++++++++++ .../hibi/uicomponents/views/ChipWithId.kt | 15 ++++++++++++++ .../hibi/uicomponents/views/LicenseDisplay.kt | 15 ++++++++++++++ .../hibi/uicomponents/views/SearchBar.kt | 15 ++++++++++++++ 181 files changed, 2702 insertions(+), 2 deletions(-) create mode 100644 .idea/copyright/Apache_2.xml create mode 100644 .idea/copyright/profiles_settings.xml diff --git a/.idea/copyright/Apache_2.xml b/.idea/copyright/Apache_2.xml new file mode 100644 index 0000000..bb5aafc --- /dev/null +++ b/.idea/copyright/Apache_2.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/copyright/profiles_settings.xml b/.idea/copyright/profiles_settings.xml new file mode 100644 index 0000000..31e6106 --- /dev/null +++ b/.idea/copyright/profiles_settings.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index f973e22..45de515 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,3 +1,19 @@ +/* + * Copyright 2019 Marc Donald + * + * 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. + */ + apply plugin: 'com.android.application' apply plugin: 'kotlin-android' @@ -14,8 +30,8 @@ android { applicationId "com.marcdonald.hibi" minSdkVersion 23 targetSdkVersion 28 - versionCode 30 - versionName "1.2.1" + versionCode 31 + versionName "1.2.2" setProperty("archivesBaseName", "Hibi-v$versionName") testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } diff --git a/app/src/main/java/com/marcdonald/hibi/Hibi.kt b/app/src/main/java/com/marcdonald/hibi/Hibi.kt index bf2ed41..8d7d023 100644 --- a/app/src/main/java/com/marcdonald/hibi/Hibi.kt +++ b/app/src/main/java/com/marcdonald/hibi/Hibi.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi import android.app.Application diff --git a/app/src/main/java/com/marcdonald/hibi/MainActivity.kt b/app/src/main/java/com/marcdonald/hibi/MainActivity.kt index 3525775..95fbc9f 100644 --- a/app/src/main/java/com/marcdonald/hibi/MainActivity.kt +++ b/app/src/main/java/com/marcdonald/hibi/MainActivity.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/data/database/AppDatabase.kt b/app/src/main/java/com/marcdonald/hibi/data/database/AppDatabase.kt index ab90123..9dceaad 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/database/AppDatabase.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/database/AppDatabase.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.database interface AppDatabase { diff --git a/app/src/main/java/com/marcdonald/hibi/data/database/DAO.kt b/app/src/main/java/com/marcdonald/hibi/data/database/DAO.kt index 08c60a4..b80c103 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/database/DAO.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/database/DAO.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.database import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/database/ProductionAppDatabase.kt b/app/src/main/java/com/marcdonald/hibi/data/database/ProductionAppDatabase.kt index 4e85bbf..3a51e2e 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/database/ProductionAppDatabase.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/database/ProductionAppDatabase.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.database import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/data/entity/Book.kt b/app/src/main/java/com/marcdonald/hibi/data/entity/Book.kt index dad6d13..a0aaa11 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/entity/Book.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/entity/Book.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.entity import androidx.room.Entity diff --git a/app/src/main/java/com/marcdonald/hibi/data/entity/BookEntryRelation.kt b/app/src/main/java/com/marcdonald/hibi/data/entity/BookEntryRelation.kt index 20f96fa..7d2537e 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/entity/BookEntryRelation.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/entity/BookEntryRelation.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.entity import androidx.room.Entity diff --git a/app/src/main/java/com/marcdonald/hibi/data/entity/Entry.kt b/app/src/main/java/com/marcdonald/hibi/data/entity/Entry.kt index cbb75cb..db1dbc9 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/entity/Entry.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/entity/Entry.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.entity import androidx.room.Entity diff --git a/app/src/main/java/com/marcdonald/hibi/data/entity/EntryImage.kt b/app/src/main/java/com/marcdonald/hibi/data/entity/EntryImage.kt index ee54433..11cc901 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/entity/EntryImage.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/entity/EntryImage.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.entity import androidx.room.Entity diff --git a/app/src/main/java/com/marcdonald/hibi/data/entity/NewWord.kt b/app/src/main/java/com/marcdonald/hibi/data/entity/NewWord.kt index bc78072..686a914 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/entity/NewWord.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/entity/NewWord.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.entity import androidx.room.Entity diff --git a/app/src/main/java/com/marcdonald/hibi/data/entity/Tag.kt b/app/src/main/java/com/marcdonald/hibi/data/entity/Tag.kt index 3ebcc31..e71c274 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/entity/Tag.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/entity/Tag.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.entity import androidx.room.Entity diff --git a/app/src/main/java/com/marcdonald/hibi/data/entity/TagEntryRelation.kt b/app/src/main/java/com/marcdonald/hibi/data/entity/TagEntryRelation.kt index 1eadb6f..51c3ad5 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/entity/TagEntryRelation.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/entity/TagEntryRelation.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.entity import androidx.room.Entity diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptor.kt b/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptor.kt index 1e9a4e9..b16c34a 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptor.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptor.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network import okhttp3.Interceptor diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt index a644552..be73a41 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt index ad16422..4462781 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.github import com.marcdonald.hibi.data.network.ConnectivityInterceptor diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Asset.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Asset.kt index f7ddf6f..e08c060 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Asset.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Asset.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.github.apiresponse data class Asset( diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Author.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Author.kt index 91254a7..e9d8431 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Author.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Author.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.github.apiresponse data class Author( diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/GithubVersionResponse.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/GithubVersionResponse.kt index 73c0411..2c22144 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/GithubVersionResponse.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/GithubVersionResponse.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.github.apiresponse data class GithubVersionResponse( diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Uploader.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Uploader.kt index b716d6d..4d00f6a 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Uploader.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/apiresponse/Uploader.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.github.apiresponse data class Uploader( diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/JishoAPIService.kt b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/JishoAPIService.kt index dc3071f..3a2326d 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/JishoAPIService.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/JishoAPIService.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.jisho import com.marcdonald.hibi.data.network.ConnectivityInterceptor diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Attribution.kt b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Attribution.kt index 6945e0b..0148206 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Attribution.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Attribution.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.jisho.apiresponse data class Attribution( diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Data.kt b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Data.kt index 397f214..0b6558f 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Data.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Data.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.jisho.apiresponse import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Japanese.kt b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Japanese.kt index d94324f..78f4bce 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Japanese.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Japanese.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.jisho.apiresponse data class Japanese( diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/SearchResponse.kt b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/SearchResponse.kt index 121d47d..1e267fd 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/SearchResponse.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/SearchResponse.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.jisho.apiresponse data class SearchResponse( diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Sense.kt b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Sense.kt index 5079290..10f593c 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Sense.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/jisho/apiresponse/Sense.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.jisho.apiresponse import com.google.gson.annotations.SerializedName diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepository.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepository.kt index 4de7552..6251481 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepository.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepository.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepositoryImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepositoryImpl.kt index 7332482..23b1295 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepositoryImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/BookEntryRelationRepositoryImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import android.database.sqlite.SQLiteConstraintException diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepository.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepository.kt index 254d470..9660797 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepository.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepository.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepositoryImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepositoryImpl.kt index a9c59cc..de262ed 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepositoryImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/BookRepositoryImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import android.database.sqlite.SQLiteConstraintException diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepository.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepository.kt index d50092d..bffad36 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepository.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepository.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepositoryImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepositoryImpl.kt index a9a2c71..a50919c 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepositoryImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryImageRepositoryImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import android.database.sqlite.SQLiteConstraintException diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepository.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepository.kt index 9f91d42..2767d4e 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepository.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepository.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepositoryImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepositoryImpl.kt index bc53179..a986506 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepositoryImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/EntryRepositoryImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import android.database.sqlite.SQLiteConstraintException diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepository.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepository.kt index b40ed7b..25daa2e 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepository.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepository.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepositoryImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepositoryImpl.kt index db64d61..8f63430 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepositoryImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/NewWordRepositoryImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import android.database.sqlite.SQLiteConstraintException diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepository.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepository.kt index c50f2ce..b9e4644 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepository.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepository.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepositoryImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepositoryImpl.kt index 402575f..5d37a39 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepositoryImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/TagEntryRelationRepositoryImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import android.database.sqlite.SQLiteConstraintException diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepository.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepository.kt index 3c98eac..f32cdd0 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepository.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepository.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepositoryImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepositoryImpl.kt index 530c870..cb50edc 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepositoryImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/repository/TagRepositoryImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.repository import android.database.sqlite.SQLiteConstraintException diff --git a/app/src/main/java/com/marcdonald/hibi/internal/Constants.kt b/app/src/main/java/com/marcdonald/hibi/internal/Constants.kt index 1d8f567..75d7443 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/Constants.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/Constants.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal // diff --git a/app/src/main/java/com/marcdonald/hibi/internal/Exceptions.kt b/app/src/main/java/com/marcdonald/hibi/internal/Exceptions.kt index 0641588..b4f41bf 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/Exceptions.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/Exceptions.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal import java.io.IOException diff --git a/app/src/main/java/com/marcdonald/hibi/internal/base/HibiActivity.kt b/app/src/main/java/com/marcdonald/hibi/internal/base/HibiActivity.kt index 5356d88..fbc018e 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/base/HibiActivity.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/base/HibiActivity.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.base import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/internal/base/HibiBottomSheetDialogFragment.kt b/app/src/main/java/com/marcdonald/hibi/internal/base/HibiBottomSheetDialogFragment.kt index 949ee1d..2f11b9e 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/base/HibiBottomSheetDialogFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/base/HibiBottomSheetDialogFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.base import android.app.Dialog diff --git a/app/src/main/java/com/marcdonald/hibi/internal/base/HibiDialogFragment.kt b/app/src/main/java/com/marcdonald/hibi/internal/base/HibiDialogFragment.kt index cc1c027..367d730 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/base/HibiDialogFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/base/HibiDialogFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.base import androidx.fragment.app.DialogFragment diff --git a/app/src/main/java/com/marcdonald/hibi/internal/extension/ViewExtension.kt b/app/src/main/java/com/marcdonald/hibi/internal/extension/ViewExtension.kt index ec48f58..70691d8 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/extension/ViewExtension.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/extension/ViewExtension.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.extension import android.view.View diff --git a/app/src/main/java/com/marcdonald/hibi/internal/utils/DateTimeUtils.kt b/app/src/main/java/com/marcdonald/hibi/internal/utils/DateTimeUtils.kt index 1b1b6d8..8fec1ba 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/utils/DateTimeUtils.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/utils/DateTimeUtils.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.utils import android.text.format.DateFormat diff --git a/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtils.kt b/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtils.kt index ebbd38f..3ac6157 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtils.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtils.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.utils import android.net.Uri diff --git a/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtilsImpl.kt b/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtilsImpl.kt index 9a45bcc..dbaf380 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtilsImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/utils/FileUtilsImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.utils import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtils.kt b/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtils.kt index 4794023..abecd88 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtils.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtils.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.utils interface ThemeUtils { diff --git a/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtilsImpl.kt b/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtilsImpl.kt index 7135fa5..0208d7a 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtilsImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/utils/ThemeUtilsImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.utils import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtils.kt b/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtils.kt index 5c71ec9..eb8a29a 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtils.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtils.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.utils import com.marcdonald.hibi.data.network.github.apiresponse.GithubVersionResponse diff --git a/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtilsImpl.kt b/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtilsImpl.kt index edbe78c..b4f8228 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtilsImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/internal/utils/UpdateUtilsImpl.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.internal.utils import com.marcdonald.hibi.BuildConfig diff --git a/app/src/main/java/com/marcdonald/hibi/notification/ReminderAlertReceiver.kt b/app/src/main/java/com/marcdonald/hibi/notification/ReminderAlertReceiver.kt index a15e748..1421ffa 100644 --- a/app/src/main/java/com/marcdonald/hibi/notification/ReminderAlertReceiver.kt +++ b/app/src/main/java/com/marcdonald/hibi/notification/ReminderAlertReceiver.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.notification import android.app.AlarmManager diff --git a/app/src/main/java/com/marcdonald/hibi/screens/about/AboutFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/about/AboutFragment.kt index c4287a0..09938e1 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/about/AboutFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/about/AboutFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.about import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/about/AboutPreferenceFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/about/AboutPreferenceFragment.kt index 4f65554..f653539 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/about/AboutPreferenceFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/about/AboutPreferenceFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.about import android.content.Intent diff --git a/app/src/main/java/com/marcdonald/hibi/screens/about/OpenSourceLicencesFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/about/OpenSourceLicencesFragment.kt index 466522d..e9c3de6 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/about/OpenSourceLicencesFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/about/OpenSourceLicencesFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.about import android.content.Intent diff --git a/app/src/main/java/com/marcdonald/hibi/screens/about/PrivacyPolicyFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/about/PrivacyPolicyFragment.kt index 34fa6b1..d4e7891 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/about/PrivacyPolicyFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/about/PrivacyPolicyFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.about import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesFragment.kt index e628d41..3ae52ec 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.bookentriesfragment import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModel.kt index 6deed93..f302df2 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.bookentriesfragment import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModelFactory.kt index 47cf19f..ec386fc 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/bookentriesfragment/BookEntriesViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.bookentriesfragment import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BookDisplayItem.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BookDisplayItem.kt index 1b939d5..b032d3b 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BookDisplayItem.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BookDisplayItem.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.mainbooksfragment data class BookDisplayItem(val bookId: Int, diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragment.kt index b5e7cd1..b8bb3b5 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.mainbooksfragment import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentRecyclerViewHolder.kt index 276386f..a058fe6 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.mainbooksfragment import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModel.kt index 5bc1298..897ba05 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.mainbooksfragment import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModelFactory.kt index 9d6d303..f6a489e 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksFragmentViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.mainbooksfragment import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksRecyclerAdapter.kt index a431008..194eea9 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/booksscreen/mainbooksfragment/BooksRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.booksscreen.mainbooksfragment import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarFragment.kt index 7e9c0db..93c243e 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.calendarscreen import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModel.kt index 1fff41d..36fe74f 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.calendarscreen import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModelFactory.kt index fd45988..e028597 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/calendarscreen/CalendarTabViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.calendarscreen import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/ImageRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/ImageRecyclerAdapter.kt index a39d00e..3aed8f9 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/ImageRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/ImageRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt index 666f132..7f3e5bf 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.addentryscreen import android.Manifest diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModel.kt index 4fb35da..0dbfb19 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.addentryscreen import android.app.Application diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModelFactory.kt index e6178ae..c4c0692 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.addentryscreen import android.app.Application diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/DateTimeStore.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/DateTimeStore.kt index 138935c..a9f61fd 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/DateTimeStore.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/DateTimeStore.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.addentryscreen import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/FullscreenImageFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/FullscreenImageFragment.kt index 1704692..1739634 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/FullscreenImageFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/FullscreenImageFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.viewentryscreen import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt index cddd321..368d437 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.viewentryscreen import android.content.ClipData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModel.kt index 679183b..5732646 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.viewentryscreen import androidx.lifecycle.* diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModelFactory.kt index 06267a3..3985c2f 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.entryscreens.viewentryscreen import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesFragment.kt index fb854ed..f16b38b 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentries import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModel.kt index 49cbe1f..6ca3959 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentries import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModelFactory.kt index 396d49c..5057b31 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentries/MainEntriesViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentries import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BaseEntriesRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BaseEntriesRecyclerViewHolder.kt index 4d461c1..32be721 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BaseEntriesRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BaseEntriesRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler import android.view.View diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BookEntryDisplayItem.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BookEntryDisplayItem.kt index 4b3827a..f1e662a 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BookEntryDisplayItem.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/BookEntryDisplayItem.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler data class BookEntryDisplayItem(var entryId: Int, var bookName: String) \ No newline at end of file diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerAdapter.kt index a400c9c..474e80c 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolder.kt index 9e6faa6..3d4ed7b 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler import android.content.res.Resources diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolderHeader.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolderHeader.kt index aa57bea..f4ce498 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolderHeader.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/EntriesRecyclerViewHolderHeader.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler import android.view.View diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesDisplayItem.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesDisplayItem.kt index eafea50..8480c04 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesDisplayItem.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesDisplayItem.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler import com.marcdonald.hibi.data.entity.Entry diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesHeaderItemDecoration.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesHeaderItemDecoration.kt index b7f8dbb..37daf23 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesHeaderItemDecoration.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/MainEntriesHeaderItemDecoration.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler import android.graphics.Canvas diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/TagEntryDisplayItem.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/TagEntryDisplayItem.kt index 3efff47..2fa5ef0 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/TagEntryDisplayItem.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainentriesrecycler/TagEntryDisplayItem.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainentriesrecycler data class TagEntryDisplayItem(var entryId: Int, var tagName: String) \ No newline at end of file diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenFragment.kt index e631690..0285b38 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainscreen import android.content.Intent diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenMenuDialog.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenMenuDialog.kt index 726dfc2..0dac6cf 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenMenuDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenMenuDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainscreen import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenPageAdapter.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenPageAdapter.kt index bb20976..9f6ca14 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenPageAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenPageAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainscreen import androidx.fragment.app.Fragment diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModel.kt index f742340..e4e566b 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainscreen import android.app.Application diff --git a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModelFactory.kt index ac63bcb..47f2536 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/mainscreen/MainScreenViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.mainscreen import android.app.Application diff --git a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/EntrySearchCriteria.kt b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/EntrySearchCriteria.kt index 1dc1844..83f0bdb 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/EntrySearchCriteria.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/EntrySearchCriteria.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.searchentries import timber.log.Timber diff --git a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesFragment.kt index 5960787..778c6bc 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.searchentries.searchentriesscreen import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModel.kt index f26e350..aa2df9e 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.searchentries.searchentriesscreen import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModelFactory.kt index f13e454..c68c5ac 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/searchentries/searchentriesscreen/SearchEntriesViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.searchentries.searchentriesscreen import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/MainEntriesDisplayPreferenceDialog.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/MainEntriesDisplayPreferenceDialog.kt index ac08a22..a431322 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/MainEntriesDisplayPreferenceDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/MainEntriesDisplayPreferenceDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsFragment.kt index 29dd7ed..0986854 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsPreferenceFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsPreferenceFragment.kt index c2145e7..68f3b19 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsPreferenceFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/SettingsPreferenceFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings import android.Manifest diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialog.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialog.kt index 461f821..e15ed77 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.backupdialog import android.content.Intent diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModel.kt index f2e2845..c736e13 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.backupdialog import android.net.Uri diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModelFactory.kt index 615de44..a65d3b4 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/backupdialog/BackupDialogViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.backupdialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialog.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialog.kt index a7d5917..c65a984 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.restoredialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModel.kt index 7d618d0..feba18a 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.restoredialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModelFactory.kt index e9e0fcc..5421b95 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/restoredialog/RestoreDialogViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.restoredialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt index 132e34b..62005b3 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.updatedialog import android.content.Intent diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt index 911a98d..19a63d4 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.updatedialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModelFactory.kt index ec216e4..99d696d 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.settings.updatedialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagDisplayItem.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagDisplayItem.kt index 68fcb73..5681869 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagDisplayItem.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagDisplayItem.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.maintagsfragment data class TagDisplayItem(val tagID: Int, diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragment.kt index 8bf4be4..e6518cd 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.maintagsfragment import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentRecyclerViewHolder.kt index cc7d6f4..f9c8cd7 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.maintagsfragment import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModel.kt index fa80179..fa97d46 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.maintagsfragment import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModelFactory.kt index 286a971..e20c2e7 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsFragmentViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.maintagsfragment import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsRecyclerAdapter.kt index 956545d..ff16d79 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/maintagsfragment/TagsRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.maintagsfragment import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesFragment.kt index 8e13d6f..2bea4bd 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.taggedentriesfragment import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModel.kt index 35ed39b..2bc97a1 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.taggedentriesfragment import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModelFactory.kt index f8762c1..b770f54 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/tagsscreen/taggedentriesfragment/TaggedEntriesViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.tagsscreen.taggedentriesfragment import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackDisplayItem.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackDisplayItem.kt index 5470c2b..50302ac 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackDisplayItem.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackDisplayItem.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.mainthrowbackscreen import com.marcdonald.hibi.screens.mainentriesrecycler.MainEntriesDisplayItem diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragment.kt index 218134b..09a089e 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.mainthrowbackscreen import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModel.kt index d24e0f6..5663280 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.mainthrowbackscreen import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModelFactory.kt index 2bee4d3..ffd81a7 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackFragmentViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.mainthrowbackscreen import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerAdapter.kt index b923b64..ff621db 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.mainthrowbackscreen import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerViewHolder.kt index 1096191..9f6bfd7 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/mainthrowbackscreen/ThrowbackRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.mainthrowbackscreen import android.preference.PreferenceManager diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesFragment.kt index 301b83a..ef14b0f 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesFragment.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.throwbackentriesscreen import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModel.kt index 950fe0e..08c80d5 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.throwbackentriesscreen import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModelFactory.kt index e09b072..1af2abe 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/throwbackscreen/throwbackentriesscreen/ThrowbackEntriesViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.screens.throwbackscreen.throwbackentriesscreen import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoDialog.kt b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoDialog.kt index 1b76c7e..75c241e 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchmoreinfoscreen import android.content.ClipData diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModel.kt b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModel.kt index b76791d..25f9d7b 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchmoreinfoscreen import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModelFactory.kt index 3b0e75f..fd62ae9 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/SearchMoreInfoViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchmoreinfoscreen import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerAdapter.kt index b14b90c..70ea4ec 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchmoreinfoscreen.alternativesrecycler import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerViewHolder.kt index fac56c9..cae1fbb 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/alternativesrecycler/SearchMoreInfoAlternativesRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchmoreinfoscreen.alternativesrecycler import android.content.ClipData diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerAdapter.kt index 4301329..b063a6f 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchmoreinfoscreen.senserecycler import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerViewHolder.kt index 1c318cd..eca4350 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchmoreinfoscreen/senserecycler/SearchMoreInfoSenseRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchmoreinfoscreen.senserecycler import android.content.ClipData diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsDialog.kt b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsDialog.kt index 326372a..00e875c 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchresults import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerAdapter.kt index 299c3c9..0241a3f 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchresults import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerViewHolder.kt index caf0429..257fe25 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchResultsRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchresults import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt index 570bcf8..8f78365 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchresults import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModelFactory.kt index 725be56..3e9ccda 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.search.searchresults import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/BinaryOptionDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/BinaryOptionDialog.kt index 5addd6b..afcdb4a 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/BinaryOptionDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/BinaryOptionDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/DatePickerDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/DatePickerDialog.kt index 4619cd2..ab2a602 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/DatePickerDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/DatePickerDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/TextInputDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/TextInputDialog.kt index 5dc70ec..5f2ca35 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/TextInputDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/TextInputDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/TimePickerDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/TimePickerDialog.kt index 1a44e1a..d52ce49 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/TimePickerDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/TimePickerDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookDialog.kt index 998c689..45299a2 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addbookdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModel.kt index a62ce46..a248d3a 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addbookdialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModelFactory.kt index 5925544..1e55379 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addbookdialog/AddBookViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addbookdialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookDialog.kt index 2f45db4..22841a8 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addentrytobookdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModel.kt index 54bd717..388e3dd 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addentrytobookdialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModelFactory.kt index 49201a0..0cd4224 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addentrytobookdialog/AddEntryToBookViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addentrytobookdialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordDialog.kt index 892051f..aa0a2b1 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addnewworddialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModel.kt index ebbf7dc..2d85162 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addnewworddialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModelFactory.kt index b1f5a20..ae83ebb 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addnewworddialog/AddNewWordViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addnewworddialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagDialog.kt index fb562c6..c5bdf9f 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addtagdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModel.kt index 10d040c..2c33779 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addtagdialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModelFactory.kt index a08edf0..b8c3c7c 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagdialog/AddTagViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addtagdialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryDialog.kt index d455eb3..b9e2cf9 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addtagtoentrydialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModel.kt index 55ca1c1..c2b0446 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addtagtoentrydialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModelFactory.kt index 1a37ef8..c3fb335 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/addtagtoentrydialog/AddTagToEntryViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.addtagtoentrydialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryDialog.kt index 6fec677..01cb989 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.locationdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModel.kt index 9c7a749..a5d5ccc 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.locationdialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModelFactory.kt index fdc69c5..f97189b 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/locationdialog/AddLocationToEntryViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.locationdialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/MultiSelectMenu.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/MultiSelectMenu.kt index b43d2c4..fc74f7e 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/MultiSelectMenu.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/MultiSelectMenu.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.multiselectdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookDialog.kt index 5c6036d..80a2b4d 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.multiselectdialog.addmultientrytobookdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModel.kt index 99320d2..7be9e45 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.multiselectdialog.addmultientrytobookdialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModelFactory.kt index 6ad78ee..59d1c31 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addmultientrytobookdialog/AddMultiEntryToBookViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.multiselectdialog.addmultientrytobookdialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryDialog.kt index 49490f8..cefb35e 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.multiselectdialog.addtagtomultientrydialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModel.kt index 677db58..89f3b2d 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.multiselectdialog.addtagtomultientrydialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModelFactory.kt index 6dce8c4..cfc964e 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/multiselectdialog/addtagtomultientrydialog/AddTagToMultiEntryViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.multiselectdialog.addtagtomultientrydialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordDialog.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordDialog.kt index 79d1078..b12fe1c 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordDialog.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.newwordsdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModel.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModel.kt index 281faa5..6ee667c 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModel.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.newwordsdialog import androidx.lifecycle.LiveData diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModelFactory.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModelFactory.kt index 79d4509..02c16c4 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModelFactory.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordViewModelFactory.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.newwordsdialog import androidx.lifecycle.ViewModel diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerAdapter.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerAdapter.kt index e6f610e..f48f68d 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerAdapter.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerAdapter.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.newwordsdialog import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerViewHolder.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerViewHolder.kt index dbb056a..1331543 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerViewHolder.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/newwordsdialog/NewWordsRecyclerViewHolder.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.newwordsdialog import android.os.Bundle diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/CheckBoxWithId.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/CheckBoxWithId.kt index 22ea091..b658afb 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/CheckBoxWithId.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/CheckBoxWithId.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.views import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/ChipWithId.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/ChipWithId.kt index 84f7925..90846fc 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/ChipWithId.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/ChipWithId.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.views import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/LicenseDisplay.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/LicenseDisplay.kt index 1274b3b..7a9a570 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/LicenseDisplay.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/LicenseDisplay.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.views import android.content.Context diff --git a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/SearchBar.kt b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/SearchBar.kt index 67a3ffd..ebe6b5a 100644 --- a/app/src/main/java/com/marcdonald/hibi/uicomponents/views/SearchBar.kt +++ b/app/src/main/java/com/marcdonald/hibi/uicomponents/views/SearchBar.kt @@ -1,3 +1,18 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.uicomponents.views import android.content.Context From 42256fcb44d2a072fadc11f6081457ccf93b50dd Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 8 Jul 2019 18:27:55 +0100 Subject: [PATCH 2/6] Handle Github rate limits --- app/src/main/java/com/marcdonald/hibi/Hibi.kt | 5 ++- .../network/ConnectivityInterceptorImpl.kt | 6 ++-- .../data/network/github/GithubAPIService.kt | 3 +- .../github/GithubStatusCodeInterceptor.kt} | 6 ++-- .../github/GithubStatusCodeInterceptorImpl.kt | 34 +++++++++++++++++++ .../settings/updatedialog/UpdateDialog.kt | 12 +++++++ .../updatedialog/UpdateDialogViewModel.kt | 9 ++++- .../search/searchresults/SearchViewModel.kt | 2 +- app/src/main/res/values/strings.xml | 17 ++++++++++ 9 files changed, 85 insertions(+), 9 deletions(-) rename app/src/main/java/com/marcdonald/hibi/{internal/Exceptions.kt => data/network/github/GithubStatusCodeInterceptor.kt} (82%) create mode 100644 app/src/main/java/com/marcdonald/hibi/data/network/github/GithubStatusCodeInterceptorImpl.kt diff --git a/app/src/main/java/com/marcdonald/hibi/Hibi.kt b/app/src/main/java/com/marcdonald/hibi/Hibi.kt index 8d7d023..22d7263 100644 --- a/app/src/main/java/com/marcdonald/hibi/Hibi.kt +++ b/app/src/main/java/com/marcdonald/hibi/Hibi.kt @@ -25,6 +25,8 @@ import com.marcdonald.hibi.data.database.ProductionAppDatabase import com.marcdonald.hibi.data.network.ConnectivityInterceptor import com.marcdonald.hibi.data.network.ConnectivityInterceptorImpl import com.marcdonald.hibi.data.network.github.GithubAPIService +import com.marcdonald.hibi.data.network.github.GithubStatusCodeInterceptor +import com.marcdonald.hibi.data.network.github.GithubStatusCodeInterceptorImpl import com.marcdonald.hibi.data.network.jisho.JishoAPIService import com.marcdonald.hibi.data.repository.* import com.marcdonald.hibi.internal.NOTIFICATION_CHANNEL_REMINDER_ID @@ -87,8 +89,9 @@ class Hibi : Application(), KodeinAware { // // bind() with singleton { ConnectivityInterceptorImpl(instance()) } + bind() with singleton { GithubStatusCodeInterceptorImpl() } bind() with singleton { JishoAPIService(instance()) } - bind() with singleton { GithubAPIService(instance()) } + bind() with singleton { GithubAPIService(instance(), instance()) } // // bind() from provider { MainEntriesViewModelFactory(instance(), instance(), instance()) } diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt index be73a41..d93d291 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/ConnectivityInterceptorImpl.kt @@ -17,9 +17,9 @@ package com.marcdonald.hibi.data.network import android.content.Context import android.net.ConnectivityManager -import com.marcdonald.hibi.internal.NoConnectivityException import okhttp3.Interceptor import okhttp3.Response +import java.io.IOException class ConnectivityInterceptorImpl(context: Context) : ConnectivityInterceptor { @@ -38,4 +38,6 @@ class ConnectivityInterceptorImpl(context: Context) : ConnectivityInterceptor { val networkInfo = connectivityManager.activeNetworkInfo return networkInfo != null && networkInfo.isConnected } -} \ No newline at end of file +} + +class NoConnectivityException : IOException() \ No newline at end of file diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt index 4462781..8de72e0 100644 --- a/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubAPIService.kt @@ -28,9 +28,10 @@ interface GithubAPIService { suspend fun getNewestVersion(): GithubVersionResponse companion object { - operator fun invoke(connectivityInterceptor: ConnectivityInterceptor): GithubAPIService { + operator fun invoke(connectivityInterceptor: ConnectivityInterceptor, githubStatusCodeInterceptor: GithubStatusCodeInterceptor): GithubAPIService { val okHttpClient = OkHttpClient.Builder() .addInterceptor(connectivityInterceptor) + .addInterceptor(githubStatusCodeInterceptor) .build() return Retrofit.Builder() diff --git a/app/src/main/java/com/marcdonald/hibi/internal/Exceptions.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubStatusCodeInterceptor.kt similarity index 82% rename from app/src/main/java/com/marcdonald/hibi/internal/Exceptions.kt rename to app/src/main/java/com/marcdonald/hibi/data/network/github/GithubStatusCodeInterceptor.kt index b4f41bf..9ba3230 100644 --- a/app/src/main/java/com/marcdonald/hibi/internal/Exceptions.kt +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubStatusCodeInterceptor.kt @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.marcdonald.hibi.internal +package com.marcdonald.hibi.data.network.github -import java.io.IOException +import okhttp3.Interceptor -class NoConnectivityException : IOException() \ No newline at end of file +interface GithubStatusCodeInterceptor : Interceptor \ No newline at end of file diff --git a/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubStatusCodeInterceptorImpl.kt b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubStatusCodeInterceptorImpl.kt new file mode 100644 index 0000000..3b77650 --- /dev/null +++ b/app/src/main/java/com/marcdonald/hibi/data/network/github/GithubStatusCodeInterceptorImpl.kt @@ -0,0 +1,34 @@ +/* + * Copyright 2019 Marc Donald + * + * 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.marcdonald.hibi.data.network.github + +import okhttp3.Interceptor +import okhttp3.Response +import java.io.IOException + +class GithubStatusCodeInterceptorImpl : GithubStatusCodeInterceptor { + override fun intercept(chain: Interceptor.Chain): Response { + val response = chain.proceed(chain.request()) + + if(response.code() == 403) { + throw GithubRateLimitExceededException() + } + + return response + } +} + +class GithubRateLimitExceededException : IOException() \ No newline at end of file diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt index 62005b3..1d9be6a 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialog.kt @@ -135,6 +135,18 @@ class UpdateDialog : HibiDialogFragment(), KodeinAware { } }) + viewModel.displayRateLimitError.observe(this, Observer { value -> + value?.let { display -> + errorDisplay.show(display) + if(display) { + title.text = resources.getString(R.string.generic_error) + message.text = resources.getString(R.string.github_rate_limit_exceeded) + message.show(true) + } + } + }) + + viewModel.newVersionName.observe(this, Observer { value -> value?.let { versionName -> title.text = resources.getString(R.string.new_version_available_title) diff --git a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt index 19a63d4..c7a5f56 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/settings/updatedialog/UpdateDialogViewModel.kt @@ -19,7 +19,8 @@ import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope -import com.marcdonald.hibi.internal.NoConnectivityException +import com.marcdonald.hibi.data.network.NoConnectivityException +import com.marcdonald.hibi.data.network.github.GithubRateLimitExceededException import com.marcdonald.hibi.internal.utils.UpdateUtils import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch @@ -41,6 +42,10 @@ class UpdateDialogViewModel(private val updateUtils: UpdateUtils) : ViewModel() val displayNoConnection: LiveData get() = _displayNoConnection + private val _displayRateLimitError = MutableLiveData() + val displayRateLimitError: LiveData + get() = _displayRateLimitError + private val _displayNoUpdateAvailable = MutableLiveData() val displayNoUpdateAvailable: LiveData get() = _displayNoUpdateAvailable @@ -72,6 +77,8 @@ class UpdateDialogViewModel(private val updateUtils: UpdateUtils) : ViewModel() } else { _displayNoUpdateAvailable.postValue(true) } + } catch(e: GithubRateLimitExceededException) { + _displayRateLimitError.postValue(true) } catch(e: NoConnectivityException) { _displayNoConnection.postValue(true) } catch(e: NumberFormatException) { diff --git a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt index 8f78365..6c02b4b 100644 --- a/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt +++ b/app/src/main/java/com/marcdonald/hibi/search/searchresults/SearchViewModel.kt @@ -19,9 +19,9 @@ import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope +import com.marcdonald.hibi.data.network.NoConnectivityException import com.marcdonald.hibi.data.network.jisho.JishoAPIService import com.marcdonald.hibi.data.network.jisho.apiresponse.Data -import com.marcdonald.hibi.internal.NoConnectivityException import kotlinx.coroutines.launch class SearchViewModel(private val apiService: JishoAPIService) : ViewModel() { diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5827914..4e743e9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,3 +1,19 @@ + + Hibi @@ -209,6 +225,7 @@ Check for Updates No Updates Found You are running the latest version + You have exceeded the Github API rate limit, try again in an hour Update Available A newer version (%1$s) is available for download Download From bfe42c1561283aa1fbedb793a262ea9b7349c92b Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 8 Jul 2019 18:36:16 +0100 Subject: [PATCH 3/6] Revert ConstraintLayout from 2.0.0-beta2 to 2.0.0-beta1 due to bug Fixes bug where text would flow off side of screen --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 45de515..8f37c60 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -56,7 +56,7 @@ dependencies { // AndroidX implementation 'androidx.appcompat:appcompat:1.1.0-rc01' - implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2' + implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta1' implementation 'androidx.preference:preference:1.0.0' implementation 'com.google.android.material:material:1.0.0' implementation "androidx.lifecycle:lifecycle-extensions:2.2.0-alpha02" From ab975b47e2094c0e7b503e44f2a53b3ecdb5c77f Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 8 Jul 2019 18:41:55 +0100 Subject: [PATCH 4/6] Add license disclaimer to XML files --- .../main/res/color/state_list_checkbox_dark.xml | 17 ++++++++++++++++- .../activity_empty_scroll_with_toolbar.xml | 17 ++++++++++++++++- app/src/main/res/layout/activity_main.xml | 16 ++++++++++++++++ app/src/main/res/layout/dialog_add_new_word.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_backup.xml | 17 ++++++++++++++++- .../main/res/layout/dialog_binary_option.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_datepicker.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_entry_books.xml | 17 ++++++++++++++++- .../main/res/layout/dialog_entry_location.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_entry_tags.xml | 17 ++++++++++++++++- .../dialog_main_entries_display_preference.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_main_menu.xml | 17 ++++++++++++++++- .../res/layout/dialog_multi_entry_books.xml | 17 ++++++++++++++++- .../main/res/layout/dialog_multi_entry_tags.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_new_book.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_new_tag.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_new_word.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_restore.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_search.xml | 17 ++++++++++++++++- .../main/res/layout/dialog_search_more_info.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_select_menu.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_text_input.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_timepicker.xml | 17 ++++++++++++++++- app/src/main/res/layout/dialog_update.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_about.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_add_entry.xml | 17 ++++++++++++++++- .../main/res/layout/fragment_book_entries.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_books.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_calendar.xml | 17 ++++++++++++++++- .../res/layout/fragment_fullscreen_image.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_main.xml | 17 ++++++++++++++++- .../main/res/layout/fragment_main_entries.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_oss.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_privacy.xml | 17 ++++++++++++++++- .../main/res/layout/fragment_search_entries.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_settings.xml | 17 ++++++++++++++++- .../main/res/layout/fragment_tagged_entries.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_tags.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_throwback.xml | 17 ++++++++++++++++- .../res/layout/fragment_throwback_entries.xml | 17 ++++++++++++++++- app/src/main/res/layout/fragment_view_entry.xml | 17 ++++++++++++++++- .../res/layout/include_add_entry_bottom_bar.xml | 17 ++++++++++++++++- app/src/main/res/layout/include_option_bar.xml | 17 ++++++++++++++++- app/src/main/res/layout/item_book.xml | 17 ++++++++++++++++- app/src/main/res/layout/item_image.xml | 17 ++++++++++++++++- .../main/res/layout/item_main_screen_entry.xml | 17 ++++++++++++++++- .../main/res/layout/item_main_screen_header.xml | 17 ++++++++++++++++- app/src/main/res/layout/item_new_word.xml | 17 ++++++++++++++++- app/src/main/res/layout/item_search_result.xml | 17 ++++++++++++++++- ...item_search_result_more_info_alternative.xml | 17 ++++++++++++++++- .../item_search_result_more_info_sense.xml | 17 ++++++++++++++++- app/src/main/res/layout/item_tag.xml | 17 ++++++++++++++++- app/src/main/res/layout/item_throwback.xml | 17 ++++++++++++++++- app/src/main/res/layout/sheet_entry_search.xml | 17 ++++++++++++++++- app/src/main/res/layout/toolbar_add_entry.xml | 17 ++++++++++++++++- app/src/main/res/layout/toolbar_back.xml | 17 ++++++++++++++++- .../main/res/layout/toolbar_back_scrolling.xml | 17 ++++++++++++++++- app/src/main/res/layout/toolbar_main.xml | 17 ++++++++++++++++- app/src/main/res/layout/toolbar_main_bot.xml | 17 ++++++++++++++++- app/src/main/res/layout/toolbar_view_entry.xml | 17 ++++++++++++++++- app/src/main/res/layout/view_license.xml | 17 ++++++++++++++++- app/src/main/res/layout/view_search_bar.xml | 17 ++++++++++++++++- app/src/main/res/menu/menu_clipboard.xml | 17 ++++++++++++++++- .../main/res/mipmap-anydpi-v26/ic_launcher.xml | 17 ++++++++++++++++- .../res/mipmap-anydpi-v26/ic_launcher_round.xml | 17 ++++++++++++++++- .../res/mipmap-anydpi-v26/ic_shortcut_add.xml | 17 ++++++++++++++++- .../mipmap-anydpi-v26/ic_shortcut_add_round.xml | 17 ++++++++++++++++- app/src/main/res/navigation/main_navigation.xml | 17 ++++++++++++++++- app/src/main/res/values/arrays.xml | 17 ++++++++++++++++- app/src/main/res/values/attrs.xml | 17 ++++++++++++++++- app/src/main/res/values/colors.xml | 17 ++++++++++++++++- app/src/main/res/values/dimens.xml | 17 ++++++++++++++++- .../main/res/values/ic_launcher_background.xml | 17 ++++++++++++++++- .../res/values/ic_shortcut_add_background.xml | 17 ++++++++++++++++- app/src/main/res/values/styles.xml | 16 ++++++++++++++++ app/src/main/res/xml/about.xml | 17 ++++++++++++++++- app/src/main/res/xml/filepaths.xml | 17 ++++++++++++++++- app/src/main/res/xml/preferences.xml | 17 ++++++++++++++++- app/src/main/res/xml/shortcuts.xml | 17 ++++++++++++++++- 79 files changed, 1264 insertions(+), 77 deletions(-) diff --git a/app/src/main/res/color/state_list_checkbox_dark.xml b/app/src/main/res/color/state_list_checkbox_dark.xml index 395caf7..a46867f 100644 --- a/app/src/main/res/color/state_list_checkbox_dark.xml +++ b/app/src/main/res/color/state_list_checkbox_dark.xml @@ -1,4 +1,19 @@ - + + diff --git a/app/src/main/res/layout/activity_empty_scroll_with_toolbar.xml b/app/src/main/res/layout/activity_empty_scroll_with_toolbar.xml index 97ac2df..896b517 100644 --- a/app/src/main/res/layout/activity_empty_scroll_with_toolbar.xml +++ b/app/src/main/res/layout/activity_empty_scroll_with_toolbar.xml @@ -1,4 +1,19 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml index 2b7f809..a129f18 100644 --- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -1,4 +1,19 @@ - + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add.xml b/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add.xml index 3d027dd..d3b3b6d 100644 --- a/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add.xml +++ b/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add.xml @@ -1,4 +1,19 @@ - + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add_round.xml index 3d027dd..d3b3b6d 100644 --- a/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add_round.xml +++ b/app/src/main/res/mipmap-anydpi-v26/ic_shortcut_add_round.xml @@ -1,4 +1,19 @@ - + + diff --git a/app/src/main/res/navigation/main_navigation.xml b/app/src/main/res/navigation/main_navigation.xml index ef55225..87f6c35 100644 --- a/app/src/main/res/navigation/main_navigation.xml +++ b/app/src/main/res/navigation/main_navigation.xml @@ -1,4 +1,19 @@ - + + + + @string/display_menu diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index 4d9c3e3..6567945 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -1,4 +1,19 @@ - + + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 965632a..2606e0c 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,4 +1,19 @@ - + + #FFFFFF diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml index e0d01ab..9697528 100644 --- a/app/src/main/res/values/dimens.xml +++ b/app/src/main/res/values/dimens.xml @@ -1,4 +1,19 @@ - + + 16dp 8dp diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml index 1129ca2..ee578b7 100644 --- a/app/src/main/res/values/ic_launcher_background.xml +++ b/app/src/main/res/values/ic_launcher_background.xml @@ -1,4 +1,19 @@ - + + #212121 \ No newline at end of file diff --git a/app/src/main/res/values/ic_shortcut_add_background.xml b/app/src/main/res/values/ic_shortcut_add_background.xml index ca99984..aa342d5 100644 --- a/app/src/main/res/values/ic_shortcut_add_background.xml +++ b/app/src/main/res/values/ic_shortcut_add_background.xml @@ -1,4 +1,19 @@ - + + @color/shortcutBackground \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 18193cd..750cf15 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -1,3 +1,19 @@ + + diff --git a/app/src/main/res/xml/about.xml b/app/src/main/res/xml/about.xml index b53a600..b11a425 100644 --- a/app/src/main/res/xml/about.xml +++ b/app/src/main/res/xml/about.xml @@ -1,4 +1,19 @@ - + + + + + + + + Date: Mon, 8 Jul 2019 19:23:34 +0100 Subject: [PATCH 5/6] Add landscape layout for View Entry --- .../viewentryscreen/ViewEntryFragment.kt | 19 +- .../res/layout-land/fragment_view_entry.xml | 227 ++++++++++++++++++ 2 files changed, 243 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/layout-land/fragment_view_entry.xml diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt index 368d437..1e97e49 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/viewentryscreen/ViewEntryFragment.kt @@ -18,6 +18,7 @@ package com.marcdonald.hibi.screens.entryscreens.viewentryscreen import android.content.ClipData import android.content.ClipboardManager import android.content.Context +import android.content.res.Configuration import android.os.Bundle import android.view.LayoutInflater import android.view.View @@ -32,6 +33,7 @@ import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProviders import androidx.navigation.Navigation import androidx.recyclerview.widget.GridLayoutManager +import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.google.android.material.button.MaterialButton import com.google.android.material.chip.Chip @@ -114,11 +116,17 @@ class ViewEntryFragment : Fragment(), KodeinAware { tagDisplayHolder = view.findViewById(R.id.lin_view_tags) bookDisplay = view.findViewById(R.id.cg_view_books) bookDisplayHolder = view.findViewById(R.id.lin_view_books) - scrollView = view.findViewById(R.id.scroll_view_entry) - scrollView.setOnScrollChangeListener(scrollListener) copyButton = view.findViewById(R.id.fab_view_copy) copyButton.setOnClickListener { copyToClipboard() } + scrollView = view.findViewById(R.id.scroll_view_entry) + scrollView.setOnScrollChangeListener(scrollListener) + + if(resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) { + val metaScrollView = view.findViewById(R.id.scroll_view_entry_meta) + metaScrollView.setOnScrollChangeListener(scrollListener) + } + searchBar = view.findViewById(R.id.searchbar_view_entry) searchBar.setSearchAction(this::search) locationDisplay = view.findViewById(R.id.txt_view_location) @@ -212,7 +220,12 @@ class ViewEntryFragment : Fragment(), KodeinAware { private fun setupImageRecycler(view: View) { val recycler: RecyclerView = view.findViewById(R.id.recycler_view_entry_images) this.imageRecyclerAdapter = ImageRecyclerAdapter(::onImageClick, {}, requireContext(), requireActivity().theme) - val layoutManager = GridLayoutManager(context, 3) + + val layoutManager = if(resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT) + GridLayoutManager(context, 3) + else + LinearLayoutManager(context) + recycler.adapter = imageRecyclerAdapter recycler.layoutManager = layoutManager } diff --git a/app/src/main/res/layout-land/fragment_view_entry.xml b/app/src/main/res/layout-land/fragment_view_entry.xml new file mode 100644 index 0000000..dbef6a6 --- /dev/null +++ b/app/src/main/res/layout-land/fragment_view_entry.xml @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From ae94e5bf81a78d3d87a12f53d21e218e298585ef Mon Sep 17 00:00:00 2001 From: Marc Date: Mon, 8 Jul 2019 19:33:56 +0100 Subject: [PATCH 6/6] Add more columns of images for Add Entry in landscape mode --- .../entryscreens/addentryscreen/AddEntryFragment.kt | 8 +++++++- app/src/main/res/layout/fragment_add_entry.xml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt index 7f3e5bf..b1c52ad 100644 --- a/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt +++ b/app/src/main/java/com/marcdonald/hibi/screens/entryscreens/addentryscreen/AddEntryFragment.kt @@ -22,6 +22,7 @@ import android.content.ClipboardManager import android.content.Context import android.content.Intent import android.content.pm.PackageManager +import android.content.res.Configuration import android.os.Bundle import android.preference.PreferenceManager import android.view.LayoutInflater @@ -291,7 +292,12 @@ class AddEntryFragment : Fragment(), KodeinAware { private fun setupImageRecycler(view: View) { val recycler: RecyclerView = view.findViewById(R.id.recycler_add_entry_images) this.imageRecyclerAdapter = ImageRecyclerAdapter({}, ::onImageLongClick, requireContext(), requireActivity().theme) - val layoutManager = GridLayoutManager(context, 3) + + val layoutManager = if(resources.configuration.orientation == Configuration.ORIENTATION_PORTRAIT) + GridLayoutManager(context, 3) + else + GridLayoutManager(context, 5) + recycler.adapter = imageRecyclerAdapter recycler.layoutManager = layoutManager } diff --git a/app/src/main/res/layout/fragment_add_entry.xml b/app/src/main/res/layout/fragment_add_entry.xml index 0b497eb..4bfcd9d 100644 --- a/app/src/main/res/layout/fragment_add_entry.xml +++ b/app/src/main/res/layout/fragment_add_entry.xml @@ -86,7 +86,7 @@