Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Amuri-Bonface committed Jul 29, 2019
1 parent e229999 commit 26c3c31
Show file tree
Hide file tree
Showing 35 changed files with 89 additions and 103 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
Binary file modified .idea/caches/gradle_models.ser
Binary file not shown.
5 changes: 3 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
compileSdkVersion 28
// buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.news.droiddebo.mytimes"
applicationId "com.news.myworld.allnews"
minSdkVersion 16
targetSdkVersion 28
versionCode 5
Expand All @@ -19,7 +19,8 @@ android {
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Expand Down
Binary file added app/release/app.aab
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes;
package com.news.myworld.allnews;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand All @@ -21,6 +21,6 @@ public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.news.droiddebo.mytimes", appContext.getPackageName());
assertEquals("com.news.myworld.mytimes", appContext.getPackageName());
}
}
28 changes: 14 additions & 14 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.news.droiddebo.mytimes">
package="com.news.myworld.allnews">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

<application
android:name=".MyTimesApplication"
android:name="com.news.myworld.allnews.MyTimesApplication"
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".view.MainActivity"
<activity android:name="com.news.myworld.allnews.view.MainActivity"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -24,39 +24,39 @@
</intent-filter>
</activity>
<activity
android:name=".view.ArticleActivity"
android:name="com.news.myworld.allnews.view.ArticleActivity"
android:label="@string/title_activity_article"
android:parentActivityName=".view.MainActivity"
android:parentActivityName="com.news.myworld.allnews.view.MainActivity"
android:theme="@style/AppTheme.NoActionBar"
tools:targetApi="jelly_bean">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.news.droiddebo.mytimes.view.MainActivity" />
android:value="com.news.myworld.allnews.view.MainActivity" />
</activity>
<activity
android:name=".view.AboutActivity"
android:name="com.news.myworld.allnews.view.AboutActivity"
android:label="@string/title_about_the_app"
android:parentActivityName=".view.MainActivity"
android:parentActivityName="com.news.myworld.allnews.view.MainActivity"
android:theme="@style/AppTheme.NoActionBar"
tools:targetApi="jelly_bean">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.news.droiddebo.mytimes.view.MainActivity" />
android:value="com.news.myworld.allnews.view.MainActivity" />
</activity>
<activity
android:name=".view.WebViewActivity"
android:name="com.news.myworld.allnews.view.WebViewActivity"
android:theme="@style/AppTheme.NoActionBar">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.news.droiddebo.mytimes.view.ArticleActivity" />
android:value="com.news.myworld.allnews.view.ArticleActivity" />
</activity>
<activity android:name=".view.SearchActivity"
android:parentActivityName=".view.MainActivity"
<activity android:name="com.news.myworld.allnews.view.SearchActivity"
android:parentActivityName="com.news.myworld.allnews.view.MainActivity"
android:theme="@style/AppThemeSearch"
tools:targetApi="jelly_bean">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.news.droiddebo.mytimes.view.MainActivity" />
android:value="com.news.myworld.allnews.view.MainActivity" />
</activity>
</application>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes;
package com.news.myworld.allnews;

import android.app.Application;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.adapter;
package com.news.myworld.allnews.adapter;

import android.app.Activity;
import android.content.Context;
Expand All @@ -16,15 +16,12 @@
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.news.droiddebo.mytimes.R;
import com.news.droiddebo.mytimes.model.Article;
import com.news.droiddebo.mytimes.model.ArticleStructure;
import com.news.droiddebo.mytimes.model.Constants;
import com.news.droiddebo.mytimes.view.ArticleActivity;
import com.news.myworld.allnews.R;
import com.news.myworld.allnews.model.ArticleStructure;
import com.news.myworld.allnews.model.Constants;
import com.news.myworld.allnews.view.ArticleActivity;

import java.util.ArrayList;
import java.util.List;

/*
** This Class is Used to fetch the data from the POJO Article and bind them to the views.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.model;
package com.news.myworld.allnews.model;

/*
** Main Article POJO class which helps the Data adapter class to bind the responses to the views.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.model;
package com.news.myworld.allnews.model;


import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.news.droiddebo.mytimes.model;
package com.news.myworld.allnews.model;


/**
* Created by debajyotibasak on 17/12/17.
*/

public class ArticleStructure {
private Source source;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
package com.news.droiddebo.mytimes.model;

import com.news.droiddebo.mytimes.BuildConfig;
package com.news.myworld.allnews.model;

public class Constants {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.news.droiddebo.mytimes.model;
package com.news.myworld.allnews.model;

import java.util.ArrayList;

/**
* Created by debajyotibasak on 17/12/17.
*/


public class NewsResponse {
private String status;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.news.droiddebo.mytimes.model;
package com.news.myworld.allnews.model;


/**
* Created by debajyotibasak on 17/12/17.
*/

public class Source {
private String id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.news.droiddebo.mytimes.network;
package com.news.myworld.allnews.network;

import com.news.droiddebo.mytimes.model.Constants;
import com.news.myworld.allnews.model.Constants;

import okhttp3.OkHttpClient;
import retrofit2.Retrofit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.news.droiddebo.mytimes.network;
package com.news.myworld.allnews.network;

import com.news.droiddebo.mytimes.model.ArticleResponse;
import com.news.droiddebo.mytimes.model.NewsResponse;
import com.news.myworld.allnews.model.ArticleResponse;
import com.news.myworld.allnews.model.NewsResponse;

import retrofit2.Call;
import retrofit2.http.GET;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.news.droiddebo.mytimes.network.interceptors;
package com.news.myworld.allnews.network.interceptors;

import android.support.annotation.NonNull;

import com.news.droiddebo.mytimes.util.UtilityMethods;
import com.news.myworld.allnews.util.UtilityMethods;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.network.interceptors;
package com.news.myworld.allnews.network.interceptors;

import android.support.annotation.NonNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.news.droiddebo.mytimes.util;
package com.news.myworld.allnews.util;

import android.content.Context;
import android.net.ConnectivityManager;

import com.news.droiddebo.mytimes.MyTimesApplication;
import com.news.myworld.allnews.MyTimesApplication;

public class UtilityMethods {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.view;
package com.news.myworld.allnews.view;

import android.content.Intent;
import android.content.res.AssetManager;
Expand All @@ -14,7 +14,7 @@
import android.view.View;
import android.widget.TextView;

import com.news.droiddebo.mytimes.R;
import com.news.myworld.allnews.R;

public class AboutActivity extends AppCompatActivity {

Expand Down Expand Up @@ -93,7 +93,7 @@ private void createLibraryCardViews() {
cardViewInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/debo1994"));
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/Amuri-Bonface"));
startActivity(browserIntent);
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.view;
package com.news.myworld.allnews.view;

import android.content.Intent;
import android.content.res.AssetManager;
Expand All @@ -15,8 +15,8 @@
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.news.droiddebo.mytimes.R;
import com.news.droiddebo.mytimes.model.Constants;
import com.news.myworld.allnews.R;
import com.news.myworld.allnews.model.Constants;

/*
* Article Activity is loaded when the user presses on one of the card views of the Recycler View
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.view;
package com.news.myworld.allnews.view;

import android.content.DialogInterface;
import android.content.Intent;
Expand All @@ -13,10 +13,8 @@
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand All @@ -38,17 +36,17 @@
import com.mikepenz.materialdrawer.model.interfaces.Nameable;
import com.mikepenz.materialdrawer.util.DrawerUIUtils;
import com.mikepenz.materialize.util.UIUtils;
import com.news.droiddebo.mytimes.MyTimesApplication;
import com.news.droiddebo.mytimes.R;
import com.news.droiddebo.mytimes.adapter.DataAdapter;
import com.news.droiddebo.mytimes.model.ArticleStructure;
import com.news.droiddebo.mytimes.model.Constants;
import com.news.droiddebo.mytimes.model.NewsResponse;
import com.news.droiddebo.mytimes.network.ApiClient;
import com.news.droiddebo.mytimes.network.ApiInterface;
import com.news.droiddebo.mytimes.network.interceptors.OfflineResponseCacheInterceptor;
import com.news.droiddebo.mytimes.network.interceptors.ResponseCacheInterceptor;
import com.news.droiddebo.mytimes.util.UtilityMethods;
import com.news.myworld.allnews.MyTimesApplication;
import com.news.myworld.allnews.R;
import com.news.myworld.allnews.adapter.DataAdapter;
import com.news.myworld.allnews.model.ArticleStructure;
import com.news.myworld.allnews.model.Constants;
import com.news.myworld.allnews.model.NewsResponse;
import com.news.myworld.allnews.network.ApiClient;
import com.news.myworld.allnews.network.ApiInterface;
import com.news.myworld.allnews.network.interceptors.OfflineResponseCacheInterceptor;
import com.news.myworld.allnews.network.interceptors.ResponseCacheInterceptor;
import com.news.myworld.allnews.util.UtilityMethods;

import java.io.File;
import java.util.ArrayList;
Expand All @@ -68,7 +66,7 @@
public class MainActivity extends AppCompatActivity implements SwipeRefreshLayout.OnRefreshListener {

private String[] SOURCE_ARRAY = {"google-news", "bbc-news", "al-jazeera-english", "the-washington-times",
"buzzfeed", "mashable", "mtv-news", "bbc-sport", "espn-cric-info", "talksport", "medical-news-today",
"buzzfeed", "mashable", "mtv-news", "bbc-sport", "espn", "talksport", "medical-news-today",
"national-geographic", "crypto-coins-news", "engadget", "the-next-web", "the-verge", "techcrunch", "techradar", "ign", "polygon"};
private String SOURCE;

Expand Down Expand Up @@ -147,7 +145,7 @@ private void createDrawer(Bundle savedInstanceState, final Toolbar toolbar, Type
.withTypeface(montserrat_regular);
PrimaryDrawerItem item10 = new PrimaryDrawerItem().withIdentifier(10).withName("BBC Sports")
.withIcon(R.drawable.ic_bbcsports).withTypeface(montserrat_regular);
PrimaryDrawerItem item11 = new PrimaryDrawerItem().withIdentifier(11).withName("ESPN Cric Info")
PrimaryDrawerItem item11 = new PrimaryDrawerItem().withIdentifier(11).withName("ESPN")
.withIcon(R.drawable.ic_espncricinfo).withTypeface(montserrat_regular);
PrimaryDrawerItem item12 = new PrimaryDrawerItem().withIdentifier(12).withName("TalkSport")
.withIcon(R.drawable.ic_talksport).withTypeface(montserrat_regular);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.news.droiddebo.mytimes.view;
package com.news.myworld.allnews.view;

import android.content.res.AssetManager;
import android.graphics.Typeface;
Expand All @@ -18,18 +18,16 @@
import android.widget.EditText;
import android.widget.TextView;

import com.news.droiddebo.mytimes.MyTimesApplication;
import com.news.droiddebo.mytimes.R;
import com.news.droiddebo.mytimes.adapter.DataAdapter;
import com.news.droiddebo.mytimes.model.ArticleStructure;
import com.news.droiddebo.mytimes.model.Constants;
import com.news.droiddebo.mytimes.model.NewsResponse;
import com.news.droiddebo.mytimes.network.ApiClient;
import com.news.droiddebo.mytimes.network.ApiInterface;
import com.news.droiddebo.mytimes.network.interceptors.OfflineResponseCacheInterceptor;
import com.news.droiddebo.mytimes.network.interceptors.ResponseCacheInterceptor;

import org.w3c.dom.Text;
import com.news.myworld.allnews.MyTimesApplication;
import com.news.myworld.allnews.R;
import com.news.myworld.allnews.adapter.DataAdapter;
import com.news.myworld.allnews.model.ArticleStructure;
import com.news.myworld.allnews.model.Constants;
import com.news.myworld.allnews.model.NewsResponse;
import com.news.myworld.allnews.network.ApiClient;
import com.news.myworld.allnews.network.ApiInterface;
import com.news.myworld.allnews.network.interceptors.OfflineResponseCacheInterceptor;
import com.news.myworld.allnews.network.interceptors.ResponseCacheInterceptor;

import java.io.File;
import java.util.ArrayList;
Expand Down
Loading

0 comments on commit 26c3c31

Please sign in to comment.