Skip to content

Commit

Permalink
Deleted donations completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Acemany committed Oct 20, 2024
1 parent 933f0a3 commit c8cc9ca
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 173 deletions.
6 changes: 0 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ dependencies {
implementation project(":core")
implementation project(":kryonet")
implementation 'com.android.support:support-v4:28.0.0'
implementation 'org.sufficientlysecure:donations:2.5'
implementation 'com.google.android.gms:play-services-auth:16.0.1'

implementation "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
Expand Down Expand Up @@ -106,11 +105,6 @@ android {

flavorDimensions "google"

productFlavors {
google {
buildConfigField "boolean", "DONATIONS_GOOGLE", "false"
}
}
signingConfigs {
release {
if(project.hasProperty("RELEASE_STORE_FILE")) {
Expand Down
32 changes: 0 additions & 32 deletions android/res/layout/donations_activity.xml

This file was deleted.

9 changes: 0 additions & 9 deletions android/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,5 @@
<resources>

<string name="app_name">Mindustry V4</string>
<string-array name="donation_google_catalog_values">
<item>1 달러</item>
<item>2 달러</item>
<item>5 달러</item>
<item>10 달러</item>
<item>15 달러</item>
<item>25 달러</item>
<item>50 달러</item>
</string-array>

</resources>
9 changes: 0 additions & 9 deletions android/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,5 @@
<resources>

<string name="app_name">Mindustry V4</string>
<string-array name="donation_google_catalog_values">
<item>1 Доллар</item>
<item>2 Доллара</item>
<item>5 Доллара</item>
<item>10 Долларов</item>
<item>15 Долларов</item>
<item>25 Долларов</item>
<item>50 Долларов</item>
</string-array>

</resources>
9 changes: 0 additions & 9 deletions android/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,5 @@
<resources>

<string name="app_name">Mindustry V4</string>
<string-array name="donation_google_catalog_values">
<item>1 Dollar</item>
<item>2 Dollars</item>
<item>5 Dollars</item>
<item>10 Dollars</item>
<item>15 Dollars</item>
<item>25 Dollars</item>
<item>50 Dollars</item>
</string-array>

</resources>
15 changes: 0 additions & 15 deletions android/src/io/acemany/mindustryV4/AndroidLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@ protected void onCreate(Bundle savedInstanceState){
config.useImmersiveMode = true;
Platform.instance = new Platform(){

/*@Override
public void openDonations(){
showDonations();
}*/

@Override
public String getUUID(){
try{
Expand Down Expand Up @@ -107,11 +102,6 @@ public void beginForceLandscape(){
public void endForceLandscape(){
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);
}

@Override
public boolean canDonate(){
return true;
}
};

try{
Expand Down Expand Up @@ -207,9 +197,4 @@ private boolean isTablet(Context context){
TelephonyManager manager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
return manager.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE;
}

/*private void showDonations(){
Intent intent = new Intent(this, DonationsActivity.class);
startActivity(intent);
}*/
}
73 changes: 0 additions & 73 deletions android/src/io/acemany/mindustryV4/DonationsActivity.java

This file was deleted.

Binary file removed core/assets-raw/sprites/ui/icons/icon-donate.png
Binary file not shown.
1 change: 0 additions & 1 deletion core/assets/bundles/bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ text.settings = Settings
text.tutorial = Tutorial
text.editor = Editor
text.mapeditor = Map Editor
text.donate = Donate

text.connectfail = [crimson]Failed to connect to server:\n\n[accent]{0}
text.error.unreachable = Server unreachable.\nIs the address spelled correctly?
Expand Down
7 changes: 0 additions & 7 deletions core/assets/sprites/sprites.atlas
Original file line number Diff line number Diff line change
Expand Up @@ -5629,13 +5629,6 @@ icon-dev-builds
orig: 14, 14
offset: 0, 0
index: -1
icon-donate
rotate: false
xy: 189, 242
size: 14, 14
orig: 14, 14
offset: 0, 0
index: -1
icon-dots
rotate: false
xy: 69, 188
Expand Down
7 changes: 1 addition & 6 deletions core/src/io/acemany/mindustryV4/core/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ public void addDialog(TextField field, int maxLength){
}
/**Called when the game is exited.*/
public void onGameExit(){}
/**Open donation dialog. Currently android only.*/
public void openDonations(){}
/**Whether donating is supported.*/
public boolean canDonate(){
return false;
}

/**Must be a base64 string 8 bytes in length.*/
public String getUUID(){
String uuid = Settings.getString("uuid", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ private void buildMobile(){
join = new MobileButton("icon-add", isize, "$text.joingame", ui.join::show),
editor = new MobileButton("icon-editor", isize, "$text.editor", () -> ui.loadGraphics(ui.editor::show)),
tools = new MobileButton("icon-tools", isize, "$text.settings", ui.settings::show),
unlocks = new MobileButton("icon-unlocks", isize, "$text.unlocks", ui.unlocks::show),
donate = new MobileButton("icon-donate", isize, "$text.donate", Platform.instance::openDonations);
unlocks = new MobileButton("icon-unlocks", isize, "$text.unlocks", ui.unlocks::show);

if(Gdx.graphics.getWidth() > Gdx.graphics.getHeight()){
container.add(play);
Expand All @@ -79,8 +78,6 @@ private void buildMobile(){
table.add(editor);
table.add(tools);
table.add(unlocks);

if(Platform.instance.canDonate()) table.add(donate);
}).colspan(4);
}else{
container.add(play);
Expand All @@ -97,8 +94,6 @@ private void buildMobile(){
table.defaults().set(container.defaults());

table.add(unlocks);

if(Platform.instance.canDonate()) table.add(donate);
}).colspan(2);
}
}
Expand Down

0 comments on commit c8cc9ca

Please sign in to comment.