Compare commits
No commits in common. "0c8cfff737ad706c5969ec289e853c14af6ca298" and "38eaf4e25f0b6a3919b87e53e356e088c51f494d" have entirely different histories.
0c8cfff737
...
38eaf4e25f
12
.idea/runConfigurations.xml
Normal file
12
.idea/runConfigurations.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?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 27
|
||||
versionCode 19
|
||||
versionName '0.1.4-alpha'
|
||||
targetSdkVersion 26
|
||||
versionCode 15
|
||||
versionName '0.1.0-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.2'
|
||||
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
|
||||
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.1"
|
||||
def room_version = "1.1.0"
|
||||
|
||||
implementation "android.arch.persistence.room:runtime:$room_version"
|
||||
annotationProcessor "android.arch.persistence.room:compiler:$room_version"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
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="597dp"
|
||||
android:layout_height="574dp"
|
||||
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="0.5"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_chainStyle="spread_inside">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
|
|
@ -57,17 +57,15 @@
|
|||
|
||||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/contentLayout"
|
||||
android:layout_height="110dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="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"
|
||||
android:layout_width="match_parent">
|
||||
app:layout_constraintTop_toBottomOf="@+id/editNameLayout">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/content"
|
||||
|
|
@ -88,6 +86,7 @@
|
|||
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"
|
||||
|
|
@ -115,14 +114,12 @@
|
|||
<LinearLayout
|
||||
android:id="@+id/listLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="110dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="top|fill"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/editCategoryLayout">
|
||||
app:layout_constraintTop_toBottomOf="@+id/editCategoryLayout"
|
||||
tools:layout_editor_absoluteX="16dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
|
|
@ -146,13 +143,11 @@
|
|||
<android.support.design.widget.TextInputLayout
|
||||
android:id="@+id/editCategoryLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="55dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:hint="@string/categories"
|
||||
app:layout_constraintBottom_toTopOf="@+id/listLayout"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/contentLayout">
|
||||
app:layout_constraintTop_toBottomOf="@+id/contentLayout"
|
||||
tools:layout_editor_absoluteX="0dp">
|
||||
|
||||
<android.support.design.widget.TextInputEditText
|
||||
android:id="@+id/editCategory"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user