This repository has been archived by the owner on Jan 10, 2025. It is now read-only.
forked from mollyim/mollyim-android
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add gms.wallet stubs and foss flavor to donations
- Loading branch information
Showing
133 changed files
with
115 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
donations/lib/src/foss/res/layout/donate_with_googlepay_button.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
</LinearLayout> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions
4
libfakegms/src/main/java/com/google/android/gms/common/api/ApiException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package com.google.android.gms.common.api; | ||
|
||
public class ApiException extends Exception { | ||
} |
2 changes: 2 additions & 0 deletions
2
libfakegms/src/main/java/com/google/android/gms/common/api/Status.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
libfakegms/src/main/java/com/google/android/gms/wallet/AutoResolveHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.google.android.gms.wallet; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
|
||
import com.google.android.gms.common.api.Status; | ||
import com.google.android.gms.tasks.Task; | ||
|
||
public class AutoResolveHelper { | ||
public static final int RESULT_ERROR = 1; | ||
|
||
public static <T> void resolveTask(Task<T> task, Activity activity, int requestCode) { | ||
} | ||
|
||
public static Status getStatusFromIntent (Intent data) { | ||
return new Status(); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
libfakegms/src/main/java/com/google/android/gms/wallet/IsReadyToPayRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.google.android.gms.wallet; | ||
|
||
public final class IsReadyToPayRequest { | ||
public static IsReadyToPayRequest fromJson(String isReadyToPayRequestJson) { | ||
return new IsReadyToPayRequest(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
libfakegms/src/main/java/com/google/android/gms/wallet/PaymentData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.android.gms.wallet; | ||
|
||
import android.content.Intent; | ||
|
||
public final class PaymentData { | ||
public static PaymentData getFromIntent(Intent intent) { | ||
return new PaymentData(); | ||
} | ||
|
||
public String toJson() { | ||
return "{}"; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
libfakegms/src/main/java/com/google/android/gms/wallet/PaymentDataRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.google.android.gms.wallet; | ||
|
||
public final class PaymentDataRequest { | ||
public static PaymentDataRequest fromJson(String paymentDataRequestJson) { | ||
return new PaymentDataRequest(); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
libfakegms/src/main/java/com/google/android/gms/wallet/PaymentsClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.android.gms.wallet; | ||
|
||
import com.google.android.gms.tasks.Task; | ||
|
||
public class PaymentsClient { | ||
public Task<Boolean> isReadyToPay(IsReadyToPayRequest request) { | ||
return new Task<>(); | ||
} | ||
|
||
public Task<PaymentData> loadPaymentData(PaymentDataRequest request) { | ||
return new Task<>(); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
libfakegms/src/main/java/com/google/android/gms/wallet/Wallet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.google.android.gms.wallet; | ||
|
||
import android.content.Context; | ||
|
||
public final class Wallet { | ||
public static PaymentsClient getPaymentsClient(Context context, WalletOptions options) { | ||
return new PaymentsClient(); | ||
} | ||
|
||
public static final class WalletOptions { | ||
public static final class Builder { | ||
public Builder setEnvironment(int environment) { | ||
return this; | ||
} | ||
|
||
public WalletOptions build() { | ||
return new WalletOptions(); | ||
} | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
libfakegms/src/main/java/com/google/android/gms/wallet/WalletConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.google.android.gms.wallet; | ||
|
||
public final class WalletConstants { | ||
public static final int ENVIRONMENT_PRODUCTION = 1; | ||
public static final int ENVIRONMENT_TEST = 3; | ||
} |