Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

[UPDATE] Support tech blog items on resources screen #113

Merged
merged 3 commits into from
Jun 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.hossainkhan.android.constraintlayout"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 200
versionName "2.0-constraint-layout-demo"
versionCode 210
versionName "2.1-constraint-layout-demo"
versionNameSuffix "-${gitSha()}"

buildConfigField "String", "GIT_SHA", "\"${gitSha()}\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import java.util.Date


/**
* External resource info.
* External resource info like Youtube video or technical articles online.
*
* Example:
* - author: Nicolas Roard & John Hoford
Expand Down Expand Up @@ -52,7 +52,8 @@ data class ResourceInfo(
return FirestoreDateFormatter.date(date)
}

val isYouTubeUrl: Boolean = url.contains("youtube.com/watch?v=", ignoreCase = true)
val isYouTubeUrl: Boolean
get() = url.contains("youtube.com/watch?v=", ignoreCase = true)

/**
* Provides [Uri] for directly invoking youtube app via Android Intent.
Expand Down