Skip to content

Commit 4aa4de8

Browse files
committed
small fixes
1 parent d99afdc commit 4aa4de8

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

proj.android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
applicationId "com.vinaykumar.sokoban"
1212
minSdkVersion PROP_MIN_SDK_VERSION
1313
targetSdkVersion PROP_TARGET_SDK_VERSION
14-
versionCode 11
15-
versionName "0.9"
14+
versionCode 12
15+
versionName "1.0"
1616

1717
externalNativeBuild {
1818
if (PROP_BUILD_TYPE == 'ndk-build') {

proj.android/app/src/org/cocos2dx/cpp/AppActivity.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ of this software and associated documentation files (the "Software"), to deal
3535
import org.json.JSONObject;
3636

3737
import android.os.Build;
38+
import android.util.DisplayMetrics;
3839
import android.util.Log;
3940
import android.view.WindowManager;
4041
import android.view.WindowManager.LayoutParams;
@@ -217,6 +218,20 @@ public void onRewardedAdFailedToShow(AdError adError) {
217218
});
218219
}
219220

221+
public static boolean isTablet() {
222+
DisplayMetrics metrics = new DisplayMetrics();
223+
instance.getWindowManager().getDefaultDisplay().getMetrics(metrics);
224+
225+
float yInches= metrics.heightPixels/metrics.ydpi;
226+
float xInches= metrics.widthPixels/metrics.xdpi;
227+
double diagonalInches = Math.sqrt(xInches*xInches + yInches*yInches);
228+
if (diagonalInches>=6.5){
229+
return true;
230+
}else{
231+
return false;
232+
}
233+
}
234+
220235
public static String getVersionNumber() {
221236
return "v" + BuildConfig.VERSION_NAME;
222237
}

proj.android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ PROP_BUILD_TYPE=cmake
4444
RELEASE_STORE_FILE=/Users/sachinhegde/Downloads/backup-bloktat/imp-files/upload.keystore
4545
RELEASE_STORE_PASSWORD=den113080
4646
RELEASE_KEY_ALIAS=kilvish
47-
RELEASE_KEY_PASSWORD=den113080
47+
RELEASE_KEY_PASSWORD=den113080

src/scenes/MainMenu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void MainMenu::CBBtnPrivacy(Ref* sender, Widget::TouchEventType type) {
201201
if (type == Widget::TouchEventType::ENDED) {
202202
SoundUtil::getInstance()->playEfxBtnTouched();
203203
cocos2d::Application::getInstance()->openURL(
204-
"https://privacypolicyblockthat.blogspot.com/2020/05/sokoban-privacy-policy.html");
204+
"https://schnhegde.github.io/sokoban.html");
205205
}
206206
}
207207

0 commit comments

Comments
 (0)