refactor :
1. delete useless functions 2' init for adjust sdk
This commit is contained in:
@@ -3,11 +3,11 @@ plugins {
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.hfhy.wajecasino.palmgameweb'
|
||||
namespace 'com.hfhy.wajecasino.palmgamecy'
|
||||
compileSdk 36
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.hfhy.wajecasino.palmgameweb"
|
||||
applicationId "com.hfhy.wajecasino.palmgamecy"
|
||||
minSdk 21
|
||||
targetSdk 36
|
||||
versionCode 1
|
||||
@@ -32,12 +32,13 @@ dependencies {
|
||||
|
||||
implementation libs.appcompat
|
||||
implementation libs.material
|
||||
implementation libs.activity
|
||||
implementation libs.constraintlayout
|
||||
testImplementation libs.junit
|
||||
androidTestImplementation libs.ext.junit
|
||||
androidTestImplementation libs.espresso.core
|
||||
|
||||
// 热力引擎 ( SolarEngine )
|
||||
implementation libs.solar.engine.core
|
||||
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
|
||||
implementation 'com.adjust.sdk:adjust-android:5.5.0'
|
||||
implementation 'com.android.installreferrer:installreferrer:2.2'
|
||||
// Add the following if you are using the Adjust SDK inside web views on your app
|
||||
implementation 'com.adjust.sdk:adjust-android-webbridge:5.5.0'
|
||||
}
|
||||
7
app/proguard-rules.pro
vendored
7
app/proguard-rules.pro
vendored
@@ -18,4 +18,9 @@
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
#-renamesourcefileattribute SourceFile
|
||||
|
||||
-keep class com.singular.sdk.** { *; }
|
||||
-keep public class com.android.installreferrer.** { *; }
|
||||
# Uncomment this line in case your are calling the 'revenue' function using the Google billing library
|
||||
#-keep public class com.android.billingclient.** { *; }
|
||||
BIN
app/release/baselineProfiles/0/app-release.dm
Normal file
BIN
app/release/baselineProfiles/0/app-release.dm
Normal file
Binary file not shown.
BIN
app/release/baselineProfiles/1/app-release.dm
Normal file
BIN
app/release/baselineProfiles/1/app-release.dm
Normal file
Binary file not shown.
37
app/release/output-metadata.json
Normal file
37
app/release/output-metadata.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"version": 3,
|
||||
"artifactType": {
|
||||
"type": "APK",
|
||||
"kind": "Directory"
|
||||
},
|
||||
"applicationId": "com.hfhy.wajecasino.palmgamecy",
|
||||
"variantName": "release",
|
||||
"elements": [
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 1,
|
||||
"versionName": "1.0",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
],
|
||||
"elementType": "File",
|
||||
"baselineProfiles": [
|
||||
{
|
||||
"minApi": 28,
|
||||
"maxApi": 30,
|
||||
"baselineProfiles": [
|
||||
"baselineProfiles/1/app-release.dm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"minApi": 31,
|
||||
"maxApi": 2147483647,
|
||||
"baselineProfiles": [
|
||||
"baselineProfiles/0/app-release.dm"
|
||||
]
|
||||
}
|
||||
],
|
||||
"minSdkVersionForDexing": 21
|
||||
}
|
||||
BIN
app/release/wajegame.apk
Normal file
BIN
app/release/wajegame.apk
Normal file
Binary file not shown.
@@ -0,0 +1,26 @@
|
||||
package com.hfhy.wajecasino.palmgamecy;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
assertEquals("com.hfhy.wajecasino.palmgameweb", appContext.getPackageName());
|
||||
}
|
||||
}
|
||||
@@ -1,30 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/whotgame_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/whotgame_launcher"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.WajeBet">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
|
||||
<uses-permission android:name="com.google.android.gms.permission.AD_ID" tools:node="remove"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:dataExtractionRules="@xml/data_extraction_rules"
|
||||
android:fullBackupContent="@xml/backup_rules"
|
||||
android:icon="@mipmap/whotgame_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/whotgame_launcher"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.WajeGame">
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
@@ -1,82 +1,88 @@
|
||||
package com.hfhy.wajecasino.palmgameweb;
|
||||
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.app.Activity;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// 可选:处理返回键返回上一网页
|
||||
// 你可以根据需要添加onBackPressed逻辑
|
||||
// 设置沉浸式全屏,隐藏导航栏和状态栏
|
||||
getWindow().getDecorView().setSystemUiVisibility(
|
||||
android.view.View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
| android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| android.view.View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||
| android.view.View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
| android.view.View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
| android.view.View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
);
|
||||
|
||||
setContentView(R.layout.activity_main);
|
||||
|
||||
SolarEngineMgr.init(this);
|
||||
}
|
||||
|
||||
private void configureWebViewSettings(WebView webView) {
|
||||
WebSettings settings = webView.getSettings();
|
||||
// 基础缓存配置(所有版本适用)
|
||||
settings.setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||
settings.setDomStorageEnabled(true);
|
||||
settings.setJavaScriptEnabled(true);
|
||||
|
||||
// API 21+ 推荐配置
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
|
||||
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE);
|
||||
}
|
||||
}
|
||||
|
||||
public void onSolarEngineInitSuccess() {
|
||||
WebView webView = findViewById(R.id.webview);
|
||||
configureWebViewSettings(webView);
|
||||
|
||||
String packageName = getPackageName();
|
||||
String encodedPackage = android.net.Uri.encode(packageName);
|
||||
String encodedSolarId = android.net.Uri.encode(SolarEngineMgr.getDistinctId());
|
||||
String urlDev = "https://test-h5.waje-special.com/?solarDeviceID=";
|
||||
String urlRelease = "https://waje.bet/?solarDeviceID=";
|
||||
String url = (SolarEngineMgr.isApkInDebug(this)? urlDev : urlRelease)
|
||||
+ encodedSolarId + "&package=" + encodedPackage;
|
||||
webView.setWebViewClient(new WebViewClient());
|
||||
webView.loadUrl(url);
|
||||
}
|
||||
|
||||
public void onSolarEngineInitFailed() {
|
||||
runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
new android.app.AlertDialog.Builder(MainActivity.this)
|
||||
.setTitle("Error")
|
||||
.setMessage("Game failed to launch. Click Exit to quit.")
|
||||
.setCancelable(false)
|
||||
.setNegativeButton("Exit", new android.content.DialogInterface.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(android.content.DialogInterface dialog, int which) {
|
||||
dialog.dismiss();
|
||||
// Close the activity/app
|
||||
finish();
|
||||
}
|
||||
})
|
||||
.show();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
package com.hfhy.wajecasino.palmgamecy;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
import android.webkit.WebViewClient;
|
||||
|
||||
import com.adjust.sdk.Adjust;
|
||||
import com.adjust.sdk.AdjustConfig;
|
||||
import com.adjust.sdk.LogLevel;
|
||||
import com.adjust.sdk.OnAdidReadListener;
|
||||
import com.google.android.gms.ads.identifier.AdvertisingIdClient;
|
||||
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
|
||||
// private static final String SingularKey = "init_info_264a5ee5";
|
||||
// private static final String SingularSecret = "4d99d19e03f2476a307acbff00b0337a";
|
||||
private static final String logTag = "WajeGame";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
// 可选:处理返回键返回上一网页
|
||||
// 你可以根据需要添加onBackPressed逻辑
|
||||
// 设置沉浸式全屏,隐藏导航栏和状态栏
|
||||
getWindow().getDecorView().setSystemUiVisibility(
|
||||
android.view.View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
| android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
| android.view.View.SYSTEM_UI_FLAG_FULLSCREEN
|
||||
| android.view.View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
| android.view.View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
| android.view.View.SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
);
|
||||
|
||||
setContentView(R.layout.activity_main);
|
||||
|
||||
this.initAdjust();
|
||||
}
|
||||
|
||||
private void configureWebViewSettings(WebView webView) {
|
||||
WebSettings settings = webView.getSettings();
|
||||
// 基础缓存配置(所有版本适用)
|
||||
settings.setCacheMode(WebSettings.LOAD_DEFAULT);
|
||||
settings.setDomStorageEnabled(true);
|
||||
settings.setJavaScriptEnabled(true);
|
||||
|
||||
// API 21+ 推荐配置
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
|
||||
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE);
|
||||
}
|
||||
}
|
||||
|
||||
private void showWeb(boolean isDebug, String adid) {
|
||||
WebView webView = findViewById(R.id.webview);
|
||||
configureWebViewSettings(webView);
|
||||
|
||||
String urlDev = "https://test-h5.waje-special.com/";
|
||||
String urlRelease = "https://waje.bet/";
|
||||
String url = (isDebug ? urlDev : urlRelease)
|
||||
+ "?adid=" + adid
|
||||
+ "&p=wajecyw"
|
||||
;
|
||||
webView.setWebViewClient(new WebViewClient());
|
||||
webView.loadUrl(url);
|
||||
}
|
||||
|
||||
private void initAdjust() {
|
||||
String appToken = "gfm89rtx47b4";
|
||||
boolean isDebug = (getApplicationInfo().flags & android.content.pm.ApplicationInfo.FLAG_DEBUGGABLE) != 0;
|
||||
String environment = isDebug ? AdjustConfig.ENVIRONMENT_SANDBOX : AdjustConfig.ENVIRONMENT_PRODUCTION;
|
||||
AdjustConfig config = new AdjustConfig(this, appToken, environment);
|
||||
config.setLogLevel(isDebug ? LogLevel.VERBOSE : LogLevel.ERROR);
|
||||
Adjust.initSdk(config);
|
||||
Adjust.getAdid(new OnAdidReadListener(){
|
||||
public void onAdidRead(String adid) {
|
||||
showWeb(isDebug, adid);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
package com.hfhy.wajecasino.palmgameweb;
|
||||
|
||||
public class Constant {
|
||||
public static final String SE_APP_KEY = "9723484a319d3cc6";
|
||||
}
|
||||
@@ -1,119 +0,0 @@
|
||||
package com.hfhy.wajecasino.palmgameweb;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
import android.util.Log;
|
||||
|
||||
import com.reyun.solar.engine.OnAttributionListener;
|
||||
import com.reyun.solar.engine.SolarEngineConfig;
|
||||
import com.reyun.solar.engine.SolarEngineManager;
|
||||
import com.reyun.solar.engine.autotrack.AutoTrackEventType;
|
||||
|
||||
import org.json.JSONObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class SolarEngineMgr {
|
||||
private static final String SE_USER_CODE = "dc69164d42c5c9c2";
|
||||
|
||||
private static final String LogTag = "==SolarEngineManage==";
|
||||
|
||||
public static void init(MainActivity activity) {
|
||||
|
||||
SolarEngineManager.getInstance().preInit(activity, Constant.SE_APP_KEY);
|
||||
|
||||
List<AutoTrackEventType> autoTrackEventTypeList = new ArrayList<>();
|
||||
|
||||
autoTrackEventTypeList.add(AutoTrackEventType.AutoTrackAppViewScreen);
|
||||
autoTrackEventTypeList.add(AutoTrackEventType.AutotrackAppClick);
|
||||
|
||||
SolarEngineConfig config = new SolarEngineConfig.Builder()
|
||||
.logEnabled() //开启本地调试日志
|
||||
.isGDPRArea(false) //是否属于GDPR地区,默认为false
|
||||
.enableAutoTrackEvent(autoTrackEventTypeList) //自动采集方法入口
|
||||
// .withRemoteConfig(remoteConfig) //参数下发SDK参数配置,具体配置方法请参考参数下发文档
|
||||
.isDebugModel(isApkInDebug(activity)) //开启事件上报调试模式,需要提前在后台调试设备列表中添加调试设备;验证归因服务时需要关闭此模式
|
||||
.build();
|
||||
|
||||
config.setOnAttributionListener(new OnAttributionListener() {
|
||||
@Override
|
||||
public void onAttributionSuccess(JSONObject attribution) {
|
||||
// 获取归因结果成功
|
||||
Log.i(LogTag, "onAttributionSuccess attribution ==> " + attribution.toString());
|
||||
// 回到主线程执行 Activity 回调,避免在后台线程直接操作 UI 或 WebView
|
||||
try {
|
||||
activity.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
activity.onSolarEngineInitSuccess();
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
Log.w(LogTag, "Failed to post onSolarEngineInitSuccess to UI thread", e);
|
||||
// fallback call (best-effort)
|
||||
activity.onSolarEngineInitSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onAttributionFail(int errorCode) {
|
||||
// 获取归因结果失败
|
||||
Log.i(LogTag, "onAttributionFail errorCode ==> " + errorCode);
|
||||
try {
|
||||
activity.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
activity.onSolarEngineInitFailed();
|
||||
}
|
||||
});
|
||||
} catch (Exception e) {
|
||||
Log.w(LogTag, "Failed to post onSolarEngineInitFailed to UI thread", e);
|
||||
activity.onSolarEngineInitFailed();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
SolarEngineManager.getInstance().initialize(activity.getApplicationContext(), Constant.SE_APP_KEY, SE_USER_CODE, config);
|
||||
|
||||
Log.i(LogTag, "initialize");
|
||||
}
|
||||
|
||||
public static void setGaid(String gaid) {
|
||||
SolarEngineManager.getInstance().setGaid(gaid);
|
||||
}
|
||||
|
||||
public static void setChannel(String channel) {
|
||||
SolarEngineManager.getInstance().setChannel(channel);
|
||||
}
|
||||
|
||||
public static String getDistinctId() {
|
||||
return SolarEngineManager.getInstance().getDistinctId();
|
||||
}
|
||||
|
||||
public static String getAttribution() {
|
||||
JSONObject jsonObject = SolarEngineManager.getInstance().getAttribution();
|
||||
if (jsonObject == null) return null;
|
||||
return jsonObject.toString();
|
||||
}
|
||||
|
||||
public static String getVisitorID() {
|
||||
return SolarEngineManager.getInstance().getVisitorID();
|
||||
}
|
||||
|
||||
public static String getAccountID() {
|
||||
return SolarEngineManager.getInstance().getAccountID();
|
||||
}
|
||||
|
||||
|
||||
public static boolean isApkInDebug(Context context) {
|
||||
try {
|
||||
ApplicationInfo info = context.getApplicationInfo();
|
||||
Log.i(LogTag, "isApkInDebug => " + ((info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0));
|
||||
return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
|
||||
} catch (Exception e) {
|
||||
Log.i(LogTag, "isApkInDebug false");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,16 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.WajeBet" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<!-- Customize your dark theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
|
||||
<style name="Theme.WajeGame" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_200</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_200</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
</resources>
|
||||
@@ -1,5 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="purple_200">#FFBB86FC</color>
|
||||
<color name="purple_500">#FF6200EE</color>
|
||||
<color name="purple_700">#FF3700B3</color>
|
||||
<color name="teal_200">#FF03DAC5</color>
|
||||
<color name="teal_700">#FF018786</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
</resources>
|
||||
@@ -1,9 +1,16 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Base.Theme.WajeBet" parent="Theme.Material3.DayNight.NoActionBar">
|
||||
<!-- Customize your light theme here. -->
|
||||
<!-- <item name="colorPrimary">@color/my_light_primary</item> -->
|
||||
<style name="Theme.WajeGame" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_500</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_700</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
|
||||
<style name="Theme.WajeBet" parent="Base.Theme.WajeBet" />
|
||||
</resources>
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.hfhy.wajecasino.palmgamecy;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
public class ExampleUnitTest {
|
||||
@Test
|
||||
public void addition_isCorrect() {
|
||||
assertEquals(4, 2 + 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user