Release versionCode = 2

This commit is contained in:
Peter Stuifzand 2018-02-28 10:50:13 +01:00
parent 1bf3af94d8
commit fb3925978f
12 changed files with 214 additions and 25 deletions

View File

@ -6,8 +6,8 @@ android {
applicationId "eu.stuifzand.micropub" applicationId "eu.stuifzand.micropub"
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 26 targetSdkVersion 26
versionCode 1 versionCode 2
versionName "1.0" versionName '0.0.1-alpha'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
buildTypes { buildTypes {
@ -26,27 +26,25 @@ android {
dexOptions { dexOptions {
javaMaxHeapSize "2048M" javaMaxHeapSize "2048M"
} }
productFlavors {
}
} }
dependencies { dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar']) implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0' implementation 'com.android.support:design:26.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.9.1' implementation 'com.squareup.okhttp3:okhttp:3.9.1'
// Logging // Logging
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1' implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
// ViewModel and LiveData // ViewModel and LiveData
implementation "android.arch.lifecycle:extensions:1.1.0" implementation 'android.arch.lifecycle:extensions:1.1.0'
annotationProcessor "android.arch.lifecycle:compiler:1.1.0" annotationProcessor "android.arch.lifecycle:compiler:1.1.0"
// Java8 support for Lifecycles // Java8 support for Lifecycles
implementation "android.arch.lifecycle:common-java8:1.1.0" implementation 'android.arch.lifecycle:common-java8:1.1.0'
implementation 'org.jsoup:jsoup:1.10.1' implementation 'org.jsoup:jsoup:1.10.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.2' implementation 'com.google.code.gson:gson:2.8.2'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

View File

@ -19,9 +19,9 @@
<application <application
android:allowBackup="true" android:allowBackup="true"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_logo"
android:label="@string/app_name" android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_logo_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/AppTheme"> android:theme="@style/AppTheme">
<activity <activity
@ -44,7 +44,7 @@
</activity> </activity>
<activity android:name=".auth.WebSigninActivity" /> <activity android:name=".auth.WebSigninActivity" />
<activity android:name=".auth.AuthenticationActivity" /> <activity android:name=".auth.AuthenticationActivity" />
<activity android:name=".eu.stuifzand.micropub.auth.AccountsActivity" /> <activity android:name=".auth.AccountsActivity" />
<service <service
android:name=".auth.AuthenticatorService" android:name=".auth.AuthenticatorService"

View File

@ -44,6 +44,7 @@ public class PostMessageTask extends AsyncTask<String, Void, String> {
} }
RequestBody formBody = builder.build(); RequestBody formBody = builder.build();
micropubBackend = "http://192.168.178.21:5000/micropub";
Request request = new Request.Builder() Request request = new Request.Builder()
.addHeader("Authorization", "Bearer " + accessToken) .addHeader("Authorization", "Bearer " + accessToken)
.method("POST", formBody) .method("POST", formBody)

View File

@ -4,6 +4,6 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context="eu.stuifzand.micropub.eu.stuifzand.micropub.auth.AccountsActivity"> tools:context=".auth.AccountsActivity">
</android.support.constraint.ConstraintLayout> </android.support.constraint.ConstraintLayout>

View File

@ -42,13 +42,5 @@
app:layout_behavior="@string/appbar_scrolling_view_behavior" app:layout_behavior="@string/appbar_scrolling_view_behavior"
/> />
<android.support.design.widget.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@android:drawable/ic_dialog_email" />
</android.support.design.widget.CoordinatorLayout> </android.support.design.widget.CoordinatorLayout>
</layout> </layout>

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -1,5 +1,5 @@
<resources> <resources>
<string name="app_name">Micropub</string> <string name="app_name">Wrimini</string>
<string name="action_settings">Settings</string> <string name="action_settings">Settings</string>
<string name="button">Post</string> <string name="button">Post</string>
<string name="name">Name</string> <string name="name">Name</string>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android" <account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="@string/account_type" android:accountType="@string/account_type"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_logo"
android:label="@string/app_name" android:label="@string/app_name"
android:smallIcon="@mipmap/ic_launcher" /> android:smallIcon="@mipmap/ic_logo" />

198
drawing.svg Normal file
View File

@ -0,0 +1,198 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
id="svg8"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
sodipodi:docname="drawing.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="-39.647606"
inkscape:cy="979.99257"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1292"
inkscape:window-height="1016"
inkscape:window-x="628"
inkscape:window-y="27"
inkscape:window-maximized="0"
showguides="true"
inkscape:guide-bbox="true" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#d7f4e3;fill-opacity:1;stroke:none;stroke-width:0.26458332"
id="rect3750"
width="146.65475"
height="146.65475"
x="17.386906"
y="36.952374"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_logo.png"
inkscape:export-xdpi="88.6763"
inkscape:export-ydpi="88.6763"
ry="23.434525" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:84.95552063px;line-height:125%;font-family:Nilus;-inkscape-font-specification:Nilus;letter-spacing:0px;word-spacing:0px;fill:#9dac93;fill-opacity:1;stroke:none;stroke-width:2.12388802px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="41.491356"
y="112.94338"
id="text3790"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_logo.png"
inkscape:export-xdpi="88.6763"
inkscape:export-ydpi="88.6763"><tspan
sodipodi:role="line"
id="tspan3788"
x="41.491356"
y="112.94338"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Nilus;-inkscape-font-specification:Nilus;fill:#9dac93;stroke-width:2.12388802px">W</tspan></text>
<rect
style="fill:#d7f4e3;fill-opacity:1;stroke:none;stroke-width:0.51266968"
id="rect3750-0"
width="406.70236"
height="198.5482"
x="-180.67262"
y="273.07678"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_feature.png"
inkscape:export-xdpi="63.964317"
inkscape:export-ydpi="63.964317" />
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:82.13399506px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#9dac93;fill-opacity:1;stroke:none;stroke-width:2.05334997px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="63.35685"
y="162.51611"
id="text3876"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_logo.png"
inkscape:export-xdpi="88.6763"
inkscape:export-ydpi="88.6763"><tspan
sodipodi:role="line"
id="tspan3874"
x="63.35685"
y="162.51611"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Nilus;-inkscape-font-specification:Nilus;fill:#9dac93;stroke-width:2.05334997px">M</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:84.95552063px;line-height:125%;font-family:Nilus;-inkscape-font-specification:Nilus;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.12388802px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="123.28244"
y="402.57098"
id="text3790-2"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_feature.png"
inkscape:export-xdpi="63.964317"
inkscape:export-ydpi="63.964317"><tspan
sodipodi:role="line"
id="tspan3788-9"
x="123.28244"
y="402.57098"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Nilus;-inkscape-font-specification:Nilus;stroke-width:2.12388802px">W</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:82.13399506px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.05334997px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="145.14795"
y="452.14368"
id="text3876-3"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_feature.png"
inkscape:export-xdpi="63.964317"
inkscape:export-ydpi="63.964317"><tspan
sodipodi:role="line"
id="tspan3874-8"
x="145.14795"
y="452.14368"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Nilus;-inkscape-font-specification:Nilus;stroke-width:2.05334997px">M</tspan></text>
<rect
style="fill:#d7f4e3;fill-opacity:1;stroke:none;stroke-width:0.26515096"
id="rect3750-0-2"
width="180"
height="120"
x="-200.32736"
y="632.3277"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_promo.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:52.65560913px;line-height:125%;font-family:Carlito;-inkscape-font-specification:Carlito;letter-spacing:0px;word-spacing:0px;fill:#217867;fill-opacity:1;stroke:none;stroke-width:1.31639028px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-195.60469"
y="711.05896"
id="text3845"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_promo.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4"><tspan
sodipodi:role="line"
x="-195.60469"
y="711.05896"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Carlito;-inkscape-font-specification:Carlito;fill:#217867;stroke-width:1.31639028px"
id="tspan3847">Wrimini</tspan></text>
<rect
style="fill:#d7f4e3;fill-opacity:1;stroke:none;stroke-width:0.26458332"
id="rect3750-4"
width="146.65475"
height="146.65475"
x="-282.7262"
y="-26.547615"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_logo_round.png"
inkscape:export-xdpi="88.68"
inkscape:export-ydpi="88.68"
ry="73.327377" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:84.95552063px;line-height:125%;font-family:Nilus;-inkscape-font-specification:Nilus;letter-spacing:0px;word-spacing:0px;fill:#9dac93;fill-opacity:1;stroke:none;stroke-width:2.12388802px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-258.62173"
y="49.443398"
id="text3790-5"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_logo_round.png"
inkscape:export-xdpi="88.68"
inkscape:export-ydpi="88.68"><tspan
sodipodi:role="line"
id="tspan3788-4"
x="-258.62173"
y="49.443398"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Nilus;-inkscape-font-specification:Nilus;fill:#9dac93;stroke-width:2.12388802px">W</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:82.13399506px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#9dac93;fill-opacity:1;stroke:none;stroke-width:2.05334997px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="-236.75624"
y="99.016129"
id="text3876-32"
inkscape:export-filename="/home/peter/AndroidStudioProjects/Micropub/app/src/main/res/mipmap-hdpi/ic_logo_round.png"
inkscape:export-xdpi="88.68"
inkscape:export-ydpi="88.68"><tspan
sodipodi:role="line"
id="tspan3874-2"
x="-236.75624"
y="99.016129"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Nilus;-inkscape-font-specification:Nilus;fill:#9dac93;stroke-width:2.05334997px">M</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.5 KiB