Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package com.twitter.sdk.android.tweetcomposer.internal;
import com.google.gson.annotations.SerializedName;
/* loaded from: classes.dex */
public class CardCreate {
@SerializedName("card_uri")
public final String a;
}

View File

@@ -0,0 +1,92 @@
package com.twitter.sdk.android.tweetcomposer.internal;
import com.google.gson.Gson;
/* loaded from: classes.dex */
public class CardData {
private static Serializer a;
public static class Builder {
private String a;
private String b;
private String c;
private String d;
private String e;
private String f;
private String g;
private String h;
private String i;
private String j;
private String k;
private String l;
public Builder a(String str) {
this.k = str;
return this;
}
public Builder b(String str) {
this.j = str;
return this;
}
public Builder c(String str) {
this.i = str;
return this;
}
public Builder d(String str) {
this.a = str;
return this;
}
public Builder e(String str) {
this.e = str;
return this;
}
public Builder f(String str) {
this.g = str;
return this;
}
public Builder g(String str) {
this.h = str;
return this;
}
public Builder h(String str) {
this.b = str;
return this;
}
public CardData a() {
return new CardData(this.a, this.b, this.c, this.d, this.e, this.f, this.g, this.h, this.i, this.j, this.k, this.l);
}
}
static class Serializer {
private final Gson a = new Gson();
Serializer() {
}
String a(CardData cardData) {
return this.a.toJson(cardData);
}
}
Serializer a() {
if (a == null) {
a = new Serializer();
}
return a;
}
public String toString() {
return a().a(this);
}
private CardData(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, String str9, String str10, String str11, String str12) {
}
}

View File

@@ -0,0 +1,13 @@
package com.twitter.sdk.android.tweetcomposer.internal;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
/* loaded from: classes.dex */
public interface CardService {
@FormUrlEncoded
@POST("https://caps.twitter.com/v2/cards/create.json")
Call<CardCreate> create(@Field("card_data") CardData cardData);
}

View File

@@ -0,0 +1,45 @@
package com.twitter.sdk.android.tweetcomposer.internal.util;
import android.annotation.TargetApi;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ScrollView;
/* loaded from: classes.dex */
public class ObservableScrollView extends ScrollView {
ScrollViewListener a;
public interface ScrollViewListener {
void a(int i);
}
public ObservableScrollView(Context context) {
super(context);
}
@Override // android.view.View
protected void onScrollChanged(int i, int i2, int i3, int i4) {
super.onScrollChanged(i, i2, i3, i4);
ScrollViewListener scrollViewListener = this.a;
if (scrollViewListener != null) {
scrollViewListener.a(i2);
}
}
public void setScrollViewListener(ScrollViewListener scrollViewListener) {
this.a = scrollViewListener;
}
public ObservableScrollView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public ObservableScrollView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
@TargetApi(21)
public ObservableScrollView(Context context, AttributeSet attributeSet, int i, int i2) {
super(context, attributeSet, i, i2);
}
}