-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add multiple environment init for newmall
- Loading branch information
weixuefeng
committed
Feb 12, 2019
1 parent
989602a
commit 392c117
Showing
7 changed files
with
192 additions
and
10 deletions.
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
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
31 changes: 31 additions & 0 deletions
31
NewPaySDK/src/main/java/org/newtonproject/newpay/android/sdk/constant/Constant.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,31 @@ | ||
package org.newtonproject.newpay.android.sdk.constant; | ||
|
||
/** | ||
* @author [email protected] | ||
* @version $Rev$ | ||
* @time: 2019/2/12--4:51 PM | ||
* @description | ||
* @copyright (c) 2018 Newton Foundation. All rights reserved. | ||
*/ | ||
public class Constant { | ||
|
||
public interface MainNet { | ||
String authorize_pay = "newpay://org.newtonproject.newpay.android.release.pay"; | ||
String authorize_login_place = "newpay://org.newtonproject.newpay.android.release.authorize"; | ||
} | ||
|
||
public interface TestNet { | ||
String authorize_pay = "newpay://org.newtonproject.newpay.android.pay"; | ||
String authorize_login_place = "newpay://org.newtonproject.newpay.android.authorize"; | ||
} | ||
|
||
public interface BetaNet { | ||
String authorize_pay = "newpay://org.newtonproject.newpay.android.beta.pay"; | ||
String authorize_login_place = "newpay://org.newtonproject.newpay.android.beta.authorize"; | ||
} | ||
|
||
public interface DevNet { | ||
String authorize_pay = "newpay://org.newtonproject.newpay.android.dev.pay"; | ||
String authorize_login_place = "newpay://org.newtonproject.newpay.android.dev.authorize"; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
NewPaySDK/src/main/java/org/newtonproject/newpay/android/sdk/constant/Environment.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,12 @@ | ||
package org.newtonproject.newpay.android.sdk.constant; | ||
|
||
/** | ||
* @author [email protected] | ||
* @version $Rev$ | ||
* @time: 2019/2/12--5:01 PM | ||
* @description | ||
* @copyright (c) 2018 Newton Foundation. All rights reserved. | ||
*/ | ||
public enum Environment { | ||
MAINNET, TESTNET, BETANET, DEVNET | ||
} |
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
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