Let us say I create a recycler view for MyFeedItem
using snippets from this codelab
I copy snippets from the mentioned codelab to create below file first
class SleepNightDiffCallback : DiffUtil.ItemCallback<SleepNight>() {
override fun areItemsTheSame(oldItem: SleepNight, newItem: SleepNight): Boolean {
return oldItem.nightId == newItem.nightId
}
override fun areContentsTheSame(oldItem: SleepNight, newItem: SleepNight): Boolean {
return oldItem == newItem
}
}
and just replace SleepNight
with MyFeedItem
and nightId
with id
to generate "my" software below
class MyFeedItemDiffCallback : DiffUtil.ItemCallback<MyFeedItem>() {
override fun areItemsTheSame(oldItem: MyFeedItem, newItem: MyFeedItem): Boolean {
return oldItem.id == newItem.id
}
override fun areContentsTheSame(oldItem: MyFeedItem, newItem: MyFeedItem): Boolean {
return oldItem == newItem
}
}
For brevity, let us assume that this is the only file in the software produced and I am selling this software commercially.
- Am I under some copyright violations here? (given no license info is mentioned on the website)
- If yes, what is the remedy
- For the same scenario, let us say that the snippet is under MIT license and I have produced the same single file software that I am selling commercially and keeping it closed source. Are there any copyright violations, if yes, then what is the remedy and can I keep it closed source.