Remove extraneous spaces

This commit is contained in:
Matthieu 2020-03-06 09:00:18 +01:00
parent d0ca08391b
commit b214238457
3 changed files with 8 additions and 18 deletions

View File

@ -1,9 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.h.pixeldroid">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"

View File

@ -1,10 +1,8 @@
package com.h.pixeldroid.api
import android.util.Log
import com.h.pixeldroid.objects.*
import com.h.pixeldroid.objects.Application
import com.h.pixeldroid.objects.Status
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
@ -13,6 +11,8 @@ import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query
import retrofit2.http.Field
/*
Implements the Pixelfed API
https://docs.pixelfed.org/technical-documentation/api-v1.html
@ -40,14 +40,6 @@ interface PixelfedAPI {
@Query("limit") limit: Int? = null
): Call<List<Status>>
@GET()
fun getToken(
@Query("client_id") client_id: String,
@Query("client_secret") client_secret: String,
@Query("redirect_uri") redirect_uri: String,
@Query("grant_type") grant_type: String
): Call<Token>
companion object {
fun create(baseUrl: String): PixelfedAPI {

View File

@ -2,7 +2,7 @@ package com.h.pixeldroid.objects
data class Token(
val access_token: String,
val token_type: String,
val scope: String,
val created_at: Int
val token_type: String,
val scope: String,
val created_at: Int
)