diff --git a/settings.gradle b/settings.gradle index d131e13f4..5a0cacc22 100644 --- a/settings.gradle +++ b/settings.gradle @@ -4,5 +4,4 @@ include ':twidere.library.extension' include ':twidere.wear' include ':twidere.donate.nyanwp' include ':twidere.donate.nyanwp.wear' -include ':twidere.component.nyan' -include ':twidere.extension.shortener.gist' \ No newline at end of file +include ':twidere.component.nyan' \ No newline at end of file diff --git a/twidere.extension.shortener.gist/.gitignore b/twidere.extension.shortener.gist/.gitignore deleted file mode 100644 index 796b96d1c..000000000 --- a/twidere.extension.shortener.gist/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build diff --git a/twidere.extension.shortener.gist/README.md b/twidere.extension.shortener.gist/README.md new file mode 100644 index 000000000..6629c128f --- /dev/null +++ b/twidere.extension.shortener.gist/README.md @@ -0,0 +1 @@ +# Moved to [Twidere-Android-Extension-Gist](https://github.com/TwidereProject/Twidere-Android-Extension-Gist) # \ No newline at end of file diff --git a/twidere.extension.shortener.gist/build.gradle b/twidere.extension.shortener.gist/build.gradle deleted file mode 100644 index 29bfd85e0..000000000 --- a/twidere.extension.shortener.gist/build.gradle +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -apply plugin: 'com.android.application' -apply plugin: 'com.neenbedankt.android-apt' - -android { - - defaultConfig { - applicationId "org.mariotaku.twidere.extension.shortener.gist" - minSdkVersion 14 - targetSdkVersion 23 - versionCode 1 - versionName "0.9" - } - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } - } -} - -dependencies { - apt 'com.bluelinelabs:logansquare-compiler:1.3.7' - compile 'com.github.mariotaku.RestFu:urlconnection:0.9.25' - compile project(':twidere.library.extension') - compile fileTree(dir: 'libs', include: ['*.jar']) -} diff --git a/twidere.extension.shortener.gist/proguard-rules.pro b/twidere.extension.shortener.gist/proguard-rules.pro deleted file mode 100644 index a3abb5fc4..000000000 --- a/twidere.extension.shortener.gist/proguard-rules.pro +++ /dev/null @@ -1,17 +0,0 @@ -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in /Users/mariotaku/Library/Android/sdk/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the proguardFiles -# directive in build.gradle. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/twidere.extension.shortener.gist/src/androidTest/java/org/mariotaku/twidere/extension/shortener/gist/ApplicationTest.java b/twidere.extension.shortener.gist/src/androidTest/java/org/mariotaku/twidere/extension/shortener/gist/ApplicationTest.java deleted file mode 100644 index e38c8501e..000000000 --- a/twidere.extension.shortener.gist/src/androidTest/java/org/mariotaku/twidere/extension/shortener/gist/ApplicationTest.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import android.app.Application; -import android.test.ApplicationTestCase; - -/** - * Testing Fundamentals - */ -public class ApplicationTest extends ApplicationTestCase { - public ApplicationTest() { - super(Application.class); - } -} \ No newline at end of file diff --git a/twidere.extension.shortener.gist/src/main/AndroidManifest.xml b/twidere.extension.shortener.gist/src/main/AndroidManifest.xml deleted file mode 100644 index 3039356f0..000000000 --- a/twidere.extension.shortener.gist/src/main/AndroidManifest.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/Gist.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/Gist.java deleted file mode 100644 index 973c25a39..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/Gist.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import com.bluelinelabs.logansquare.annotation.JsonField; -import com.bluelinelabs.logansquare.annotation.JsonObject; - -/** - * Created by mariotaku on 15/6/4. - */ -@JsonObject -public class Gist { - - @JsonField(name = "html_url") - String htmlUrl; - - @JsonField(name = "id") - String id; - - public String getHtmlUrl() { - return htmlUrl; - } - - public String getId() { - return id; - } -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GistFile.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GistFile.java deleted file mode 100644 index fd11d31f0..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GistFile.java +++ /dev/null @@ -1,24 +0,0 @@ -package org.mariotaku.twidere.extension.shortener.gist; - -import com.bluelinelabs.logansquare.annotation.JsonField; -import com.bluelinelabs.logansquare.annotation.JsonObject; - -/** - * Created by mariotaku on 16/2/20. - */ -@JsonObject -public class GistFile { - @JsonField(name = "content") - String content; - - GistFile() { - } - - public GistFile(String content) { - this.content = content; - } - - public String getContent() { - return content; - } -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GistStatusShortenerService.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GistStatusShortenerService.java deleted file mode 100644 index fde052087..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GistStatusShortenerService.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import android.content.SharedPreferences; -import android.preference.PreferenceManager; - -import org.mariotaku.twidere.model.UserKey; -import org.mariotaku.twidere.model.ParcelableStatus; -import org.mariotaku.twidere.model.ParcelableStatusUpdate; -import org.mariotaku.twidere.model.StatusShortenResult; -import org.mariotaku.twidere.service.StatusShortenerService; - -/** - * Created by mariotaku on 15/6/4. - */ -public class GistStatusShortenerService extends StatusShortenerService { - - @Override - protected StatusShortenResult shorten(ParcelableStatusUpdate status, UserKey currentAccountKey, String overrideStatusText) { - final Github github = GithubFactory.getInstance(getApiKey()); - final NewGist newGist = new NewGist(); - newGist.setDescription("long tweet"); - newGist.setIsPublic(false); - final String content = overrideStatusText != null ? overrideStatusText : status.text; - newGist.putFile("long_tweet.txt", new GistFile(content)); - try { - Gist gist = github.createGist(newGist); - final StatusShortenResult shortened = StatusShortenResult.shortened(getShortenedStatus(content, gist.getHtmlUrl())); - shortened.extra = gist.getId(); - return shortened; - } catch (GithubException e) { - return StatusShortenResult.error(-1, e.getMessage()); - } - } - - @Override - protected boolean callback(StatusShortenResult result, ParcelableStatus status) { - final String apiKey = getApiKey(); - if (apiKey == null) return false; - final Github github = GithubFactory.getInstance(apiKey); - final NewGist newGist = new NewGist(); - newGist.setDescription("https://twitter.com/" + status.user_screen_name + "/status/" + status.id); - try { - github.updateGist(result.extra, newGist); - } catch (GithubException e) { - return false; - } - return true; - } - - private String getApiKey() { - SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this); - return preferences.getString("api_key", null); - } - - private String getShortenedStatus(String content, String htmlUrl) { - final int codePointCount = content.codePointCount(0, content.length()); - final int offset = content.offsetByCodePoints(0, Math.min(99, codePointCount)); - return content.substring(0, offset) + " " + htmlUrl; - } - -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/Github.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/Github.java deleted file mode 100644 index 3a457abc6..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/Github.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import org.mariotaku.restfu.annotation.method.PATCH; -import org.mariotaku.restfu.annotation.method.POST; -import org.mariotaku.restfu.annotation.param.Headers; -import org.mariotaku.restfu.annotation.param.KeyValue; -import org.mariotaku.restfu.annotation.param.Path; -import org.mariotaku.restfu.annotation.param.Raw; - -/** - * Created by mariotaku on 15/6/4. - */ -@Headers(@KeyValue(key = "Accept", value = "application/vnd.github.v3+json")) -public interface Github { - - @POST("/gists") - Gist createGist(@Raw NewGist newGist) throws GithubException; - - @PATCH("/gists/{id}") - Gist updateGist(@Path("id") String id, @Raw NewGist newGist) throws GithubException; - -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubConverterFactory.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubConverterFactory.java deleted file mode 100644 index d2220949e..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubConverterFactory.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import android.support.annotation.NonNull; - -import com.bluelinelabs.logansquare.JsonMapper; -import com.fasterxml.jackson.core.JsonParseException; - -import org.mariotaku.restfu.RestConverter; -import org.mariotaku.restfu.http.ContentType; -import org.mariotaku.restfu.http.HttpResponse; -import org.mariotaku.restfu.http.mime.Body; -import org.mariotaku.restfu.http.mime.StringBody; -import org.mariotaku.twidere.util.LoganSquareMapperFinder; - -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.HashMap; -import java.util.Map; - -/** - * Created by mariotaku on 15/5/5. - */ -public class GithubConverterFactory extends RestConverter.SimpleFactory { - - private static Map> sResponseConverters = new HashMap<>(); - private static Map> sBodyConverters = new HashMap<>(); - - - static { - sBodyConverters.put(NewGist.class, new LoganSquareRequestConverter<>(NewGist.class)); - } - - @NonNull - private static Object parseOrThrow(Body body, JsonMapper mapper) - throws IOException, GithubException, RestConverter.ConvertException { - try { - final Object parsed = mapper.parse(body.stream()); - if (parsed == null) { - throw new GithubException("Empty data"); - } - return parsed; - } catch (JsonParseException e) { - throw new RestConverter.ConvertException("Malformed JSON Data"); - } - } - - @Override - public RestConverter forResponse(Type type) throws RestConverter.ConvertException { - RestConverter converter = sResponseConverters.get(type); - if (converter != null) { - return converter; - } - final JsonMapper mapper; - try { - mapper = LoganSquareMapperFinder.mapperFor(type); - } catch (LoganSquareMapperFinder.ClassLoaderDeadLockException e) { - throw new RestConverter.ConvertException(e); - } - return new LoganSquareResponseConverter(mapper); - } - - @Override - public RestConverter forRequest(Type type) throws RestConverter.ConvertException { - final RestConverter converter = sBodyConverters.get(type); - if (converter != null) { - return converter; - } - return super.forRequest(type); - } - - public static class UnsupportedTypeException extends UnsupportedOperationException { - public UnsupportedTypeException(Type type) { - super("Unsupported type " + type); - } - } - - public static class LoganSquareResponseConverter implements RestConverter { - private final JsonMapper mapper; - - public LoganSquareResponseConverter(JsonMapper mapper) { - this.mapper = mapper; - } - - @Override - public Object convert(HttpResponse httpResponse) throws IOException, ConvertException, GithubException { - final Body body = httpResponse.getBody(); - return parseOrThrow(body, mapper); - } - } - - private static class LoganSquareRequestConverter implements RestConverter { - - private final Type type; - - LoganSquareRequestConverter(Type type) { - this.type = type; - } - - @Override - public Body convert(T from) throws ConvertException, IOException, GithubException { - final JsonMapper mapper; - try { - mapper = LoganSquareMapperFinder.mapperFor(type); - } catch (LoganSquareMapperFinder.ClassLoaderDeadLockException e) { - throw new RestConverter.ConvertException(e); - } - return new StringBody(mapper.serialize(from), ContentType.parse("application/json")); - } - } -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubException.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubException.java deleted file mode 100644 index ca23ec750..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubException.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import org.mariotaku.restfu.http.HttpRequest; -import org.mariotaku.restfu.http.HttpResponse; - -/** - * Created by mariotaku on 15/6/4. - */ -public class GithubException extends Exception { - private HttpRequest request; - private HttpResponse response; - - public GithubException() { - super(); - } - - public GithubException(String detailMessage) { - super(detailMessage); - } - - public GithubException(String detailMessage, Throwable throwable) { - super(detailMessage, throwable); - } - - public GithubException(Throwable throwable) { - super(throwable); - } - - public void setRequest(HttpRequest request) { - this.request = request; - } - - public HttpRequest getRequest() { - return request; - } - - public void setResponse(HttpResponse response) { - this.response = response; - } - - public HttpResponse getResponse() { - return response; - } -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubFactory.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubFactory.java deleted file mode 100644 index 105177b93..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/GithubFactory.java +++ /dev/null @@ -1,51 +0,0 @@ -package org.mariotaku.twidere.extension.shortener.gist; - -import org.mariotaku.restfu.ExceptionFactory; -import org.mariotaku.restfu.RestAPIFactory; -import org.mariotaku.restfu.RestRequest; -import org.mariotaku.restfu.http.Authorization; -import org.mariotaku.restfu.http.Endpoint; -import org.mariotaku.restfu.http.HttpRequest; -import org.mariotaku.restfu.http.HttpResponse; -import org.mariotaku.restfu.urlconnection.URLConnectionRestClient; - -/** - * Created by mariotaku on 16/2/20. - */ -public class GithubFactory { - - public static Github getInstance(final String apiKey) { - final RestAPIFactory factory = new RestAPIFactory<>(); - factory.setEndpoint(new Endpoint("https://api.github.com/")); - factory.setHttpClient(new URLConnectionRestClient()); - factory.setAuthorization(new Authorization() { - @Override - public String getHeader(Endpoint endpoint, RestRequest restRequest) { - return "token " + apiKey; - } - - @Override - public boolean hasAuthorization() { - return apiKey != null; - } - }); - factory.setExceptionFactory(new GithubExceptionFactory()); - factory.setRestConverterFactory(new GithubConverterFactory()); - return factory.build(Github.class); - } - - private static class GithubExceptionFactory implements ExceptionFactory { - @Override - public GithubException newException(Throwable throwable, HttpRequest httpRequest, HttpResponse httpResponse) { - GithubException exception; - if (throwable != null) { - exception = new GithubException(throwable); - } else { - exception = new GithubException(); - } - exception.setRequest(httpRequest); - exception.setResponse(httpResponse); - return exception; - } - } -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/NewGist.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/NewGist.java deleted file mode 100644 index f1d9b71b4..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/NewGist.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import com.bluelinelabs.logansquare.annotation.JsonField; -import com.bluelinelabs.logansquare.annotation.JsonObject; - -import java.util.HashMap; -import java.util.Map; - -/** - * Created by mariotaku on 15/6/4. - */ -@JsonObject -public class NewGist { - @JsonField(name = "description") - String description; - @JsonField(name = "public") - boolean isPublic; - @JsonField(name = "files") - Map files; - - public void setDescription(String description) { - this.description = description; - } - - public void setIsPublic(boolean isPublic) { - this.isPublic = isPublic; - } - - public void putFile(String key, GistFile file) { - if (files == null) { - files = new HashMap<>(); - } - files.put(key, file); - } -} diff --git a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/SettingsActivity.java b/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/SettingsActivity.java deleted file mode 100644 index a2b060d67..000000000 --- a/twidere.extension.shortener.gist/src/main/java/org/mariotaku/twidere/extension/shortener/gist/SettingsActivity.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Twidere - Twitter client for Android - * - * Copyright (C) 2012-2015 Mariotaku Lee - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.mariotaku.twidere.extension.shortener.gist; - -import android.os.Bundle; -import android.preference.PreferenceActivity; - - -public class SettingsActivity extends PreferenceActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - addPreferencesFromResource(R.xml.settings); - } - -} diff --git a/twidere.extension.shortener.gist/src/main/res/layout/activity_settings.xml b/twidere.extension.shortener.gist/src/main/res/layout/activity_settings.xml deleted file mode 100644 index e3707c54b..000000000 --- a/twidere.extension.shortener.gist/src/main/res/layout/activity_settings.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - diff --git a/twidere.extension.shortener.gist/src/main/res/menu/menu_settings.xml b/twidere.extension.shortener.gist/src/main/res/menu/menu_settings.xml deleted file mode 100644 index 943df96e8..000000000 --- a/twidere.extension.shortener.gist/src/main/res/menu/menu_settings.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - diff --git a/twidere.extension.shortener.gist/src/main/res/mipmap-hdpi/ic_launcher.png b/twidere.extension.shortener.gist/src/main/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index cde69bccc..000000000 Binary files a/twidere.extension.shortener.gist/src/main/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/twidere.extension.shortener.gist/src/main/res/mipmap-mdpi/ic_launcher.png b/twidere.extension.shortener.gist/src/main/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index c133a0cbd..000000000 Binary files a/twidere.extension.shortener.gist/src/main/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/twidere.extension.shortener.gist/src/main/res/mipmap-xhdpi/ic_launcher.png b/twidere.extension.shortener.gist/src/main/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index bfa42f0e7..000000000 Binary files a/twidere.extension.shortener.gist/src/main/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/twidere.extension.shortener.gist/src/main/res/mipmap-xxhdpi/ic_launcher.png b/twidere.extension.shortener.gist/src/main/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 324e72cdd..000000000 Binary files a/twidere.extension.shortener.gist/src/main/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/twidere.extension.shortener.gist/src/main/res/values-w820dp/dimens.xml b/twidere.extension.shortener.gist/src/main/res/values-w820dp/dimens.xml deleted file mode 100644 index 214e164c4..000000000 --- a/twidere.extension.shortener.gist/src/main/res/values-w820dp/dimens.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - 64dp - diff --git a/twidere.extension.shortener.gist/src/main/res/values/dimens.xml b/twidere.extension.shortener.gist/src/main/res/values/dimens.xml deleted file mode 100644 index beec6817b..000000000 --- a/twidere.extension.shortener.gist/src/main/res/values/dimens.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 16dp - 16dp - diff --git a/twidere.extension.shortener.gist/src/main/res/values/strings.xml b/twidere.extension.shortener.gist/src/main/res/values/strings.xml deleted file mode 100644 index 425f73199..000000000 --- a/twidere.extension.shortener.gist/src/main/res/values/strings.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - Twidere Gist Shortener Extension - - Hello world! - Settings - GitHub API key - diff --git a/twidere.extension.shortener.gist/src/main/res/values/styles.xml b/twidere.extension.shortener.gist/src/main/res/values/styles.xml deleted file mode 100644 index 81f7cc913..000000000 --- a/twidere.extension.shortener.gist/src/main/res/values/styles.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - diff --git a/twidere.extension.shortener.gist/src/main/res/xml/settings.xml b/twidere.extension.shortener.gist/src/main/res/xml/settings.xml deleted file mode 100644 index a95763319..000000000 --- a/twidere.extension.shortener.gist/src/main/res/xml/settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/twidere.extension.shortener.twitlonger/README.md b/twidere.extension.shortener.twitlonger/README.md new file mode 100644 index 000000000..b312ae552 --- /dev/null +++ b/twidere.extension.shortener.twitlonger/README.md @@ -0,0 +1 @@ +# Moved to [Twidere-Android-Extension-TwitLonger](https://github.com/TwidereProject/Twidere-Android-Extension-TwitLonger) # \ No newline at end of file