From d660c6ed66675c1af35f1816b0069d67a79a59a8 Mon Sep 17 00:00:00 2001 From: Lee Date: Thu, 1 Oct 2020 12:32:22 -0500 Subject: [PATCH 1/4] - Update various android libraries - FIX missing AW logo image - Add example code for for custom legends - Add example code for overriding the AMP domain --- AerisDemo/build.gradle | 28 +++++++-------- AerisDemo/gradle.properties | 4 ++- .../gradle/wrapper/gradle-wrapper.properties | 4 +-- ...Weather_logo.png => aerisweather_logo.png} | Bin .../res/drawable/legend_temp_outlook.png | Bin 0 -> 2583 bytes AerisDemo/res/layout/menu_drawer.xml | 4 +-- .../customendpoint/CustomSunmoonFragment.java | 2 +- .../demoaerisproject/AerisNotification.java | 3 +- .../demoaerisproject/DrawerActivity.java | 10 +++--- .../com/example/fragment/AerisFragment.java | 2 +- .../com/example/fragment/MyMapFragment.java | 32 +++++++++++++++--- .../service/NotificationJobService.java | 2 +- 12 files changed, 58 insertions(+), 33 deletions(-) rename AerisDemo/res/drawable/{AerisWeather_logo.png => aerisweather_logo.png} (100%) create mode 100644 AerisDemo/res/drawable/legend_temp_outlook.png diff --git a/AerisDemo/build.gradle b/AerisDemo/build.gradle index 6fe35ed4..7f8a933d 100644 --- a/AerisDemo/build.gradle +++ b/AerisDemo/build.gradle @@ -2,20 +2,20 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 27 - buildToolsVersion "27.0.3" + compileSdkVersion 30 + buildToolsVersion "29.0.2" defaultConfig { minSdkVersion 19 applicationId "com.example.demoaerisproject" - versionCode 10 - targetSdkVersion 27 - versionName "2.6.0" + versionCode 11 + targetSdkVersion 30 + versionName "2.6.1" //multiDexEnabled true signingConfigs { config { keyAlias 'demoprojkey' keyPassword 'password' - storeFile file('C:/Projects/AndroidStudioProjects/AerisAndroidSDK/AerisDemo/demoprojkeystore.jks') + storeFile file('/Users/Lee/AndroidStudioProjects/AerisAndroidSDK/AerisDemo/demoprojkeystore.jks') storePassword 'password' } } @@ -56,13 +56,13 @@ android { buildscript { repositories { - mavenCentral() +// mavenCentral() google() jcenter() -// maven { url maven_staging_url } + maven { url maven_staging_url } } dependencies { - classpath 'com.android.tools.build:gradle:3.1.4' + classpath 'com.android.tools.build:gradle:4.0.1' } } @@ -70,16 +70,16 @@ repositories { mavenCentral() google() jcenter() -// maven { url maven_staging_url } + maven { url maven_staging_url } } dependencies { testImplementation 'junit:junit:4.12' - implementation ('com.aerisweather:aeris-maps-lib:2.6.0@aar') { + implementation ('com.aerisweather:aeris-maps-lib:2.6.1-rc1@aar') { transitive true } - androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', { + androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { exclude group: 'com.android.support', module: 'support-annotations' }) - implementation 'com.google.android.gms:play-services-maps:15.0.1' - implementation 'com.android.support:appcompat-v7:27.1.1' + implementation 'com.google.android.gms:play-services-maps:17.0.0' + implementation 'androidx.appcompat:appcompat:1.2.0' } \ No newline at end of file diff --git a/AerisDemo/gradle.properties b/AerisDemo/gradle.properties index 1045a350..33996bda 100644 --- a/AerisDemo/gradle.properties +++ b/AerisDemo/gradle.properties @@ -1,4 +1,6 @@ org.gradle.jvmargs=-Xmx2048M -maven_staging_url=https://oss.sonatype.org/content/repositories/comaerisweather-1615 +maven_staging_url=https://oss.sonatype.org/content/repositories/comaerisweather-1620 +android.useAndroidX=true +android.enableJetifier=true diff --git a/AerisDemo/gradle/wrapper/gradle-wrapper.properties b/AerisDemo/gradle/wrapper/gradle-wrapper.properties index 62df0335..44136118 100644 --- a/AerisDemo/gradle/wrapper/gradle-wrapper.properties +++ b/AerisDemo/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Thu Dec 14 13:12:43 CST 2017 +#Fri Sep 11 12:37:59 CDT 2020 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip diff --git a/AerisDemo/res/drawable/AerisWeather_logo.png b/AerisDemo/res/drawable/aerisweather_logo.png similarity index 100% rename from AerisDemo/res/drawable/AerisWeather_logo.png rename to AerisDemo/res/drawable/aerisweather_logo.png diff --git a/AerisDemo/res/drawable/legend_temp_outlook.png b/AerisDemo/res/drawable/legend_temp_outlook.png new file mode 100644 index 0000000000000000000000000000000000000000..dc263e8edae477009205a54f762ecd6bca6c368c GIT binary patch literal 2583 zcmc&$X*8P&8%-!$ie_kQ3)6^wA1R?lnJ8~;O)7R}XsfXmwMQ-0>4akH6xC?m73#xa4dnDXt(6fj}ey zdkh`|5t2IOrbk5&=T+Rx7zpIp9DuQQjeoQ{dppaAAm6vKW{e7H@(gZ5N!DCaxbaZ* zs1WGo{p^SWQd6^$aJRxAa#Hci@wJRIPCsg&x%;jVb%&NFPEPeQQgc$Xm9YKKrQ_lv z+CSTzII)kA9q<|+vEs?M&aMpSM7PHU?eGEhQqpj#8MiHtR~*E%h?BVfFEEh{s5m+N zi0Sj=XztwH1hXykdP3NKQ$AyV$l5ob(LVA;Mw{3Y(v_}5jQeO^dZ_QZ#JRKUSu-KS z2NM=Q&hm1)R=xXMM|an~2`C9^*S9Ns+bZ;`*|_<7>g+F9CcD5`eqfT?YR=k33m9vC z%V5p(?OH2NaiG4axY#q~7RUeaLZ|=JQat;oLICf?RwX?)?C6tP$-3aFx{rYbTq|as zt35@qUATDdRqt!_tlE&4hu3vn2`pTH>rel~QIi8eL4%ktUWr|t1(Q{Yzfe=K567?0 zF18)4f$I4K?$s21x!<}i5y0ik*r#fpI>Znxv5}hNGk$ZX&XFAnx;Z2|ut{1p)u;sT zUWxB()R%t(rX8;7!ES!d8rHHx!rKa`&#V3l3*=uvN5Zlx9p4Hl13CFy6e=HSp}+h= zdmrs_ksUc5z7VCHQeUw3g8G&;=Bu^5tu#^!GDU0iP)_VYuo-J!$@nS)x=F`!tARu< z+E&sU>kKVAg!eiWIK8yDpfCn}91!Cgfd#-GF`PSSmMizgZ8Q_u3ru$G-&nQRx-F(~ zGtVtwY>bc815p;V=(|*-Kgu@VFA7JH%pz~($2$lQJJ9;>bj~a_xG3SVl}Lfw+PE47 zG*=Tiusgvju0c`ZCqMJLU@E+26{TNI>BTbXTb-oD8s6VNCI)?*Q34VJ=lj*iPh;5? zpmTp~)CRMD7vOTm($^f!P2+C3>eFjp2hepz7+2VDvOnUnmp|`EQz`ldj32C0uCRgh zsohQtI}tEl;#Rs|Z74L!Y-i5#%mAIs*tl)nT)~Ery*ZxUwVBpzQTW`k!z^-Qv?AF? z`GS;_R*b{LyuovyCo?i=F+nuSbxJ`y5?+ose?Ff0$};i+%8JIo_R!Z8IT61hX%uzt zV!v6=|y8*Wgrpp zxC!Tr={WWb!V_MC@*SAs9zwdg4AC!*RH87$3b{9_E)8|L$m;3t@5X1AvTu|y?pku- z5?KY&p2IVKBByLwV~n5Es0Bpj9~6(QSmdR@ssEZJ$0 z<-K=Oay`~EFajOnS?4w_@;%Y)k9XH>fV2K?SmJd|w6M&*TL&?)MnkLFV*Vn!!j8Qm zyFmDbnnV83KYatGk`q|>r0mG^Pm%2<2W_F;$hJ@knujKc(X^xs-rKUmz_Kdzrv?cR z1sE49fh_$F)(4#rdlyk2q=evPkkLqlRLxkhv0|t7+y}+9kqbu4nusdg)g;0D#qk{s zOB`rVrDK^@<0RAIMEmVVCn<=O$SFJ4IoL)8)lXPMN;XdC1N8(i7<)29|X zt4lb~ULKH(=mFuqqumMJ=9%%;+?b%h7yn}ViM`|Xg{e#>`tYv7BeES>#72mtDfWfNy$hhi`a3RI*J?h}Fl?w1_z%^-;~5fK8BT~`6Tdl4*yDnrXOJGoK*&D6fsE_`Tt zf$FmLpN;rY_tcU!!Dg4=lM3(jVB}#1nCsiI^Z`CZWoYm)P9L(pFAUNX8Y;LbbCwtCT_OOZ}V zdOb<0Jg>TDlW~{oqMEOoJxMj`svH+BT1Gd6{Ka?0682_jXlTmzh0*wCRp&qH_sqr#UFH1-JkOA7XKS2?bofswWoDGvdSJGK70_s))`Z8 - @@ -106,4 +106,4 @@ android:divider="@color/light_gray" android:dividerHeight="1dp" /> - \ No newline at end of file + \ No newline at end of file diff --git a/AerisDemo/src/com/example/customendpoint/CustomSunmoonFragment.java b/AerisDemo/src/com/example/customendpoint/CustomSunmoonFragment.java index 37209574..d2968df6 100644 --- a/AerisDemo/src/com/example/customendpoint/CustomSunmoonFragment.java +++ b/AerisDemo/src/com/example/customendpoint/CustomSunmoonFragment.java @@ -2,7 +2,7 @@ import java.util.List; -import android.support.v4.app.Fragment; +import androidx.fragment.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; diff --git a/AerisDemo/src/com/example/demoaerisproject/AerisNotification.java b/AerisDemo/src/com/example/demoaerisproject/AerisNotification.java index c00ca018..82f6c461 100644 --- a/AerisDemo/src/com/example/demoaerisproject/AerisNotification.java +++ b/AerisDemo/src/com/example/demoaerisproject/AerisNotification.java @@ -4,7 +4,7 @@ import android.app.PendingIntent; import android.content.Context; import android.content.Intent; -import android.support.v4.app.NotificationCompat; +import androidx.core.app.NotificationCompat; import android.widget.RemoteViews; import com.aerisweather.aeris.logging.Logger; @@ -14,7 +14,6 @@ import com.aerisweather.aeris.response.ObservationResponse; import com.aerisweather.aeris.util.FileUtil; import com.aerisweather.aeris.util.WeatherUtil; -import com.example.service.NotificationJobService; import java.util.HashMap; import java.util.Map; diff --git a/AerisDemo/src/com/example/demoaerisproject/DrawerActivity.java b/AerisDemo/src/com/example/demoaerisproject/DrawerActivity.java index 18480f68..7547107b 100644 --- a/AerisDemo/src/com/example/demoaerisproject/DrawerActivity.java +++ b/AerisDemo/src/com/example/demoaerisproject/DrawerActivity.java @@ -3,9 +3,9 @@ import java.util.ArrayList; import android.annotation.TargetApi; -import android.support.v4.app.Fragment; -import android.support.v4.app.FragmentActivity; -import android.support.v4.app.FragmentManager; +import androidx.fragment.app.Fragment; +import androidx.fragment.app.FragmentActivity; +import androidx.fragment.app.FragmentManager; import android.app.LoaderManager.LoaderCallbacks; import android.content.Intent; import android.content.Loader; @@ -13,8 +13,8 @@ import android.content.res.Configuration; import android.database.Cursor; import android.os.Bundle; -import android.support.v7.app.ActionBarDrawerToggle; -import android.support.v4.widget.DrawerLayout; +import androidx.appcompat.app.ActionBarDrawerToggle; +import androidx.drawerlayout.widget.DrawerLayout; import android.util.Log; import android.view.Menu; import android.view.MenuItem; diff --git a/AerisDemo/src/com/example/fragment/AerisFragment.java b/AerisDemo/src/com/example/fragment/AerisFragment.java index bba29f58..c73b64f1 100644 --- a/AerisDemo/src/com/example/fragment/AerisFragment.java +++ b/AerisDemo/src/com/example/fragment/AerisFragment.java @@ -1,7 +1,7 @@ package com.example.fragment; import android.app.Activity; -import android.support.v4.app.Fragment; +import androidx.fragment.app.Fragment; import android.widget.Toast; import com.example.fragment.HeadlessFragment.HeadlessObserver; diff --git a/AerisDemo/src/com/example/fragment/MyMapFragment.java b/AerisDemo/src/com/example/fragment/MyMapFragment.java index c17c5ee4..62104f72 100644 --- a/AerisDemo/src/com/example/fragment/MyMapFragment.java +++ b/AerisDemo/src/com/example/fragment/MyMapFragment.java @@ -8,9 +8,9 @@ import android.content.pm.PackageManager; import android.location.Location; import android.os.Bundle; -import android.support.v4.app.ActivityCompat; -import android.support.v4.app.Fragment; -import android.support.v4.content.ContextCompat; +import androidx.core.app.ActivityCompat; +import androidx.fragment.app.Fragment; +import androidx.core.content.ContextCompat; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuInflater; @@ -20,6 +20,7 @@ import android.widget.Toast; import com.aerisweather.aeris.maps.AerisMapContainerView; +import com.aerisweather.aeris.tiles.AerisConstants; import com.example.db.MyPlace; import com.example.db.MyPlacesDb; import com.example.demoaerisproject.MapOptionsLocalActivity; @@ -92,6 +93,8 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa m_container = container; m_savedInstanceState = savedInstanceState; + + View view = inflater.inflate(R.layout.fragment_interactive_maps, container, false); AerisMapContainerView mapContainer = (AerisMapContainerView) view.findViewById(R.id.mapView); m_aerisMapView = mapContainer.getAerisMapView(); @@ -229,6 +232,13 @@ private void initMap() //create a new MapOptions obj m_mapOptions = new AerisMapOptions(); m_aerisAmp.getPermissibleLayers(false); + /* + Example of overriding the default domain for AMP + i.e. using a custom CDN + + AerisConstants.getInstance().setBaseTileSecureUrl("https://maps.yourdomain.com/"); + */ + //set the mapOptions class's AerisAMP obj m_mapOptions.setAerisAMP(m_aerisAmp); @@ -265,12 +275,25 @@ private void initMap() aerisAmp.setLayer(statesAmpLayer); */ + /** + * EXAMPLE: Adding 6-10day outlook with custom legend + */ + /* + AerisAmpLayer outlookAmpLayer = new AerisAmpLayer("temperatures-outlook-6-10d-cpc","temperatures-outlook-6-10d-cpc",100); + outlookAmpLayer.setCustomLayerLegend(R.drawable.legend_temp_outlook); + aerisAmp.setLayer(outlookAmpLayer); + */ + + + if (aerisAmp.getActiveMapLayers().size() < 1) { aerisAmp.setDefaultLayers(); } m_aerisMapView.addLayer(aerisAmp); + + //point data layer(s) m_aerisMapView.addLayer(m_mapOptions.getPointData()); @@ -294,10 +317,11 @@ private void initMap() /** * SAMPLE: TROPICAL CYCLONES ERROR CONES */ + /* AerisPolygonData aerisPolygonData = AerisPolygonData.TROPICAL_CYCLONE_ERROR_CONES; m_aerisMapView.addLayer(aerisPolygonData); + */ -// m_aerisMapView.addLayer(m_mapOptions.getPolygonData()); //get a new marker option object MarkerOptions markerOptions = new MarkerOptions(); diff --git a/AerisDemo/src/com/example/service/NotificationJobService.java b/AerisDemo/src/com/example/service/NotificationJobService.java index ee350a61..2df2f114 100644 --- a/AerisDemo/src/com/example/service/NotificationJobService.java +++ b/AerisDemo/src/com/example/service/NotificationJobService.java @@ -5,7 +5,7 @@ import android.os.Build; import android.os.StrictMode; import android.os.SystemClock; -import android.support.annotation.RequiresApi; +import androidx.annotation.RequiresApi; import com.aerisweather.aeris.communication.Action; import com.aerisweather.aeris.communication.AerisRequest; From 86783e36f1643caa99d12d2a5b829e234dc8a234 Mon Sep 17 00:00:00 2001 From: Lee Date: Thu, 1 Oct 2020 16:02:08 -0500 Subject: [PATCH 2/4] Migrate android:showAsAction to app:showAsAction --- AerisDemo/build.gradle | 2 +- AerisDemo/gradle.properties | 2 +- AerisDemo/res/menu/main.xml | 13 +++++++------ AerisDemo/res/menu/menu_maps_fragment.xml | 5 +++-- AerisDemo/res/menu/menu_search.xml | 8 ++++---- 5 files changed, 16 insertions(+), 14 deletions(-) diff --git a/AerisDemo/build.gradle b/AerisDemo/build.gradle index 7f8a933d..6b2440cf 100644 --- a/AerisDemo/build.gradle +++ b/AerisDemo/build.gradle @@ -74,7 +74,7 @@ repositories { } dependencies { testImplementation 'junit:junit:4.12' - implementation ('com.aerisweather:aeris-maps-lib:2.6.1-rc1@aar') { + implementation ('com.aerisweather:aeris-maps-lib:2.6.1-rc2@aar') { transitive true } androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { diff --git a/AerisDemo/gradle.properties b/AerisDemo/gradle.properties index 33996bda..1c6abec5 100644 --- a/AerisDemo/gradle.properties +++ b/AerisDemo/gradle.properties @@ -1,6 +1,6 @@ org.gradle.jvmargs=-Xmx2048M -maven_staging_url=https://oss.sonatype.org/content/repositories/comaerisweather-1620 +maven_staging_url=https://oss.sonatype.org/content/repositories/comaerisweather-1624 android.useAndroidX=true android.enableJetifier=true diff --git a/AerisDemo/res/menu/main.xml b/AerisDemo/res/menu/main.xml index 120afc82..c3a25499 100644 --- a/AerisDemo/res/menu/main.xml +++ b/AerisDemo/res/menu/main.xml @@ -1,16 +1,17 @@ - + + android:title="@string/action_settings" + app:showAsAction="always" /> + android:icon="@drawable/ic_action_navigation_refresh" + android:title="@string/action_refresh" + app:showAsAction="always" /> diff --git a/AerisDemo/res/menu/menu_maps_fragment.xml b/AerisDemo/res/menu/menu_maps_fragment.xml index fd08d08a..37e4a506 100644 --- a/AerisDemo/res/menu/menu_maps_fragment.xml +++ b/AerisDemo/res/menu/menu_maps_fragment.xml @@ -1,7 +1,8 @@ - + + app:showAsAction="ifRoom|withText" /> diff --git a/AerisDemo/res/menu/menu_search.xml b/AerisDemo/res/menu/menu_search.xml index b4fa49d5..b31cc57a 100644 --- a/AerisDemo/res/menu/menu_search.xml +++ b/AerisDemo/res/menu/menu_search.xml @@ -1,14 +1,14 @@ - + + app:showAsAction="ifRoom" /> + app:showAsAction="ifRoom" /> From 7b8b88067fe8694dd6c54b3078fb08d834bd74c8 Mon Sep 17 00:00:00 2001 From: Lee Date: Mon, 5 Oct 2020 14:49:50 -0500 Subject: [PATCH 3/4] General tweaks to the readme --- README.md | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index f1dbb70a..3eaf8bb9 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The Aeris Android SDK allows a developer to quickly and easily add weather conte ## Getting Started -View the latest installation and implementation details at AerisWeather under the [Aeris Android SDK toolkit documentation] (http://www.aerisweather.com/support/docs/toolkits/aeris-android-sdk/getting-started/). +View the latest installation and implementation details at AerisWeather under the [Aeris Android SDK toolkit documentation](http://www.aerisweather.com/support/docs/toolkits/aeris-android-sdk/getting-started/). ### Aeris API Configuration for the AerisDemo App Before you can begin using the Aeris Android SDK in your project, you will need to download the latest version of the SDK and ensure that you have the required Aeris API keys for your application. @@ -48,44 +48,40 @@ In the resulting dialog, enter the SHA-1 fingerprint, then a semicolon, then The The Google API Console responds by displaying Key for Android apps (with certificates) followed by a forty-character API key. In your Android project, update the meta tag in the Demo Project’s Manifest: -```java - -``` +
<meta-data
+            android:name="com.google.android.maps.v2.API_KEY"
+            android:value="your_api_key" />
+
Note: Your SHA1 can be obtained in Android Studio by running the **"signingReport"** task under the **"Gradle projects"** section. ### Permissions The following permissions are required in order to use the Aeris Android SDK in the application. Please add these to your AndroidManifest.xml: -```java - - - - - - - - - -``` +
<manifest>
+    <uses-permission android:name="android.permission.INTERNET"/>
+    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
+    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
+    <uses-permission android:name="android.permission.ACCESS_COURSE_LOCATION"/>
+    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
+    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
+</manifest>
+
### Gradle Configuration The Aeris Core and Aeris Maps libraries are available through Maven Central. To add these dependencies to your project add these lines to your build.gradle file. **Aeris Core:** -```java -repositories { +
repositories {
     mavenCentral()
 }
 dependencies {
     compile 'com.aerisweather:aeris-core-lib:#.#.#@aar'
 }
-``` 
+
**Aeris Maps:** (Note: you do not need to to add Aeris Core seperately if you are using Aeris Maps - the core lib is referenced in the maps lib) -```java -repositories { +
repositories {
     mavenCentral()
 }
 dependencies {
@@ -95,7 +91,7 @@ dependencies {
     compile 'com.google.android.gms:play-services-maps:#.#.#'
     compile 'com.android.support:appcompat-v7:#.#.#'
 }
-``` 
+
##Reference Links From 836441671704db07c53974fcd2ccb22a8fda15e5 Mon Sep 17 00:00:00 2001 From: Lee Date: Tue, 6 Oct 2020 18:18:33 -0500 Subject: [PATCH 4/4] Update to office 2.6.1 Aeris SDK --- AerisDemo/build.gradle | 11 ++++++----- AerisDemo/gradle.properties | 2 +- AerisDemo/src/com/example/fragment/MyMapFragment.java | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/AerisDemo/build.gradle b/AerisDemo/build.gradle index 6b2440cf..15a32ff1 100644 --- a/AerisDemo/build.gradle +++ b/AerisDemo/build.gradle @@ -7,7 +7,7 @@ android { defaultConfig { minSdkVersion 19 applicationId "com.example.demoaerisproject" - versionCode 11 + versionCode 12 targetSdkVersion 30 versionName "2.6.1" //multiDexEnabled true @@ -56,25 +56,26 @@ android { buildscript { repositories { -// mavenCentral() + mavenCentral() google() jcenter() - maven { url maven_staging_url } + //maven { url maven_staging_url } } dependencies { classpath 'com.android.tools.build:gradle:4.0.1' } } + repositories { mavenCentral() google() jcenter() - maven { url maven_staging_url } + //maven { url maven_staging_url } } dependencies { testImplementation 'junit:junit:4.12' - implementation ('com.aerisweather:aeris-maps-lib:2.6.1-rc2@aar') { + implementation ('com.aerisweather:aeris-maps-lib:2.6.1@aar') { transitive true } androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', { diff --git a/AerisDemo/gradle.properties b/AerisDemo/gradle.properties index 1c6abec5..827ccfff 100644 --- a/AerisDemo/gradle.properties +++ b/AerisDemo/gradle.properties @@ -1,6 +1,6 @@ org.gradle.jvmargs=-Xmx2048M -maven_staging_url=https://oss.sonatype.org/content/repositories/comaerisweather-1624 +maven_staging_url=https://oss.sonatype.org/content/repositories/comaerisweather-1625 android.useAndroidX=true android.enableJetifier=true diff --git a/AerisDemo/src/com/example/fragment/MyMapFragment.java b/AerisDemo/src/com/example/fragment/MyMapFragment.java index 62104f72..6120adaf 100644 --- a/AerisDemo/src/com/example/fragment/MyMapFragment.java +++ b/AerisDemo/src/com/example/fragment/MyMapFragment.java @@ -258,6 +258,7 @@ private void initMap() //amp layer(s) AerisAmp aerisAmp = m_mapOptions.getAerisAMP(); + /** * CUSTOM / UNDOCUMENTED LAYER */ @@ -285,7 +286,6 @@ private void initMap() */ - if (aerisAmp.getActiveMapLayers().size() < 1) { aerisAmp.setDefaultLayers();