Compare commits
6 Commits
38eaf4e25f
...
0c8cfff737
Author | SHA1 | Date | |
---|---|---|---|
0c8cfff737 | |||
9aea984e4c | |||
9297211785 | |||
d69baed0cf | |||
08f997ff48 | |||
6532cd4697 |
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RunConfigurationProducerService">
|
||||
<option name="ignoredProducers">
|
||||
<set>
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
|
||||
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
|
||||
</set>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
|
@ -6,9 +6,9 @@ android {
|
|||
defaultConfig {
|
||||
applicationId "eu.stuifzand.micropub"
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 26
|
||||
versionCode 15
|
||||
versionName '0.1.0-alpha'
|
||||
targetSdkVersion 27
|
||||
versionCode 19
|
||||
versionName '0.1.4-alpha'
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
|
@ -39,7 +39,7 @@ android {
|
|||
dependencies {
|
||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||
implementation 'com.android.support:appcompat-v7:26.1.0'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
|
||||
implementation 'com.android.support:design:26.1.0'
|
||||
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
|
||||
testImplementation 'com.squareup.okhttp3:mockwebserver:3.9.1';
|
||||
|
@ -67,7 +67,7 @@ dependencies {
|
|||
|
||||
implementation "io.reactivex.rxjava2:rxjava:2.1.12"
|
||||
|
||||
def room_version = "1.1.0"
|
||||
def room_version = "1.1.1"
|
||||
|
||||
implementation "android.arch.persistence.room:runtime:$room_version"
|
||||
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
package eu.stuifzand.micropub;
|
||||
|
||||
import android.support.test.filters.LargeTest;
|
||||
import android.support.test.rule.ActivityTestRule;
|
||||
import android.support.test.runner.AndroidJUnit4;
|
||||
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static android.support.test.espresso.Espresso.onView;
|
||||
import static android.support.test.espresso.action.ViewActions.typeText;
|
||||
import static android.support.test.espresso.matcher.ViewMatchers.withId;
|
||||
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
@LargeTest
|
||||
public class HelloWorldEspressoTest {
|
||||
|
||||
@Rule
|
||||
public ActivityTestRule<MainActivity> mActivityRule =
|
||||
new ActivityTestRule(MainActivity.class);
|
||||
|
||||
@Test
|
||||
public void createPost() throws Exception {
|
||||
onView(withId(R.id.content)).perform(typeText("This is a test message"));
|
||||
}
|
||||
}
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<android.support.constraint.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="574dp"
|
||||
android:layout_height="597dp"
|
||||
android:overScrollMode="always"
|
||||
android:paddingTop="8dp"
|
||||
android:scrollbars="vertical">
|
||||
|
@ -39,11 +39,11 @@
|
|||
android:id="@+id/editBookmarkOfTextLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
app:layout_constraintBottom_toTopOf="@+id/editNameLayout"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="spread_inside">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
|
@ -57,15 +57,17 @@
|
|||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/contentLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:layout_height="110dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:hint="@string/content"
|
||||
app:counterEnabled="true"
|
||||
app:layout_constraintBottom_toTopOf="@+id/editCategoryLayout"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.5"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editNameLayout">
|
||||
app:layout_constraintTop_toBottomOf="@+id/editNameLayout"
|
||||
android:layout_width="match_parent">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/content"
|
||||
|
@ -86,7 +88,6 @@
|
|||
android:id="@+id/editNameLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="@string/name"
|
||||
app:counterEnabled="false"
|
||||
app:layout_constraintBottom_toTopOf="@+id/contentLayout"
|
||||
|
@ -114,12 +115,14 @@
|
|||
<LinearLayout
|
||||
android:id="@+id/listLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="110dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="top|fill"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editCategoryLayout"
|
||||
tools:layout_editor_absoluteX="16dp">
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editCategoryLayout">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
|
@ -143,11 +146,13 @@
|
|||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/editCategoryLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="55dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="@string/categories"
|
||||
app:layout_constraintTop_toBottomOf="@+id/contentLayout"
|
||||
tools:layout_editor_absoluteX="0dp">
|
||||
app:layout_constraintBottom_toTopOf="@+id/listLayout"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/contentLayout">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/editCategory"
|
||||
|
|
Loading…
Reference in New Issue
Block a user