Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Commit

Permalink
Fix sample and update with jitpack dependency
Browse files Browse the repository at this point in the history
Had removed the ConstraintLayout dependency but forgot
the template used it.
  • Loading branch information
gabrielfeo committed May 30, 2020
1 parent 756e52d commit db1b857
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 6 additions & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ android {

}

repositories {
maven { url = uri("https://jitpack.io") }
}

dependencies {
implementation(project(":library"))
implementation("com.gabrielfeo:suspendpermission:-SNAPSHOT")
// Replace "-SNAPSHOT" with version from README
implementation(Kotlin.StdLib)
with(AndroidX) {
implementation(Core)
Expand Down
12 changes: 4 additions & 8 deletions sample/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
tools:context=".MainActivity">

<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:text="Hello World!" />

</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>

0 comments on commit db1b857

Please sign in to comment.