Skip to content

Commit

Permalink
bump version for release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
agonist committed Apr 10, 2021
1 parent 5a3ca72 commit b30248a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ android {
applicationId = "com.onionsquare.goabase"
minSdkVersion(21)
targetSdkVersion(30)
versionCode = 10001
versionName = "1.0.1"
versionCode = 10002
versionName = "1.0.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,7 @@ fun LinkifyText(text: String, modifier: Modifier = Modifier) {
}
}
}
},
onTextLayout = { layoutResult.value = it }
)
}, onTextLayout = { layoutResult.value = it })
}

private val urlPattern: Pattern = Pattern.compile(
Expand All @@ -235,13 +233,11 @@ private val urlPattern: Pattern = Pattern.compile(

fun extractUrls(text: String): List<LinkInfos> {
val matcher = urlPattern.matcher(text)
var matchStart: Int
var matchEnd: Int
val links = arrayListOf<LinkInfos>()

while (matcher.find()) {
matchStart = matcher.start(1)
matchEnd = matcher.end()
val matchStart = matcher.start(1)
val matchEnd = matcher.end()

var url = text.substring(matchStart, matchEnd)
if (!url.startsWith("http://") && !url.startsWith("https://"))
Expand Down

0 comments on commit b30248a

Please sign in to comment.