Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dee3f93
Updated method showConditions(boolean speak) to use sdl managers
Jan 15, 2020
27a8bc6
Update showNoConditionsAvail method to use sdlManager
Jan 15, 2020
b9028df
Update showWeatherError Method to use sdl managers
Jan 15, 2020
2e59e66
Updated writeDisplay method to use managers
Jan 15, 2020
e82cbac
Update showAlerts() method to use sdl Managers
Jan 15, 2020
8f3f85a
Update to use Choice managers
Jan 16, 2020
b2c7f3f
Added method getArtWork to get images for choiceManagers. Updated met…
Jan 16, 2020
1a409cd
App Icon issue
Jan 16, 2020
ba6741e
Updated showWelcomMessage() method to use managers
Jan 16, 2020
cfa5781
working on choice sets for forcast
Jan 17, 2020
ceab266
fixed issue with choice manager
Jan 21, 2020
d386ddc
redesigned menu
Jan 21, 2020
fbf3514
updating menu manager in progress testing
Jan 22, 2020
51e3ae5
Menu Manager is up and good
Jan 23, 2020
1e0cac7
Added lock screen capabilities
Jan 23, 2020
61ffeec
Cleaned up code and added comments
Jan 23, 2020
cddaa04
Fixed issue when switching form hourly to daily forecast.
Jan 23, 2020
191b78b
Updated a showRequest to use SdlManager in Forecast Items, Formatted …
Apr 29, 2020
72c3d82
Remove extra space
Apr 29, 2020
165e660
Remove space and got ride of custom lock screen
Apr 30, 2020
71e4759
Fixed welcome Screen, Aligned with IOS on preset buttons and data dis…
May 5, 2020
77d5b90
Fix welcomScreen skip
May 5, 2020
0069d8c
Removed unused proxy class, fixed proxy reset method
May 5, 2020
2e75d38
Code cleanup in sdlService
May 5, 2020
4a36a35
Added TCP connection instructions along with TCP connection fix for b…
May 7, 2020
f2477ae
Added Build Variant flavors of TCP and Multiplex, Fixed issue with we…
May 11, 2020
022ce03
Fixed issue with Menu and Alerts
May 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions MobileWeather/.idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions MobileWeather/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
flavorDimensions "default"
productFlavors{
multi_sec_off {
buildConfigField 'String', 'TRANSPORT', '"MULTI"'
buildConfigField 'String', 'SECURITY', '"OFF"'
}
tcp {
buildConfigField 'String', 'TRANSPORT', '"TCP"'
buildConfigField 'String', 'SECURITY', '"OFF"'
}
}
lintOptions {
disable 'GoogleAppIndexingWarning'
}
}

dependencies {
Expand Down
5 changes: 2 additions & 3 deletions MobileWeather/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@

<activity android:name="net.hockeyapp.android.UpdateActivity" />

<activity
android:name="com.smartdevicelink.managers.lockscreen.SDLLockScreenActivity"
android:launchMode="singleTop" />
<activity android:name="com.smartdevicelink.managers.lockscreen.SDLLockScreenActivity"
android:launchMode="singleTop"/>

<service android:name="com.sdl.mobileweather.smartdevicelink.SdlService"/>
<service android:name="com.sdl.mobileweather.wunderground.WUndergroundService"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.sdl.mobileweather.smartdevicelink;

import java.util.Locale;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Application;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
Expand All @@ -14,16 +11,16 @@

import com.sdl.mobileweather.R;
import com.sdl.mobileweather.forecastio.ForecastIoService;
import com.sdl.mobileweather.localization.LocalizationUtil;
import com.sdl.mobileweather.location.PlayServicesConnectionChecker;
import com.sdl.mobileweather.location.WeatherLocationServices;
import com.sdl.mobileweather.weather.WeatherAlarmManager;
import com.sdl.mobileweather.weather.WeatherDataManager;
import com.sdl.mobileweather.weather.WeatherUpdateWakefulReceiver;
import com.smartdevicelink.BuildConfig;
import com.smartdevicelink.exception.SdlException;
import com.sdl.mobileweather.BuildConfig;
import com.smartdevicelink.managers.SdlManager;
import com.smartdevicelink.proxy.SdlProxyALM;
import com.sdl.mobileweather.localization.LocalizationUtil;

import java.util.Locale;


public class SdlApplication extends Application {
Expand Down Expand Up @@ -92,19 +89,16 @@ public void onConfigurationChanged(Configuration newConfig) {
public void onLowMemory() {
super.onLowMemory();
}

public void startSdlProxyService() {
Log.i(SdlApplication.TAG, "Starting SmartDeviceLink service");
// Get the local Bluetooth adapter
BluetoothAdapter mBtAdapter = BluetoothAdapter.getDefaultAdapter();

// If BT adapter exists, is enabled, and there are paired devices, start service/proxy
if (mBtAdapter != null)
{
if ((mBtAdapter.isEnabled() && mBtAdapter.getBondedDevices().isEmpty() == false))
{
SdlReceiver.queryForConnectedService(this);
}
public void startSdlProxyService() {
Log.i(SdlApplication.TAG, "Starting SmartDeviceLink service");
if (BuildConfig.TRANSPORT.equals("MULTI")) {
Log.i(TAG, "startSdlProxyService: Multiplex Selected");
SdlReceiver.queryForConnectedService(this);
} else if (BuildConfig.TRANSPORT.equals("TCP")) {
Log.i(TAG, "startSdlProxyService: TCP Selected");
Intent proxyIntent = new Intent(this, SdlService.class);
startService(proxyIntent);
}
}

Expand All @@ -122,15 +116,6 @@ public void endSdlProxyInstance() {
}
}
}

// Stop the SdlService
public void endSdlProxyService() {
Log.i(SdlApplication.TAG, "Ending SmartDeviceLink service");
SdlService serviceInstance = SdlService.getInstance();
if (serviceInstance != null){
serviceInstance.stopService();
}
}

public void startWeatherUpdates() {
Log.i(SdlApplication.TAG, "Starting weather updates");
Expand Down
Loading