Browse Source

Changment de plateforme

master
Samuel Vermeulen 2 months ago
parent
commit
be09e6c1c4
  1. 3
      app/src/main/java/fr/svpro/radiomercure/MainActivity.java
  2. 4
      build.gradle
  3. 2
      gradle/wrapper/gradle-wrapper.properties

3
app/src/main/java/fr/svpro/radiomercure/MainActivity.java

@ -46,6 +46,7 @@ public class MainActivity extends AppCompatActivity {
private TextView tv_version;
private static String versionName;
private static final String NUMERO_TEL_RADIO = "+33375411456";
private static final String URL_PLATEFORM = "https://podcast.radiomercure.fr"; //"https://www.radiomercure.fr/?playerbar-pageinicial";
private MediaPlayerService player;
boolean serviceBound = false;
private FloatingActionButton fbtn_live;
@ -123,7 +124,7 @@ public class MainActivity extends AppCompatActivity {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
web.getSettings().setAllowFileAccessFromFileURLs(true);
}
web.loadUrl("https://www.radiomercure.fr/?playerbar-pageinicial");
web.loadUrl(URL_PLATEFORM);
web.setDownloadListener((url, userAgent, contentDisposition, mimeType, contentLength) -> {
MainActivity.this.url = url;

4
build.gradle

@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
}
task clean(type: Delete) {

2
gradle/wrapper/gradle-wrapper.properties

@ -1,6 +1,6 @@
#Tue Mar 22 19:55:37 CET 2022
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Loading…
Cancel
Save