Skip to content

Commit

Permalink
Deleted duplicate drawables as only mdpi is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Protino committed Feb 27, 2017
1 parent daa90ea commit dd0f814
Show file tree
Hide file tree
Showing 123 changed files with 455 additions and 149 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "25.0.2"

defaultConfig {
applicationId "com.calgen.prodek.sunshine_v2"
applicationId "io.github.protino"
minSdkVersion 11
targetSdkVersion 25
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2;
package io.github.protino;

import android.app.Application;
import android.test.ApplicationTestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.calgen.prodek.sunshine_v2;
package io.github.protino;

import android.test.suitebuilder.TestSuiteBuilder;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.calgen.prodek.sunshine_v2.data;
package io.github.protino.data;

import android.content.ContentValues;
import android.database.Cursor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.data;
package io.github.protino.data;

import android.test.AndroidTestCase;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.calgen.prodek.sunshine_v2.data;
package io.github.protino.data;

import android.content.ComponentName;
import android.content.ContentUris;
Expand All @@ -27,8 +27,8 @@
import android.test.AndroidTestCase;
import android.util.Log;

import com.calgen.prodek.sunshine_v2.data.WeatherContract.LocationEntry;
import com.calgen.prodek.sunshine_v2.data.WeatherContract.WeatherEntry;
import io.github.protino.data.WeatherContract.LocationEntry;
import io.github.protino.data.WeatherContract.WeatherEntry;

/*
Note: This is not a complete set of tests of the Sunshine ContentProvider, but it does test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.calgen.prodek.sunshine_v2.data;
package io.github.protino.data;

import android.content.UriMatcher;
import android.net.Uri;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.data;
package io.github.protino.data;

import android.content.ContentValues;
import android.content.Context;
Expand All @@ -10,7 +10,7 @@
import android.os.HandlerThread;
import android.test.AndroidTestCase;

import com.calgen.prodek.sunshine_v2.utils.PollingCheck;
import io.github.protino.utils.PollingCheck;

import java.util.Map;
import java.util.Set;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.calgen.prodek.sunshine_v2.data;
package io.github.protino.data;

import android.net.Uri;
import android.test.AndroidTestCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* Note: This file copied from the Android CTS Tests
*/
package com.calgen.prodek.sunshine_v2.utils;
package io.github.protino.utils;

import junit.framework.Assert;

Expand Down
41 changes: 23 additions & 18 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.calgen.prodek.sunshine_v2">
package="io.github.protino">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Expand All @@ -20,6 +20,9 @@

<!-- Permissions required to access location -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

<!-- Wear app permission -->
<uses-permission android:name="PROVICE"/>

<application
android:allowBackup="true"
Expand All @@ -30,8 +33,9 @@
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/GEO_API_KEY"/>

<activity
android:name=".activity.MainActivity"
android:name="io.github.protino.activity.MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.Main">
<intent-filter>
Expand All @@ -41,25 +45,25 @@
</intent-filter>
</activity>
<activity
android:name=".activity.DetailActivity"
android:name="io.github.protino.activity.DetailActivity"
android:label="@string/title_activity_detail"
android:theme="@style/AppTheme.Details">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activity.MainActivity"/>
android:value="io.github.protino.activity.MainActivity"/>
</activity>
<activity
android:name=".activity.SettingsActivity"
android:name="io.github.protino.activity.SettingsActivity"
android:label="@string/title_activity_settings"
android:theme="@style/SettingsTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activity.MainActivity"/>
android:value="io.github.protino.activity.MainActivity"/>
</activity>

<!-- SyncAdapter's dummy authentication service -->
<service
android:name=".sync.SunshineAuthenticatorService"
android:name="io.github.protino.sync.SunshineAuthenticatorService"
>
<intent-filter>
<action android:name="android.accounts.AccountAuthenticator"/>
Expand All @@ -70,14 +74,14 @@
</service>

<provider
android:name=".data.WeatherProvider"
android:name="io.github.protino.data.WeatherProvider"
android:authorities="@string/content_authority"
android:exported="false"
android:syncable="true"/>

<!-- The SyncAdapter service -->
<service
android:name=".sync.SunshineSyncService"
android:name="io.github.protino.sync.SunshineSyncService"
android:exported="true">
<intent-filter>
<action android:name="android.content.SyncAdapter"/>
Expand All @@ -89,14 +93,14 @@

<!-- The Firebase Cloud Messaging receiver and services -->
<service
android:name=".fcm.MyFcmListenerService">
android:name="io.github.protino.fcm.MyFcmListenerService">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>

<service
android:name=".fcm.MyFirebaseInstanceIdService">
android:name="io.github.protino.fcm.MyFirebaseInstanceIdService">
<intent-filter>
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/>
</intent-filter>
Expand All @@ -116,40 +120,41 @@

<!--Today Widget receiver and service-->
<receiver
android:name=".widget.TodayWidgetProvider"
android:name="io.github.protino.widget.TodayWidgetProvider"
android:label="@string/title_today_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
<action android:name="com.calgen.prodek.sunshine_v2.ACTION_DATA_UPDATED"/>
<action android:name="io.github.protino.ACTION_DATA_UPDATED"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_info_today"/>
</receiver>
<service android:name=".widget.TodayWidgetIntentService"/>
<service android:name="io.github.protino.widget.TodayWidgetIntentService"/>

<!-- Detail Widget receiver and service-->
<receiver
android:name=".widget.DetailWidgetProvider"
android:name="io.github.protino.widget.DetailWidgetProvider"
android:enabled="@bool/widget_detail_enabled"
android:label="@string/title_detail_widget">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
<action android:name="com.calgen.prodek.sunshine_v2.ACTION_DATA_UPDATED"/>
<action android:name="io.github.protino.ACTION_DATA_UPDATED"/>
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/widget_info_detail"/>
</receiver>

<service
android:name=".widget.DetailWidgetRemoteViewsService"
android:name="io.github.protino.widget.DetailWidgetRemoteViewsService"
android:enabled="@bool/widget_detail_enabled"
android:exported="false"
android:permission="android.permission.BIND_REMOTEVIEWS"/>

<!-- Muzei Extension -->
<service
android:name=".muzei.WeatherMuzeiSource"
android:name="io.github.protino.muzei.WeatherMuzeiSource"
android:description="@string/muzei_description"
android:icon="@mipmap/ic_muzei"
android:label="@string/app_name">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2;
package io.github.protino;

import android.os.Bundle;
import android.os.Parcel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2;
package io.github.protino;

import android.content.Context;
import android.content.SharedPreferences;
Expand All @@ -7,13 +7,13 @@
import android.preference.PreferenceManager;
import android.text.format.Time;

import com.calgen.prodek.sunshine_v2.sync.SunshineSyncAdapter;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import io.github.protino.sync.SunshineSyncAdapter;

public class Utility {

public static final String DATE_FORMAT = "yyyyMMdd";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.activity;
package io.github.protino.activity;

import android.content.res.Configuration;
import android.os.Bundle;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.calgen.prodek.sunshine_v2.activity;
package io.github.protino.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;

import com.calgen.prodek.sunshine_v2.R;
import com.calgen.prodek.sunshine_v2.fragment.DetailFragment;
import io.github.protino.R;
import io.github.protino.fragment.DetailFragment;

public class DetailActivity extends AppCompatActivity {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.activity;
package io.github.protino.activity;

import android.content.Intent;
import android.content.SharedPreferences;
Expand All @@ -14,13 +14,13 @@
import android.view.MenuItem;
import android.view.View;

import com.calgen.prodek.sunshine_v2.R;
import com.calgen.prodek.sunshine_v2.Utility;
import com.calgen.prodek.sunshine_v2.adapter.ForecastAdapter;
import com.calgen.prodek.sunshine_v2.data.WeatherContract;
import com.calgen.prodek.sunshine_v2.fragment.DetailFragment;
import com.calgen.prodek.sunshine_v2.fragment.ForecastFragment;
import com.calgen.prodek.sunshine_v2.sync.SunshineSyncAdapter;
import io.github.protino.R;
import io.github.protino.Utility;
import io.github.protino.adapter.ForecastAdapter;
import io.github.protino.data.WeatherContract;
import io.github.protino.fragment.DetailFragment;
import io.github.protino.fragment.ForecastFragment;
import io.github.protino.sync.SunshineSyncAdapter;

public class MainActivity extends AppCompatActivity implements ForecastFragment.Callback {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.activity;
package io.github.protino.activity;

import android.content.Intent;
import android.content.SharedPreferences;
Expand All @@ -15,14 +15,15 @@
import android.view.View;
import android.widget.ImageView;

import com.calgen.prodek.sunshine_v2.R;
import com.calgen.prodek.sunshine_v2.Utility;
import com.calgen.prodek.sunshine_v2.data.WeatherContract;
import com.calgen.prodek.sunshine_v2.sync.SunshineSyncAdapter;
import com.google.android.gms.location.places.Place;
import com.google.android.gms.location.places.ui.PlacePicker;
import com.google.android.gms.maps.model.LatLng;

import io.github.protino.R;
import io.github.protino.Utility;
import io.github.protino.data.WeatherContract;
import io.github.protino.sync.SunshineSyncAdapter;

/**
* Created by Gurupad on 15-Jun-16.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.adapter;
package io.github.protino.adapter;

import android.content.Context;
import android.database.Cursor;
Expand All @@ -12,11 +12,12 @@
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.calgen.prodek.sunshine_v2.ItemChoiceManager;
import com.calgen.prodek.sunshine_v2.R;
import com.calgen.prodek.sunshine_v2.Utility;
import com.calgen.prodek.sunshine_v2.data.WeatherContract;
import com.calgen.prodek.sunshine_v2.fragment.ForecastFragment;

import io.github.protino.ItemChoiceManager;
import io.github.protino.R;
import io.github.protino.Utility;
import io.github.protino.data.WeatherContract;
import io.github.protino.fragment.ForecastFragment;

/**
* Created by Gurupad on 05-Aug-16.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.customView;
package io.github.protino.customView;

import android.content.Context;
import android.graphics.Paint;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.calgen.prodek.sunshine_v2.customView;
package io.github.protino.customView;

import android.app.Activity;
import android.app.Dialog;
Expand All @@ -15,14 +15,15 @@
import android.widget.Button;
import android.widget.EditText;

import com.calgen.prodek.sunshine_v2.R;
import com.calgen.prodek.sunshine_v2.activity.SettingsActivity;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
import com.google.android.gms.common.GooglePlayServicesRepairableException;
import com.google.android.gms.location.places.ui.PlacePicker;

import io.github.protino.R;
import io.github.protino.activity.SettingsActivity;

/**
* Created by Gurupad Mamadapur on 11/8/2016.
*/
Expand Down
Loading

0 comments on commit dd0f814

Please sign in to comment.