diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 74f6296..4d24e5b 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,6 +4,7 @@ - + diff --git a/README.md b/README.md index 3b808b8..bc6a21f 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,16 @@ Generate API credentials (Consumer Key & Consumer Secret) following this instruc Check out the WooCommerce API endpoints and data that can be manipulated in . +## Demo +I have left consumer key and secret within the app, for you to test the app without an installation of wordpress. To use my installation of wordpress, here are the credentials: + +username: demo +password: demo2019 +https://gilo.me/store/wp-admin + +PS/ Do no harm + + ## Setup Setup for the new WP REST API integration (WooCommerce 2.6 or later): diff --git a/app/src/main/res/layout/single_order_item.xml b/app/src/main/res/layout/single_order_item.xml index fb63b5c..fec5cee 100644 --- a/app/src/main/res/layout/single_order_item.xml +++ b/app/src/main/res/layout/single_order_item.xml @@ -10,7 +10,7 @@ android:layout_marginTop="16dp" > - - + Testing documentation - */ -public class ExampleUnitTest { - @Test - public void addition_isCorrect() { - assertEquals(4, 2 + 2); - } -} \ No newline at end of file diff --git a/woodroid/src/test/java/me/gilo/woodroid/ExampleUnitTest.kt b/woodroid/src/test/java/me/gilo/woodroid/ExampleUnitTest.kt new file mode 100644 index 0000000..f468fba --- /dev/null +++ b/woodroid/src/test/java/me/gilo/woodroid/ExampleUnitTest.kt @@ -0,0 +1,18 @@ +package me.gilo.woodroid + +import org.junit.Test + +import org.junit.Assert.* + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see [Testing documentation](http://d.android.com/tools/testing) + */ +class ExampleUnitTest { + @Test + fun addition_isCorrect() { + assertEquals(4, (2 + 2).toLong()) + } +} +