Browse Source

Release versionCode = 2

master
Peter Stuifzand 3 years ago
parent
commit
fb3925978f
  1. 18
      app/build.gradle
  2. 6
      app/src/main/AndroidManifest.xml
  3. 1
      app/src/main/java/eu/stuifzand/micropub/PostMessageTask.java
  4. 2
      app/src/main/res/layout/activity_account.xml
  5. 8
      app/src/main/res/layout/activity_main.xml
  6. BIN
      app/src/main/res/mipmap-hdpi/ic_feature.png
  7. BIN
      app/src/main/res/mipmap-hdpi/ic_logo.png
  8. BIN
      app/src/main/res/mipmap-hdpi/ic_logo_round.png
  9. BIN
      app/src/main/res/mipmap-hdpi/ic_promo.png
  10. 2
      app/src/main/res/values/strings.xml
  11. 4
      app/src/main/res/xml/authenticator.xml
  12. 198
      drawing.svg

18
app/build.gradle

@ -6,8 +6,8 @@ android {
applicationId "eu.stuifzand.micropub"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
versionCode 2
versionName '0.0.1-alpha'
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
@ -26,27 +26,25 @@ android {
dexOptions {
javaMaxHeapSize "2048M"
}
productFlavors {
}
}
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.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:26.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.9.1'
// Logging
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
// 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"
// 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 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'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

6
app/src/main/AndroidManifest.xml

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

1
app/src/main/java/eu/stuifzand/micropub/PostMessageTask.java

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

2
app/src/main/res/layout/activity_account.xml

@ -4,6 +4,6 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="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>

8
app/src/main/res/layout/activity_main.xml

@ -42,13 +42,5 @@
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>
</layout>

BIN
app/src/main/res/mipmap-hdpi/ic_feature.png

After

Width: 1024  |  Height: 500  |  Size: 28 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_logo.png

After

Width: 512  |  Height: 512  |  Size: 24 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_logo_round.png

After

Width: 512  |  Height: 512  |  Size: 31 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_promo.png

After

Width: 180  |  Height: 120  |  Size: 3.7 KiB

2
app/src/main/res/values/strings.xml

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

4
app/src/main/res/xml/authenticator.xml

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

198
drawing.svg

@ -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>
Loading…
Cancel
Save