From bd2ade099fb5df1de1591abc20e027b44499b99f Mon Sep 17 00:00:00 2001 From: Felix Horvat Date: Thu, 13 Jan 2022 16:48:35 +0100 Subject: [PATCH] Android embedding fixes - migrate to maven (#852) * Migrate maven repository from jcenter to mavenCentral * Migrate maven repository from jcenter to mavenCentral * migrate to maven fix android embedding issue Co-authored-by: luis felipe de oliveira --- android/build.gradle | 3 +-- example/android/app/src/main/AndroidManifest.xml | 2 +- .../mapboxglexample/EmbeddingV1Activity.java | 16 ---------------- example/android/build.gradle | 4 ++-- 4 files changed, 4 insertions(+), 21 deletions(-) delete mode 100644 example/android/app/src/main/java/com/mapbox/mapboxglexample/EmbeddingV1Activity.java diff --git a/android/build.gradle b/android/build.gradle index 0a599ce4a..1eb430977 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -4,7 +4,7 @@ version '1.0-SNAPSHOT' buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -19,7 +19,6 @@ rootProject.allprojects { } repositories { google() - jcenter() mavenCentral() maven { url 'https://api.mapbox.com/downloads/v2/releases/maven' diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 32dd13477..865c8648e 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -5,7 +5,7 @@ diff --git a/example/android/app/src/main/java/com/mapbox/mapboxglexample/EmbeddingV1Activity.java b/example/android/app/src/main/java/com/mapbox/mapboxglexample/EmbeddingV1Activity.java deleted file mode 100644 index 790679e49..000000000 --- a/example/android/app/src/main/java/com/mapbox/mapboxglexample/EmbeddingV1Activity.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.mapbox.mapboxglexample; - -import android.os.Bundle; - -import com.mapbox.mapboxgl.MapboxMapsPlugin; - -import io.flutter.app.FlutterActivity; - -public class EmbeddingV1Activity extends FlutterActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - MapboxMapsPlugin.registerWith(registrarFor("com.mapbox.mapboxgl.MapboxMapsPlugin")); - } -} \ No newline at end of file diff --git a/example/android/build.gradle b/example/android/build.gradle index c0a595846..8ae8ba30a 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,7 +1,7 @@ buildscript { repositories { google() - jcenter() + mavenCentral() } dependencies { @@ -12,7 +12,7 @@ buildscript { allprojects { repositories { google() - jcenter() + mavenCentral() } }