Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit 380ff64

Browse files
committed
removed ads from PlayStore version
1 parent 583b015 commit 380ff64

File tree

6 files changed

+0
-330
lines changed

6 files changed

+0
-330
lines changed

app/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,4 @@ dependencies {
157157

158158
// Debug SQL DB use adb forward tcp:8080 tcp:8080 --> localhost:8080
159159
//debugImplementation 'com.amitshekhar.android:debug-db:1.0.7'
160-
161-
// Ad sense
162-
playStoreImplementation 'com.google.android.gms:play-services-ads:23.5.0'
163-
164-
// Google billing
165-
playStoreImplementation 'com.android.billingclient:billing:7.1.1'
166160
}

app/src/main/java/com/health/openworkout/MainActivity.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
import com.google.android.material.navigation.NavigationView;
4040
import com.health.openworkout.core.OpenWorkout;
41-
import com.health.openworkout.core.utils.PlayStoreUtils;
4241

4342
public class MainActivity extends AppCompatActivity {
4443

@@ -85,11 +84,6 @@ public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
8584
return true;
8685
}
8786
});
88-
89-
if (!PlayStoreUtils.getInstance().isAdRemovalPaid()) {
90-
PlayStoreUtils.getInstance().initMobileAds(this);
91-
}
92-
9387
}
9488

9589
@Override

app/src/main/java/com/health/openworkout/core/Application.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import androidx.preference.PreferenceManager;
2424

2525
import com.health.openworkout.BuildConfig;
26-
import com.health.openworkout.core.utils.PlayStoreUtils;
2726

2827
import timber.log.Timber;
2928

@@ -56,9 +55,6 @@ public void onCreate() {
5655
// Create openWorkout instance
5756
OpenWorkout.createInstance(getApplicationContext());
5857

59-
// Create playStore utils instance
60-
PlayStoreUtils.createInstance(getApplicationContext());
61-
6258
// Hold on to the instance for as long as the application exists
6359
openWorkout = OpenWorkout.getInstance();
6460
}

app/src/main/java/com/health/openworkout/gui/workout/WorkoutSlideFragment.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import androidx.annotation.NonNull;
4444
import androidx.cardview.widget.CardView;
4545
import androidx.constraintlayout.widget.ConstraintLayout;
46-
import androidx.constraintlayout.widget.ConstraintSet;
4746
import androidx.fragment.app.Fragment;
4847
import androidx.navigation.Navigation;
4948
import androidx.preference.PreferenceManager;
@@ -53,7 +52,6 @@
5352
import com.health.openworkout.core.OpenWorkout;
5453
import com.health.openworkout.core.datatypes.WorkoutItem;
5554
import com.health.openworkout.core.datatypes.WorkoutSession;
56-
import com.health.openworkout.core.utils.PlayStoreUtils;
5755
import com.health.openworkout.gui.utils.SoundUtils;
5856

5957
import java.io.IOException;
@@ -119,24 +117,6 @@ public View onCreateView(@NonNull LayoutInflater inflater,
119117
isSpeechCountdown = sharedPreferences.getBoolean("speechCountdown", false);
120118
isSpeechWorkoutState = sharedPreferences.getBoolean("speechWorkoutState", false);
121119

122-
if (!PlayStoreUtils.getInstance().isAdRemovalPaid()) {
123-
Timber.d("Show Ad");
124-
View adView = PlayStoreUtils.getInstance().getAdView(constraintLayout.getContext());
125-
adView.setId(View.generateViewId());
126-
ConstraintSet set = new ConstraintSet();
127-
128-
constraintLayout.addView(adView, 0);
129-
130-
set.clone(constraintLayout);
131-
set.connect(adView.getId(), ConstraintSet.BOTTOM, constraintLayout.getId(), ConstraintSet.BOTTOM, 10);
132-
set.connect(adView.getId(), ConstraintSet.LEFT, constraintLayout.getId(), ConstraintSet.LEFT, 0);
133-
set.connect(adView.getId(), ConstraintSet.RIGHT, constraintLayout.getId(), ConstraintSet.RIGHT, 0);
134-
set.connect(progressView.getId(), ConstraintSet.BOTTOM, adView.getId(), ConstraintSet.TOP, 10);
135-
set.applyTo(constraintLayout);
136-
} else {
137-
Timber.d("Remove Ad");
138-
}
139-
140120
int orientation = this.getResources().getConfiguration().orientation;
141121
if (orientation == Configuration.ORIENTATION_PORTRAIT) {
142122
ViewGroup.LayoutParams layoutParams = videoCardView.getLayoutParams();

app/src/playStore/java/com/health/openworkout/core/utils/PlayStoreUtils.java

Lines changed: 0 additions & 245 deletions
This file was deleted.

app/src/playStore/java/com/health/openworkout/gui/datatypes/BillingFragment.java

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)