Skip to content

Commit 9a6a54a

Browse files
BilalBilal
authored andcommitted
Update package name
1 parent 1aeb66d commit 9a6a54a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+168
-168
lines changed
0 Bytes
Binary file not shown.

MobileWeather/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
33
android {
44
compileSdkVersion 26
55
defaultConfig {
6-
applicationId "com.ford.mobileweather"
6+
applicationId "com.sdl.mobileweather"
77
minSdkVersion 15
88
targetSdkVersion 26
99
versionCode 27
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ford.mobileweather;
1+
package com.sdl.mobileweather;
22

33
import android.content.Context;
44
import android.support.test.InstrumentationRegistry;
@@ -21,6 +21,6 @@ public void useAppContext() {
2121
// Context of the app under test.
2222
Context appContext = InstrumentationRegistry.getTargetContext();
2323

24-
assertEquals("com.ford.mobileweather", appContext.getPackageName());
24+
assertEquals("com.sdl.mobileweather", appContext.getPackageName());
2525
}
2626
}

MobileWeather/app/src/main/AndroidManifest.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.ford.mobileweather">
3+
package="com.sdl.mobileweather">
44

55

66
<!-- Required for AppLink connection -->
@@ -21,14 +21,14 @@
2121
<uses-permission android:name="android.permission.WAKE_LOCK" />
2222

2323
<application
24-
android:name="com.ford.mobileweather.smartdevicelink.SmartDeviceLinkApplication"
24+
android:name="com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkApplication"
2525
android:icon="@mipmap/ic_launcher"
2626
android:label="@string/app_name"
2727
android:theme="@style/AppTheme"
2828
android:allowBackup="true" >
2929

3030
<activity
31-
android:name="com.ford.mobileweather.activity.MainActivity"
31+
android:name="com.sdl.mobileweather.activity.MainActivity"
3232
android:label="@string/title_activity_main"
3333
android:configChanges="orientation"
3434
android:screenOrientation="portrait" >
@@ -40,22 +40,22 @@
4040
</activity>
4141

4242
<activity
43-
android:name="com.ford.mobileweather.activity.LockScreenActivity"
43+
android:name="com.sdl.mobileweather.activity.LockScreenActivity"
4444
android:label="Locked"
4545
android:configChanges="orientation"
4646
android:screenOrientation="portrait" >
4747
</activity>
4848
<activity android:name="net.hockeyapp.android.UpdateActivity" />
4949

50-
<service android:name="com.ford.mobileweather.smartdevicelink.SmartDeviceLinkService" >
50+
<service android:name="com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkService" >
5151
</service>
52-
<service android:name="com.ford.mobileweather.wunderground.WUndergroundService" >
52+
<service android:name="com.sdl.mobileweather.wunderground.WUndergroundService" >
5353
</service>
54-
<service android:name="com.ford.mobileweather.forecastio.ForecastIoService" >
54+
<service android:name="com.sdl.mobileweather.forecastio.ForecastIoService" >
5555
</service>
5656

5757
<service
58-
android:name="com.ford.mobileweather.smartdevicelink.SdlRouterService"
58+
android:name="com.sdl.mobileweather.smartdevicelink.SdlRouterService"
5959
android:exported="true"
6060
android:process="com.smartdevicelink.router">
6161
<intent-filter>
@@ -64,7 +64,7 @@
6464
<meta-data android:name="@string/sdl_router_service_version_name" android:value="@integer/sdl_router_service_version_value" />
6565
</service>
6666

67-
<receiver android:name="com.ford.mobileweather.smartdevicelink.SmartDeviceLinkReceiver" >
67+
<receiver android:name="com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkReceiver" >
6868
<intent-filter>
6969
<action android:name="android.intent.action.BOOT_COMPLETED" />
7070
<action android:name="android.bluetooth.device.action.ACL_CONNECTED" />
@@ -74,7 +74,7 @@
7474
</intent-filter>
7575
</receiver>
7676

77-
<receiver android:name="com.ford.mobileweather.weather.WeatherUpdateWakefulReceiver" >
77+
<receiver android:name="com.sdl.mobileweather.weather.WeatherUpdateWakefulReceiver" >
7878
</receiver>
7979

8080
<meta-data
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ford.mobileweather.activity;
1+
package com.sdl.mobileweather.activity;
22

33
import android.app.Activity;
44
import android.content.BroadcastReceiver;
@@ -12,11 +12,11 @@
1212
import android.widget.ImageView;
1313
import android.widget.TextView;
1414

15-
import com.ford.mobileweather.R;
16-
import com.ford.mobileweather.artifact.WeatherLocation;
17-
import com.ford.mobileweather.processor.ImageProcessor;
18-
import com.ford.mobileweather.smartdevicelink.SmartDeviceLinkApplication;
19-
import com.ford.mobileweather.weather.WeatherDataManager;
15+
import com.sdl.mobileweather.R;
16+
import com.sdl.mobileweather.artifact.WeatherLocation;
17+
import com.sdl.mobileweather.processor.ImageProcessor;
18+
import com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkApplication;
19+
import com.sdl.mobileweather.weather.WeatherDataManager;
2020

2121

2222
public class LockScreenActivity extends Activity {
@@ -65,7 +65,7 @@ protected void onStart() {
6565
mCurrentLocation = mDataManager.getCurrentLocation();
6666
updateLocation();
6767
}
68-
LocalBroadcastManager.getInstance(this).registerReceiver(mChangeLocationReceiver, new IntentFilter("com.ford.mobileweather.Location"));
68+
LocalBroadcastManager.getInstance(this).registerReceiver(mChangeLocationReceiver, new IntentFilter("com.sdl.mobileweather.Location"));
6969
super.onStart();
7070
}
7171

MobileWeather/app/src/main/java/com/ford/mobileweather/activity/MainActivity.java renamed to MobileWeather/app/src/main/java/com/sdl/mobileweather/activity/MainActivity.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ford.mobileweather.activity;
1+
package com.sdl.mobileweather.activity;
22

33
import android.Manifest;
44
import android.app.ActionBar;
@@ -27,11 +27,11 @@
2727
import android.widget.ListView;
2828
import android.widget.Toast;
2929

30-
import com.ford.mobileweather.R;
31-
import com.ford.mobileweather.fragments.ConditionsFragment;
32-
import com.ford.mobileweather.fragments.ForecastFragment;
33-
import com.ford.mobileweather.smartdevicelink.SmartDeviceLinkActivity;
34-
import com.ford.mobileweather.smartdevicelink.SmartDeviceLinkApplication;
30+
import com.sdl.mobileweather.R;
31+
import com.sdl.mobileweather.fragments.ConditionsFragment;
32+
import com.sdl.mobileweather.fragments.ForecastFragment;
33+
import com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkActivity;
34+
import com.sdl.mobileweather.smartdevicelink.SmartDeviceLinkApplication;
3535

3636

3737
public class MainActivity extends SmartDeviceLinkActivity implements ActionBar.TabListener {
@@ -120,7 +120,7 @@ private void selectItem(int position) {
120120
// TODO: act on selections in the nav drawer
121121
String item = mDrawerAdapter.getItem(position);
122122
if ((getResources().getString(R.string.drawer_item_update_weather)).equals(item)){
123-
Intent intent = new Intent("com.ford.mobileweather.WeatherUpdate");
123+
Intent intent = new Intent("com.sdl.mobileweather.WeatherUpdate");
124124
LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
125125
}
126126
else if ((getResources().getString(R.string.drawer_item_reset_sync)).equals(item)){
@@ -201,10 +201,10 @@ protected void onStart() {
201201
Log.v(SmartDeviceLinkApplication.TAG, "onStart main");
202202
super.onStart();
203203
LocalBroadcastManager lbManager = LocalBroadcastManager.getInstance(this);
204-
lbManager.registerReceiver(mChangeLocationReceiver, new IntentFilter("com.ford.mobileweather.Location"));
205-
lbManager.registerReceiver(mWeatherConditionsReceiver, new IntentFilter("com.ford.mobileweather.WeatherConditions"));
206-
lbManager.registerReceiver(mForecastReceiver, new IntentFilter("com.ford.mobileweather.Forecast"));
207-
lbManager.registerReceiver(mHourlyForecastReceiver, new IntentFilter("com.ford.mobileweather.HourlyForecast"));
204+
lbManager.registerReceiver(mChangeLocationReceiver, new IntentFilter("com.sdl.mobileweather.Location"));
205+
lbManager.registerReceiver(mWeatherConditionsReceiver, new IntentFilter("com.sdl.mobileweather.WeatherConditions"));
206+
lbManager.registerReceiver(mForecastReceiver, new IntentFilter("com.sdl.mobileweather.Forecast"));
207+
lbManager.registerReceiver(mHourlyForecastReceiver, new IntentFilter("com.sdl.mobileweather.HourlyForecast"));
208208

209209
// Ask for permissions
210210
if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ford.mobileweather.adapter;
1+
package com.sdl.mobileweather.adapter;
22

33
import java.net.URL;
44
import java.text.SimpleDateFormat;
@@ -18,11 +18,11 @@
1818
import android.widget.LinearLayout;
1919
import android.widget.TextView;
2020

21-
import com.ford.mobileweather.R;
22-
import com.ford.mobileweather.processor.ImageProcessor;
23-
import com.ford.mobileweather.weather.Forecast;
24-
import com.ford.mobileweather.weather.UnitConverter;
25-
import com.ford.mobileweather.weather.WeatherDataManager;
21+
import com.sdl.mobileweather.R;
22+
import com.sdl.mobileweather.processor.ImageProcessor;
23+
import com.sdl.mobileweather.weather.Forecast;
24+
import com.sdl.mobileweather.weather.UnitConverter;
25+
import com.sdl.mobileweather.weather.WeatherDataManager;
2626

2727
public class ForecastListAdapter extends ArrayAdapter<Forecast> {
2828
private final Context mContext;

MobileWeather/app/src/main/java/com/ford/mobileweather/artifact/Const.java renamed to MobileWeather/app/src/main/java/com/sdl/mobileweather/artifact/Const.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ford.mobileweather.artifact;
1+
package com.sdl.mobileweather.artifact;
22

33
public class Const {
44
public static final String PREFS_NAME = "MobileWeatherPrefs";

MobileWeather/app/src/main/java/com/ford/mobileweather/artifact/GPSLocation.java renamed to MobileWeather/app/src/main/java/com/sdl/mobileweather/artifact/GPSLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ford.mobileweather.artifact;
1+
package com.sdl.mobileweather.artifact;
22

33
public class GPSLocation {
44
public String latitude;

MobileWeather/app/src/main/java/com/ford/mobileweather/artifact/WeatherLocation.java renamed to MobileWeather/app/src/main/java/com/sdl/mobileweather/artifact/WeatherLocation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ford.mobileweather.artifact;
1+
package com.sdl.mobileweather.artifact;
22

33
public class WeatherLocation {
44
public String state;

0 commit comments

Comments
 (0)