diff --git a/app/src/androidTest/java/com/nauk/moodl/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/herbron/moodl/ExampleInstrumentedTest.java similarity index 96% rename from app/src/androidTest/java/com/nauk/moodl/ExampleInstrumentedTest.java rename to app/src/androidTest/java/com/herbron/moodl/ExampleInstrumentedTest.java index 5d7b6b0..6a0c5fc 100644 --- a/app/src/androidTest/java/com/nauk/moodl/ExampleInstrumentedTest.java +++ b/app/src/androidTest/java/com/herbron/moodl/ExampleInstrumentedTest.java @@ -1,4 +1,4 @@ -package com.nauk.moodl; +package com.herbron.moodl; import android.content.Context; import android.support.test.InstrumentationRegistry; diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 9063aad..fabd8f6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,6 +1,6 @@ + package="com.herbron.moodl"> @@ -16,7 +16,7 @@ android:supportsRtl="true" android:theme="@style/AppTheme"> + android:value="com.herbron.moodl.Activities.HomeActivity"/> + android:value="com.herbron.moodl.Activities.HomeActivity"/> + android:value="com.herbron.moodl.Activities.HomeActivity"/> diff --git a/app/src/main/java/com/nauk/moodl/Activities/AppCompatPreferenceActivity.java b/app/src/main/java/com/herbron/moodl/Activities/AppCompatPreferenceActivity.java similarity index 98% rename from app/src/main/java/com/nauk/moodl/Activities/AppCompatPreferenceActivity.java rename to app/src/main/java/com/herbron/moodl/Activities/AppCompatPreferenceActivity.java index 1acfd21..b71d81b 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/AppCompatPreferenceActivity.java +++ b/app/src/main/java/com/herbron/moodl/Activities/AppCompatPreferenceActivity.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities; +package com.herbron.moodl.Activities; import android.content.res.Configuration; import android.os.Bundle; diff --git a/app/src/main/java/com/nauk/moodl/Activities/CurrencyDetailsActivity.java b/app/src/main/java/com/herbron/moodl/Activities/CurrencyDetailsActivity.java similarity index 80% rename from app/src/main/java/com/nauk/moodl/Activities/CurrencyDetailsActivity.java rename to app/src/main/java/com/herbron/moodl/Activities/CurrencyDetailsActivity.java index be9e2ae..841b24b 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/CurrencyDetailsActivity.java +++ b/app/src/main/java/com/herbron/moodl/Activities/CurrencyDetailsActivity.java @@ -1,76 +1,28 @@ -package com.nauk.moodl.Activities; +package com.herbron.moodl.Activities; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Canvas; -import android.graphics.Color; import android.graphics.Paint; -import android.graphics.PorterDuff; -import android.graphics.PorterDuffColorFilter; import android.graphics.drawable.BitmapDrawable; -import android.graphics.drawable.Drawable; -import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; -import android.os.Looper; import android.support.annotation.NonNull; -import android.support.design.widget.AppBarLayout; import android.support.design.widget.BottomNavigationView; import android.support.v4.content.ContextCompat; import android.support.v4.view.ViewPager; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; -import android.support.v7.widget.CardView; -import android.text.Html; -import android.text.method.LinkMovementMethod; -import android.view.LayoutInflater; import android.view.MenuItem; -import android.view.MotionEvent; -import android.view.View; -import android.view.animation.Animation; -import android.view.animation.Transformation; -import android.widget.AbsListView; -import android.widget.Button; -import android.widget.LinearLayout; -import android.widget.ListView; -import android.widget.ProgressBar; -import android.widget.TextView; -import android.widget.ViewFlipper; -import com.github.mikephil.charting.charts.BarChart; -import com.github.mikephil.charting.charts.CandleStickChart; -import com.github.mikephil.charting.charts.LineChart; -import com.github.mikephil.charting.data.BarData; -import com.github.mikephil.charting.data.BarDataSet; -import com.github.mikephil.charting.data.BarEntry; -import com.github.mikephil.charting.data.CandleData; -import com.github.mikephil.charting.data.CandleDataSet; -import com.github.mikephil.charting.data.CandleEntry; -import com.github.mikephil.charting.data.Entry; -import com.github.mikephil.charting.data.LineData; -import com.github.mikephil.charting.data.LineDataSet; -import com.github.mikephil.charting.highlight.Highlight; -import com.github.mikephil.charting.listener.OnChartValueSelectedListener; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDataChart; -import com.nauk.moodl.DataManagers.CurrencyData.Trade; -import com.nauk.moodl.DataManagers.CurrencyData.Transaction; -import com.nauk.moodl.DataManagers.DatabaseManager; -import com.nauk.moodl.DataManagers.ExchangeManager.BinanceManager; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.DetailsActivityPagerAdapter; -import com.nauk.moodl.LayoutManagers.TradeListAdapter; -import com.nauk.moodl.LayoutManagers.TransactionListAdapter; -import com.nauk.moodl.MoodlBox; -import com.nauk.moodl.PlaceholderManager; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DetailsActivityPagerAdapter; +import com.herbron.moodl.MoodlBox; +import com.herbron.moodl.R; -import java.util.ArrayList; -import java.util.List; import java.util.Objects; -import static com.nauk.moodl.MoodlBox.numberConformer; -import static com.nauk.moodl.MoodlBox.getDateFromTimestamp; +import static com.herbron.moodl.MoodlBox.numberConformer; import static java.lang.Math.abs; /**Create a Parcelable**/ diff --git a/app/src/main/java/com/nauk/moodl/Activities/CurrencySelectionActivity.java b/app/src/main/java/com/herbron/moodl/Activities/CurrencySelectionActivity.java similarity index 93% rename from app/src/main/java/com/nauk/moodl/Activities/CurrencySelectionActivity.java rename to app/src/main/java/com/herbron/moodl/Activities/CurrencySelectionActivity.java index ffe0b52..302d502 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/CurrencySelectionActivity.java +++ b/app/src/main/java/com/herbron/moodl/Activities/CurrencySelectionActivity.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities; +package com.herbron.moodl.Activities; import android.content.Intent; import android.os.AsyncTask; @@ -6,8 +6,6 @@ import android.os.Bundle; import android.os.Looper; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.CardView; -import android.text.TextUtils; -import android.util.Log; import android.view.View; import android.view.Window; import android.view.WindowManager; @@ -17,13 +15,13 @@ import android.widget.AdapterView; import android.widget.ListView; import android.widget.SearchView; -import com.nauk.moodl.DataManagers.BalanceManager; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDetailsList; -import com.nauk.moodl.DataManagers.DatabaseManager; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.LayoutManagers.CurrencyListAdapter; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.BalanceManager; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDetailsList; +import com.herbron.moodl.DataManagers.DatabaseManager; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.LayoutManagers.CurrencyListAdapter; +import com.herbron.moodl.R; import java.util.ArrayList; import java.util.List; diff --git a/app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Home.java b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Home.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Home.java rename to app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Home.java index 9a38b46..0c03a30 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Home.java +++ b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Home.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities.DetailsActivityFragments; +package com.herbron.moodl.Activities.DetailsActivityFragments; import android.graphics.Color; import android.graphics.Paint; @@ -7,7 +7,6 @@ import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; -import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; @@ -30,21 +29,19 @@ import com.github.mikephil.charting.data.LineData; import com.github.mikephil.charting.data.LineDataSet; import com.github.mikephil.charting.highlight.Highlight; import com.github.mikephil.charting.listener.OnChartValueSelectedListener; -import com.nauk.moodl.Activities.CurrencyDetailsActivity; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDataChart; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.LayoutManagers.CustomViewPager; -import com.nauk.moodl.MoodlBox; -import com.nauk.moodl.PlaceholderManager; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDataChart; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.LayoutManagers.CustomViewPager; +import com.herbron.moodl.MoodlBox; +import com.herbron.moodl.PlaceholderManager; +import com.herbron.moodl.R; import java.util.ArrayList; import java.util.List; -import static android.icu.text.DateTimePatternGenerator.DAY; -import static com.nauk.moodl.MoodlBox.getDateFromTimestamp; -import static com.nauk.moodl.MoodlBox.numberConformer; +import static com.herbron.moodl.MoodlBox.getDateFromTimestamp; +import static com.herbron.moodl.MoodlBox.numberConformer; /** * Created by Tiji on 13/05/2018. diff --git a/app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Informations.java b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Informations.java similarity index 94% rename from app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Informations.java rename to app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Informations.java index 2f7f5d5..8d95978 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Informations.java +++ b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Informations.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities.DetailsActivityFragments; +package com.herbron.moodl.Activities.DetailsActivityFragments; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; @@ -15,12 +15,12 @@ import android.view.ViewGroup; import android.widget.ProgressBar; import android.widget.TextView; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.PlaceholderManager; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.PlaceholderManager; +import com.herbron.moodl.R; -import static com.nauk.moodl.MoodlBox.numberConformer; +import static com.herbron.moodl.MoodlBox.numberConformer; /** * Created by Tiji on 13/05/2018. diff --git a/app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Transactions.java b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Transactions.java similarity index 91% rename from app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Transactions.java rename to app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Transactions.java index da963f5..966dbc8 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/DetailsActivityFragments/Transactions.java +++ b/app/src/main/java/com/herbron/moodl/Activities/DetailsActivityFragments/Transactions.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities.DetailsActivityFragments; +package com.herbron.moodl.Activities.DetailsActivityFragments; import android.graphics.PorterDuff; import android.graphics.PorterDuffColorFilter; @@ -16,15 +16,15 @@ import android.widget.AbsListView; import android.widget.ListView; import android.widget.ProgressBar; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.Trade; -import com.nauk.moodl.DataManagers.CurrencyData.Transaction; -import com.nauk.moodl.DataManagers.DatabaseManager; -import com.nauk.moodl.DataManagers.ExchangeManager.BinanceManager; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.LayoutManagers.TradeListAdapter; -import com.nauk.moodl.LayoutManagers.TransactionListAdapter; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.Trade; +import com.herbron.moodl.DataManagers.CurrencyData.Transaction; +import com.herbron.moodl.DataManagers.DatabaseManager; +import com.herbron.moodl.DataManagers.ExchangeManager.BinanceManager; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.LayoutManagers.TradeListAdapter; +import com.herbron.moodl.LayoutManagers.TransactionListAdapter; +import com.herbron.moodl.R; import java.util.ArrayList; @@ -43,7 +43,7 @@ public class Transactions extends Fragment { private BinanceManager binanceManager; private DatabaseManager databaseManager; private TradeListAdapter tradeListAdapter; - private ArrayList returnedTrades; + private ArrayList returnedTrades; @Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) @@ -83,7 +83,7 @@ public class Transactions extends Fragment { tradeLayout.addFooterView(loadingFooter); } - private void drawTradeList(ArrayList trades) + private void drawTradeList(ArrayList trades) { if(returnedTrades.size() > 20) { diff --git a/app/src/main/java/com/nauk/moodl/Activities/HomeActivity.java b/app/src/main/java/com/herbron/moodl/Activities/HomeActivity.java similarity index 92% rename from app/src/main/java/com/nauk/moodl/Activities/HomeActivity.java rename to app/src/main/java/com/herbron/moodl/Activities/HomeActivity.java index ee34ddb..c8f26c8 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/HomeActivity.java +++ b/app/src/main/java/com/herbron/moodl/Activities/HomeActivity.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities; +package com.herbron.moodl.Activities; import android.content.Intent; import android.graphics.Bitmap; @@ -17,12 +17,12 @@ import android.view.WindowManager; import android.widget.CompoundButton; import android.widget.Switch; -import com.nauk.moodl.Activities.HomeActivityFragments.MarketCapitalization; -import com.nauk.moodl.Activities.HomeActivityFragments.Overview; -import com.nauk.moodl.Activities.HomeActivityFragments.Summary; -import com.nauk.moodl.Activities.HomeActivityFragments.Watchlist; -import com.nauk.moodl.HideBalanceSwitch; -import com.nauk.moodl.R; +import com.herbron.moodl.Activities.HomeActivityFragments.MarketCapitalization; +import com.herbron.moodl.Activities.HomeActivityFragments.Overview; +import com.herbron.moodl.Activities.HomeActivityFragments.Summary; +import com.herbron.moodl.Activities.HomeActivityFragments.Watchlist; +import com.herbron.moodl.HideBalanceSwitch; +import com.herbron.moodl.R; //Use WilliamChart for charts https://github.com/diogobernardino/WilliamChart diff --git a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/MarketCapitalization.java b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/MarketCapitalization.java similarity index 96% rename from app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/MarketCapitalization.java rename to app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/MarketCapitalization.java index 4f14e5f..d5672c4 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/MarketCapitalization.java +++ b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/MarketCapitalization.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities.HomeActivityFragments; +package com.herbron.moodl.Activities.HomeActivityFragments; import android.annotation.SuppressLint; import android.graphics.Bitmap; @@ -12,7 +12,6 @@ import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.graphics.Palette; import android.text.SpannableString; -import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; @@ -28,16 +27,16 @@ import com.github.mikephil.charting.data.PieEntry; import com.github.mikephil.charting.formatter.PercentFormatter; import com.github.mikephil.charting.highlight.Highlight; import com.github.mikephil.charting.listener.OnChartValueSelectedListener; -import com.nauk.moodl.Activities.HomeActivity; -import com.nauk.moodl.DataManagers.BalanceManager; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDetailsList; -import com.nauk.moodl.DataManagers.MarketCapManager; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.LayoutManagers.CustomPieChart; -import com.nauk.moodl.MoodlBox; -import com.nauk.moodl.PlaceholderManager; -import com.nauk.moodl.R; +import com.herbron.moodl.Activities.HomeActivity; +import com.herbron.moodl.DataManagers.BalanceManager; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDetailsList; +import com.herbron.moodl.DataManagers.MarketCapManager; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.LayoutManagers.CustomPieChart; +import com.herbron.moodl.MoodlBox; +import com.herbron.moodl.PlaceholderManager; +import com.herbron.moodl.R; import java.util.ArrayList; import java.util.HashMap; diff --git a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Overview.java b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Overview.java similarity index 89% rename from app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Overview.java rename to app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Overview.java index f56f467..12c7f0e 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Overview.java +++ b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Overview.java @@ -1,10 +1,7 @@ -package com.nauk.moodl.Activities.HomeActivityFragments; +package com.herbron.moodl.Activities.HomeActivityFragments; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.graphics.PorterDuff; -import android.graphics.PorterDuffColorFilter; -import android.graphics.drawable.Drawable; import android.os.AsyncTask; import android.support.v4.app.Fragment; import android.os.Bundle; @@ -12,26 +9,21 @@ import android.support.annotation.NonNull; import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; import android.support.v7.graphics.Palette; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; -import android.widget.ExpandableListView; import android.widget.ImageButton; -import android.widget.LinearLayout; import android.widget.ListView; -import android.widget.ProgressBar; -import com.nauk.moodl.Activities.HomeActivity; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyCardview; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDetailsList; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyTickerList; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.LayoutManagers.OverviewListAdapter; -import com.nauk.moodl.MoodlBox; -import com.nauk.moodl.R; +import com.herbron.moodl.Activities.HomeActivity; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDetailsList; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyTickerList; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.LayoutManagers.OverviewListAdapter; +import com.herbron.moodl.MoodlBox; +import com.herbron.moodl.R; import java.util.List; diff --git a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Summary.java b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Summary.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Summary.java rename to app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Summary.java index a4e0ea8..deb3279 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Summary.java +++ b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Summary.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities.HomeActivityFragments; +package com.herbron.moodl.Activities.HomeActivityFragments; import android.app.Dialog; import android.content.Intent; @@ -16,7 +16,6 @@ import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.graphics.Palette; -import android.util.Log; import android.view.Gravity; import android.view.LayoutInflater; import android.view.View; @@ -27,22 +26,22 @@ import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; -import com.nauk.moodl.Activities.CurrencySelectionActivity; -import com.nauk.moodl.Activities.HomeActivity; -import com.nauk.moodl.DataManagers.BalanceManager; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyCardview; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyTickerList; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.HideBalanceSwitch; -import com.nauk.moodl.MoodlBox; -import com.nauk.moodl.PlaceholderManager; -import com.nauk.moodl.R; +import com.herbron.moodl.Activities.CurrencySelectionActivity; +import com.herbron.moodl.Activities.HomeActivity; +import com.herbron.moodl.DataManagers.BalanceManager; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyCardview; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyTickerList; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.HideBalanceSwitch; +import com.herbron.moodl.MoodlBox; +import com.herbron.moodl.PlaceholderManager; +import com.herbron.moodl.R; import java.util.ArrayList; import java.util.List; -import static com.nauk.moodl.MoodlBox.numberConformer; +import static com.herbron.moodl.MoodlBox.numberConformer; import static java.lang.Math.abs; /** diff --git a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Watchlist.java b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Watchlist.java similarity index 94% rename from app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Watchlist.java rename to app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Watchlist.java index 1adfdb4..309f304 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Watchlist.java +++ b/app/src/main/java/com/herbron/moodl/Activities/HomeActivityFragments/Watchlist.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.Activities.HomeActivityFragments; +package com.herbron.moodl.Activities.HomeActivityFragments; import android.content.Intent; import android.graphics.Bitmap; @@ -19,23 +19,23 @@ import android.widget.Button; import android.widget.ImageButton; import android.widget.LinearLayout; -import com.nauk.moodl.Activities.CurrencySelectionActivity; -import com.nauk.moodl.Activities.HomeActivity; -import com.nauk.moodl.DataManagers.BalanceManager; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyCardview; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDetailsList; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyTickerList; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.DataManagers.WatchlistManager; -import com.nauk.moodl.MoodlBox; -import com.nauk.moodl.R; +import com.herbron.moodl.Activities.CurrencySelectionActivity; +import com.herbron.moodl.Activities.HomeActivity; +import com.herbron.moodl.DataManagers.BalanceManager; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyCardview; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDetailsList; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyTickerList; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.DataManagers.WatchlistManager; +import com.herbron.moodl.MoodlBox; +import com.herbron.moodl.R; import org.json.JSONException; import org.json.JSONObject; -import static com.nauk.moodl.MoodlBox.collapseW; -import static com.nauk.moodl.MoodlBox.expandW; +import static com.herbron.moodl.MoodlBox.collapseW; +import static com.herbron.moodl.MoodlBox.expandW; import static java.lang.Math.abs; /** diff --git a/app/src/main/java/com/nauk/moodl/Activities/RecordTransactionActivity.java b/app/src/main/java/com/herbron/moodl/Activities/RecordTransactionActivity.java similarity index 96% rename from app/src/main/java/com/nauk/moodl/Activities/RecordTransactionActivity.java rename to app/src/main/java/com/herbron/moodl/Activities/RecordTransactionActivity.java index 0fbbf43..596f692 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/RecordTransactionActivity.java +++ b/app/src/main/java/com/herbron/moodl/Activities/RecordTransactionActivity.java @@ -1,9 +1,8 @@ -package com.nauk.moodl.Activities; +package com.herbron.moodl.Activities; import android.content.Intent; import android.os.Bundle; import android.support.design.widget.TextInputLayout; -import android.support.v4.app.NavUtils; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.Menu; @@ -16,11 +15,11 @@ import android.widget.EditText; import android.widget.TextView; import android.widget.TimePicker; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.Transaction; -import com.nauk.moodl.DataManagers.DatabaseManager; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.Transaction; +import com.herbron.moodl.DataManagers.DatabaseManager; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.R; import java.text.SimpleDateFormat; import java.util.Calendar; diff --git a/app/src/main/java/com/nauk/moodl/Activities/SettingsActivity.java b/app/src/main/java/com/herbron/moodl/Activities/SettingsActivity.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/Activities/SettingsActivity.java rename to app/src/main/java/com/herbron/moodl/Activities/SettingsActivity.java index 5e7738e..c8ede87 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/SettingsActivity.java +++ b/app/src/main/java/com/herbron/moodl/Activities/SettingsActivity.java @@ -1,10 +1,9 @@ -package com.nauk.moodl.Activities; +package com.herbron.moodl.Activities; import android.Manifest; import android.annotation.TargetApi; import android.app.KeyguardManager; import android.content.Context; -import android.content.Intent; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.content.res.Configuration; @@ -20,7 +19,6 @@ import android.preference.Preference; import android.preference.PreferenceActivity; import android.preference.PreferenceFragment; import android.preference.PreferenceManager; -import android.preference.PreferenceScreen; import android.preference.RingtonePreference; import android.preference.SwitchPreference; import android.security.keystore.KeyGenParameterSpec; @@ -29,15 +27,13 @@ import android.security.keystore.KeyProperties; import android.support.v4.app.ActivityCompat; import android.support.v7.app.ActionBar; import android.text.TextUtils; -import android.util.Log; import android.view.MenuItem; import android.view.View; -import com.nauk.moodl.BuildConfig; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.FingerprintToolkit.FingerprintDialogFragment; -import com.nauk.moodl.FingerprintToolkit.FingerprintHandler; -import com.nauk.moodl.R; +import com.herbron.moodl.BuildConfig; +import com.herbron.moodl.FingerprintToolkit.FingerprintDialogFragment; +import com.herbron.moodl.FingerprintToolkit.FingerprintHandler; +import com.herbron.moodl.R; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/BalanceManager.java b/app/src/main/java/com/herbron/moodl/DataManagers/BalanceManager.java similarity index 96% rename from app/src/main/java/com/nauk/moodl/DataManagers/BalanceManager.java rename to app/src/main/java/com/herbron/moodl/DataManagers/BalanceManager.java index ac647dd..650da0a 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/BalanceManager.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/BalanceManager.java @@ -1,14 +1,14 @@ -package com.nauk.moodl.DataManagers; +package com.herbron.moodl.DataManagers; import android.util.Log; import com.android.volley.RequestQueue; import com.android.volley.toolbox.Volley; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDetailsList; -import com.nauk.moodl.DataManagers.ExchangeManager.BinanceManager; -import com.nauk.moodl.DataManagers.ExchangeManager.HitBtcManager; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDetailsList; +import com.herbron.moodl.DataManagers.ExchangeManager.BinanceManager; +import com.herbron.moodl.DataManagers.ExchangeManager.HitBtcManager; +import com.herbron.moodl.R; import org.json.JSONException; import org.json.JSONObject; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Currency.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Currency.java similarity index 99% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Currency.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Currency.java index afdd48a..2381ca3 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Currency.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Currency.java @@ -1,10 +1,9 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; import android.graphics.Bitmap; import android.graphics.Color; import android.os.Parcel; import android.os.Parcelable; -import android.util.Log; import org.json.JSONException; import org.json.JSONObject; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyCardview.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyCardview.java similarity index 96% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyCardview.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyCardview.java index 7ba63b9..01c96b8 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyCardview.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyCardview.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; import android.app.Activity; import android.app.ActivityOptions; @@ -12,12 +12,10 @@ import android.os.Build; import android.support.annotation.NonNull; import android.support.v4.content.ContextCompat; import android.support.v7.widget.CardView; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; -import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; @@ -25,21 +23,19 @@ import com.github.mikephil.charting.charts.LineChart; import com.github.mikephil.charting.data.Entry; import com.github.mikephil.charting.data.LineData; import com.github.mikephil.charting.data.LineDataSet; -import com.nauk.moodl.Activities.CurrencyDetailsActivity; -import com.nauk.moodl.Activities.HomeActivityFragments.Summary; -import com.nauk.moodl.DataManagers.DatabaseManager; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.MoodlBox; -import com.nauk.moodl.PlaceholderManager; -import com.nauk.moodl.R; +import com.herbron.moodl.Activities.CurrencyDetailsActivity; +import com.herbron.moodl.DataManagers.DatabaseManager; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.MoodlBox; +import com.herbron.moodl.PlaceholderManager; +import com.herbron.moodl.R; -import java.text.DecimalFormat; import java.util.ArrayList; import java.util.List; -import static com.nauk.moodl.MoodlBox.collapseH; -import static com.nauk.moodl.MoodlBox.expandH; -import static com.nauk.moodl.MoodlBox.numberConformer; +import static com.herbron.moodl.MoodlBox.collapseH; +import static com.herbron.moodl.MoodlBox.expandH; +import static com.herbron.moodl.MoodlBox.numberConformer; /** * Created by Tiji on 12/05/2018. diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDataChart.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDataChart.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDataChart.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDataChart.java index 5996281..d075439 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDataChart.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDataChart.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; import android.os.Parcel; import android.os.Parcelable; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDataRetriever.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDataRetriever.java similarity index 99% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDataRetriever.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDataRetriever.java index 51e8980..821d053 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDataRetriever.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDataRetriever.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; import android.util.Log; @@ -8,7 +8,7 @@ import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.StringRequest; import com.android.volley.toolbox.Volley; -import com.nauk.moodl.R; +import com.herbron.moodl.R; import org.json.JSONException; import org.json.JSONObject; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDetailsList.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDetailsList.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDetailsList.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDetailsList.java index f80130c..98f7a7b 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyDetailsList.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyDetailsList.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; import android.content.Context; import android.os.StrictMode; @@ -10,8 +10,7 @@ import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.StringRequest; import com.android.volley.toolbox.Volley; -import com.nauk.moodl.DataManagers.BalanceManager; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.BalanceManager; import org.json.JSONException; import org.json.JSONObject; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyTickerList.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyTickerList.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyTickerList.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyTickerList.java index 30c01eb..4658027 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/CurrencyTickerList.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/CurrencyTickerList.java @@ -1,7 +1,6 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; import android.content.Context; -import android.util.Log; import com.android.volley.Request; import com.android.volley.RequestQueue; @@ -9,8 +8,8 @@ import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.StringRequest; import com.android.volley.toolbox.Volley; -import com.nauk.moodl.Activities.HomeActivityFragments.Overview; -import com.nauk.moodl.DataManagers.BalanceManager; +import com.herbron.moodl.Activities.HomeActivityFragments.Overview; +import com.herbron.moodl.DataManagers.BalanceManager; import org.json.JSONArray; import org.json.JSONException; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Trade.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Trade.java similarity index 95% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Trade.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Trade.java index 725a4a3..5197ab9 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Trade.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Trade.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; /** * Created by Guitoune on 24/04/2018. diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Transaction.java b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Transaction.java similarity index 96% rename from app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Transaction.java rename to app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Transaction.java index 8d80245..f458478 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/CurrencyData/Transaction.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/CurrencyData/Transaction.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers.CurrencyData; +package com.herbron.moodl.DataManagers.CurrencyData; /** * Created by Guitoune on 30/01/2018. diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/DatabaseManager.java b/app/src/main/java/com/herbron/moodl/DataManagers/DatabaseManager.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/DataManagers/DatabaseManager.java rename to app/src/main/java/com/herbron/moodl/DataManagers/DatabaseManager.java index 5e4f6f7..8c98055 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/DatabaseManager.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/DatabaseManager.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers; +package com.herbron.moodl.DataManagers; import android.content.ContentValues; import android.content.Context; @@ -6,8 +6,8 @@ import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.Transaction; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.Transaction; import java.util.ArrayList; import java.util.Date; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/ExchangeManager/BinanceManager.java b/app/src/main/java/com/herbron/moodl/DataManagers/ExchangeManager/BinanceManager.java similarity index 82% rename from app/src/main/java/com/nauk/moodl/DataManagers/ExchangeManager/BinanceManager.java rename to app/src/main/java/com/herbron/moodl/DataManagers/ExchangeManager/BinanceManager.java index bfc28b3..65fdc7a 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/ExchangeManager/BinanceManager.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/ExchangeManager/BinanceManager.java @@ -1,6 +1,4 @@ -package com.nauk.moodl.DataManagers.ExchangeManager; - -import android.util.Log; +package com.herbron.moodl.DataManagers.ExchangeManager; import com.binance.api.client.BinanceApiClientFactory; import com.binance.api.client.BinanceApiRestClient; @@ -8,10 +6,9 @@ import com.binance.api.client.domain.account.Account; import com.binance.api.client.domain.account.AssetBalance; import com.binance.api.client.domain.account.Trade; import com.binance.api.client.exception.BinanceApiException; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; import java.util.ArrayList; -import java.util.HashMap; import java.util.List; /** @@ -24,7 +21,7 @@ public class BinanceManager { private String privateKey; private List balance; - private ArrayList trades; + private ArrayList trades; private List pairSymbolList; public BinanceManager(String publicKey, String privateKey) @@ -102,10 +99,10 @@ public class BinanceManager { } - public List updateTrades(String symbol, String pairSymbol) + public List updateTrades(String symbol, String pairSymbol) { List presentTrades = new ArrayList<>(); - List customTrades = new ArrayList<>(); + List customTrades = new ArrayList<>(); BinanceApiClientFactory factory = BinanceApiClientFactory.newInstance(publicKey, privateKey); BinanceApiRestClient client = factory.newRestClient(); @@ -127,17 +124,17 @@ public class BinanceManager { for(int i = 0; i < presentTrades.size(); i++) { - customTrades.add(new com.nauk.moodl.DataManagers.CurrencyData.Trade(symbol, pairSymbol, presentTrades.get(i))); + customTrades.add(new com.herbron.moodl.DataManagers.CurrencyData.Trade(symbol, pairSymbol, presentTrades.get(i))); } return customTrades; } - public List updateTrades(String symbol, String pairSymbol, long fromId) + public List updateTrades(String symbol, String pairSymbol, long fromId) { List presentTrades = new ArrayList<>(); - List customTrades = new ArrayList<>(); + List customTrades = new ArrayList<>(); BinanceApiClientFactory factory = BinanceApiClientFactory.newInstance(publicKey, privateKey); BinanceApiRestClient client = factory.newRestClient(); @@ -159,7 +156,7 @@ public class BinanceManager { for(int i = 0; i < presentTrades.size(); i++) { - customTrades.add(new com.nauk.moodl.DataManagers.CurrencyData.Trade(symbol, pairSymbol, presentTrades.get(i))); + customTrades.add(new com.herbron.moodl.DataManagers.CurrencyData.Trade(symbol, pairSymbol, presentTrades.get(i))); } return customTrades; @@ -170,7 +167,7 @@ public class BinanceManager { return balance; } - public ArrayList getTrades() + public ArrayList getTrades() { return trades; } diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/ExchangeManager/HitBtcManager.java b/app/src/main/java/com/herbron/moodl/DataManagers/ExchangeManager/HitBtcManager.java similarity index 98% rename from app/src/main/java/com/nauk/moodl/DataManagers/ExchangeManager/HitBtcManager.java rename to app/src/main/java/com/herbron/moodl/DataManagers/ExchangeManager/HitBtcManager.java index d4a0134..b096c7e 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/ExchangeManager/HitBtcManager.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/ExchangeManager/HitBtcManager.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.DataManagers.ExchangeManager; +package com.herbron.moodl.DataManagers.ExchangeManager; import android.util.Base64; import android.util.Log; @@ -10,8 +10,8 @@ import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.JsonArrayRequest; import com.android.volley.toolbox.Volley; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.R; import org.json.JSONArray; import org.json.JSONException; diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/MarketCapManager.java b/app/src/main/java/com/herbron/moodl/DataManagers/MarketCapManager.java similarity index 96% rename from app/src/main/java/com/nauk/moodl/DataManagers/MarketCapManager.java rename to app/src/main/java/com/herbron/moodl/DataManagers/MarketCapManager.java index 0dc783b..9562b04 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/MarketCapManager.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/MarketCapManager.java @@ -1,6 +1,4 @@ -package com.nauk.moodl.DataManagers; - -import android.util.Log; +package com.herbron.moodl.DataManagers; import com.android.volley.Request; import com.android.volley.RequestQueue; @@ -8,18 +6,14 @@ import com.android.volley.Response; import com.android.volley.VolleyError; import com.android.volley.toolbox.StringRequest; import com.android.volley.toolbox.Volley; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; -import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; -import java.math.BigDecimal; import java.util.ArrayList; -import java.util.HashMap; import java.util.Iterator; import java.util.List; -import java.util.regex.Pattern; /** * Created by Guitoune on 02/03/2018. diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/PreferencesManager.java b/app/src/main/java/com/herbron/moodl/DataManagers/PreferencesManager.java similarity index 98% rename from app/src/main/java/com/nauk/moodl/DataManagers/PreferencesManager.java rename to app/src/main/java/com/herbron/moodl/DataManagers/PreferencesManager.java index 9172c06..c5b58c9 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/PreferencesManager.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/PreferencesManager.java @@ -1,8 +1,7 @@ -package com.nauk.moodl.DataManagers; +package com.herbron.moodl.DataManagers; import android.content.SharedPreferences; import android.preference.PreferenceManager; -import android.util.Log; /** * Created by Guitoune on 09/01/2018. diff --git a/app/src/main/java/com/nauk/moodl/DataManagers/WatchlistManager.java b/app/src/main/java/com/herbron/moodl/DataManagers/WatchlistManager.java similarity index 88% rename from app/src/main/java/com/nauk/moodl/DataManagers/WatchlistManager.java rename to app/src/main/java/com/herbron/moodl/DataManagers/WatchlistManager.java index 496343e..b5b5638 100644 --- a/app/src/main/java/com/nauk/moodl/DataManagers/WatchlistManager.java +++ b/app/src/main/java/com/herbron/moodl/DataManagers/WatchlistManager.java @@ -1,8 +1,8 @@ -package com.nauk.moodl.DataManagers; +package com.herbron.moodl.DataManagers; import com.android.volley.RequestQueue; import com.android.volley.toolbox.Volley; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; import java.util.List; diff --git a/app/src/main/java/com/nauk/moodl/DetailsActivityPagerAdapter.java b/app/src/main/java/com/herbron/moodl/DetailsActivityPagerAdapter.java similarity index 63% rename from app/src/main/java/com/nauk/moodl/DetailsActivityPagerAdapter.java rename to app/src/main/java/com/herbron/moodl/DetailsActivityPagerAdapter.java index 410a022..08a5794 100644 --- a/app/src/main/java/com/nauk/moodl/DetailsActivityPagerAdapter.java +++ b/app/src/main/java/com/herbron/moodl/DetailsActivityPagerAdapter.java @@ -1,16 +1,12 @@ -package com.nauk.moodl; +package com.herbron.moodl; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; -import com.nauk.moodl.Activities.DetailsActivityFragments.Home; -import com.nauk.moodl.Activities.DetailsActivityFragments.Informations; -import com.nauk.moodl.Activities.DetailsActivityFragments.Transactions; -import com.nauk.moodl.Activities.HomeActivityFragments.MarketCapitalization; -import com.nauk.moodl.Activities.HomeActivityFragments.Summary; -import com.nauk.moodl.Activities.HomeActivityFragments.Watchlist; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.Activities.DetailsActivityFragments.Home; +import com.herbron.moodl.Activities.DetailsActivityFragments.Informations; +import com.herbron.moodl.Activities.DetailsActivityFragments.Transactions; /** * Created by Tiji on 13/05/2018. diff --git a/app/src/main/java/com/nauk/moodl/FingerprintToolkit/FingerprintDialogFragment.java b/app/src/main/java/com/herbron/moodl/FingerprintToolkit/FingerprintDialogFragment.java similarity index 96% rename from app/src/main/java/com/nauk/moodl/FingerprintToolkit/FingerprintDialogFragment.java rename to app/src/main/java/com/herbron/moodl/FingerprintToolkit/FingerprintDialogFragment.java index 63831cf..da39017 100644 --- a/app/src/main/java/com/nauk/moodl/FingerprintToolkit/FingerprintDialogFragment.java +++ b/app/src/main/java/com/herbron/moodl/FingerprintToolkit/FingerprintDialogFragment.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.FingerprintToolkit; +package com.herbron.moodl.FingerprintToolkit; import android.app.DialogFragment; import android.graphics.PorterDuff; @@ -9,7 +9,7 @@ import android.view.ViewGroup; import android.widget.TextView; import com.mattprecious.swirl.SwirlView; -import com.nauk.moodl.R; +import com.herbron.moodl.R; /** * Created by Guitoune on 28/02/2018. diff --git a/app/src/main/java/com/nauk/moodl/FingerprintToolkit/FingerprintHandler.java b/app/src/main/java/com/herbron/moodl/FingerprintToolkit/FingerprintHandler.java similarity index 98% rename from app/src/main/java/com/nauk/moodl/FingerprintToolkit/FingerprintHandler.java rename to app/src/main/java/com/herbron/moodl/FingerprintToolkit/FingerprintHandler.java index 09e8966..1316587 100644 --- a/app/src/main/java/com/nauk/moodl/FingerprintToolkit/FingerprintHandler.java +++ b/app/src/main/java/com/herbron/moodl/FingerprintToolkit/FingerprintHandler.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.FingerprintToolkit; +package com.herbron.moodl.FingerprintToolkit; import android.Manifest; import android.content.Context; diff --git a/app/src/main/java/com/nauk/moodl/HideBalanceSwitch.java b/app/src/main/java/com/herbron/moodl/HideBalanceSwitch.java similarity index 73% rename from app/src/main/java/com/nauk/moodl/HideBalanceSwitch.java rename to app/src/main/java/com/herbron/moodl/HideBalanceSwitch.java index fce4858..c1c7e1b 100644 --- a/app/src/main/java/com/nauk/moodl/HideBalanceSwitch.java +++ b/app/src/main/java/com/herbron/moodl/HideBalanceSwitch.java @@ -1,4 +1,4 @@ -package com.nauk.moodl; +package com.herbron.moodl; public interface HideBalanceSwitch { diff --git a/app/src/main/java/com/nauk/moodl/HomeActivityPagerAdapter.java b/app/src/main/java/com/herbron/moodl/HomeActivityPagerAdapter.java similarity index 77% rename from app/src/main/java/com/nauk/moodl/HomeActivityPagerAdapter.java rename to app/src/main/java/com/herbron/moodl/HomeActivityPagerAdapter.java index 305bc80..369949e 100644 --- a/app/src/main/java/com/nauk/moodl/HomeActivityPagerAdapter.java +++ b/app/src/main/java/com/herbron/moodl/HomeActivityPagerAdapter.java @@ -1,12 +1,12 @@ -package com.nauk.moodl; +package com.herbron.moodl; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; -import com.nauk.moodl.Activities.HomeActivityFragments.MarketCapitalization; -import com.nauk.moodl.Activities.HomeActivityFragments.Summary; -import com.nauk.moodl.Activities.HomeActivityFragments.Watchlist; +import com.herbron.moodl.Activities.HomeActivityFragments.MarketCapitalization; +import com.herbron.moodl.Activities.HomeActivityFragments.Summary; +import com.herbron.moodl.Activities.HomeActivityFragments.Watchlist; /** * Created by Tiji on 13/04/2018. diff --git a/app/src/main/java/com/nauk/moodl/LayoutManagers/CurrencyListAdapter.java b/app/src/main/java/com/herbron/moodl/LayoutManagers/CurrencyListAdapter.java similarity index 95% rename from app/src/main/java/com/nauk/moodl/LayoutManagers/CurrencyListAdapter.java rename to app/src/main/java/com/herbron/moodl/LayoutManagers/CurrencyListAdapter.java index 802bd68..8c2a134 100644 --- a/app/src/main/java/com/nauk/moodl/LayoutManagers/CurrencyListAdapter.java +++ b/app/src/main/java/com/herbron/moodl/LayoutManagers/CurrencyListAdapter.java @@ -1,19 +1,17 @@ -package com.nauk.moodl.LayoutManagers; +package com.herbron.moodl.LayoutManagers; import android.content.Context; import android.support.annotation.NonNull; -import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.widget.ArrayAdapter; import android.widget.BaseAdapter; import android.widget.Filter; import android.widget.Filterable; import android.widget.TextView; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.R; import java.util.ArrayList; diff --git a/app/src/main/java/com/nauk/moodl/LayoutManagers/CustomPieChart.java b/app/src/main/java/com/herbron/moodl/LayoutManagers/CustomPieChart.java similarity index 93% rename from app/src/main/java/com/nauk/moodl/LayoutManagers/CustomPieChart.java rename to app/src/main/java/com/herbron/moodl/LayoutManagers/CustomPieChart.java index fed6df1..955f447 100644 --- a/app/src/main/java/com/nauk/moodl/LayoutManagers/CustomPieChart.java +++ b/app/src/main/java/com/herbron/moodl/LayoutManagers/CustomPieChart.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.LayoutManagers; +package com.herbron.moodl.LayoutManagers; import android.content.Context; import android.util.AttributeSet; diff --git a/app/src/main/java/com/nauk/moodl/LayoutManagers/CustomViewPager.java b/app/src/main/java/com/herbron/moodl/LayoutManagers/CustomViewPager.java similarity index 95% rename from app/src/main/java/com/nauk/moodl/LayoutManagers/CustomViewPager.java rename to app/src/main/java/com/herbron/moodl/LayoutManagers/CustomViewPager.java index 2bc2506..31d9741 100644 --- a/app/src/main/java/com/nauk/moodl/LayoutManagers/CustomViewPager.java +++ b/app/src/main/java/com/herbron/moodl/LayoutManagers/CustomViewPager.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.LayoutManagers; +package com.herbron.moodl.LayoutManagers; import android.content.Context; import android.support.v4.view.ViewPager; diff --git a/app/src/main/java/com/nauk/moodl/LayoutManagers/OverviewListAdapter.java b/app/src/main/java/com/herbron/moodl/LayoutManagers/OverviewListAdapter.java similarity index 72% rename from app/src/main/java/com/nauk/moodl/LayoutManagers/OverviewListAdapter.java rename to app/src/main/java/com/herbron/moodl/LayoutManagers/OverviewListAdapter.java index b45bf4d..b42e709 100644 --- a/app/src/main/java/com/nauk/moodl/LayoutManagers/OverviewListAdapter.java +++ b/app/src/main/java/com/herbron/moodl/LayoutManagers/OverviewListAdapter.java @@ -1,29 +1,20 @@ -package com.nauk.moodl.LayoutManagers; +package com.herbron.moodl.LayoutManagers; import android.app.Activity; import android.content.Context; import android.support.annotation.NonNull; import android.support.annotation.Nullable; -import android.support.v7.widget.CardView; -import android.util.Log; -import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; -import android.widget.ImageView; import android.widget.LinearLayout; -import android.widget.TextView; -import com.nauk.moodl.DataManagers.CurrencyData.Currency; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyCardview; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDetailsList; -import com.nauk.moodl.PlaceholderManager; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Currency; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyCardview; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDetailsList; import java.util.List; -import static com.nauk.moodl.MoodlBox.numberConformer; - /** * Created by Administrator on 28/05/2018. */ diff --git a/app/src/main/java/com/nauk/moodl/LayoutManagers/TradeListAdapter.java b/app/src/main/java/com/herbron/moodl/LayoutManagers/TradeListAdapter.java similarity index 87% rename from app/src/main/java/com/nauk/moodl/LayoutManagers/TradeListAdapter.java rename to app/src/main/java/com/herbron/moodl/LayoutManagers/TradeListAdapter.java index a216cd0..0aaed58 100644 --- a/app/src/main/java/com/nauk/moodl/LayoutManagers/TradeListAdapter.java +++ b/app/src/main/java/com/herbron/moodl/LayoutManagers/TradeListAdapter.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.LayoutManagers; +package com.herbron.moodl.LayoutManagers; import android.content.Context; import android.support.annotation.NonNull; @@ -9,15 +9,12 @@ import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; -import com.nauk.moodl.DataManagers.CurrencyData.Trade; -import com.nauk.moodl.R; +import com.herbron.moodl.DataManagers.CurrencyData.Trade; +import com.herbron.moodl.R; -import java.text.SimpleDateFormat; import java.util.ArrayList; -import java.util.Date; -import java.util.Locale; -import static com.nauk.moodl.MoodlBox.getDateFromTimestamp; +import static com.herbron.moodl.MoodlBox.getDateFromTimestamp; /** * Created by Guitoune on 24/04/2018. diff --git a/app/src/main/java/com/nauk/moodl/LayoutManagers/TransactionListAdapter.java b/app/src/main/java/com/herbron/moodl/LayoutManagers/TransactionListAdapter.java similarity index 90% rename from app/src/main/java/com/nauk/moodl/LayoutManagers/TransactionListAdapter.java rename to app/src/main/java/com/herbron/moodl/LayoutManagers/TransactionListAdapter.java index 2546242..4bca6cc 100644 --- a/app/src/main/java/com/nauk/moodl/LayoutManagers/TransactionListAdapter.java +++ b/app/src/main/java/com/herbron/moodl/LayoutManagers/TransactionListAdapter.java @@ -1,4 +1,4 @@ -package com.nauk.moodl.LayoutManagers; +package com.herbron.moodl.LayoutManagers; import android.app.Activity; import android.content.Context; @@ -13,17 +13,17 @@ import android.widget.LinearLayout; import android.widget.TextView; import com.daimajia.swipe.SwipeLayout; -import com.nauk.moodl.Activities.RecordTransactionActivity; -import com.nauk.moodl.DataManagers.CurrencyData.Transaction; -import com.nauk.moodl.DataManagers.DatabaseManager; -import com.nauk.moodl.DataManagers.PreferencesManager; -import com.nauk.moodl.R; +import com.herbron.moodl.Activities.RecordTransactionActivity; +import com.herbron.moodl.DataManagers.CurrencyData.Transaction; +import com.herbron.moodl.DataManagers.DatabaseManager; +import com.herbron.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.R; import java.util.ArrayList; -import static com.nauk.moodl.MoodlBox.collapseH; -import static com.nauk.moodl.MoodlBox.getDateFromTimestamp; -import static com.nauk.moodl.MoodlBox.numberConformer; +import static com.herbron.moodl.MoodlBox.collapseH; +import static com.herbron.moodl.MoodlBox.getDateFromTimestamp; +import static com.herbron.moodl.MoodlBox.numberConformer; import static java.lang.Math.abs; /** diff --git a/app/src/main/java/com/nauk/moodl/MoodlBox.java b/app/src/main/java/com/herbron/moodl/MoodlBox.java similarity index 97% rename from app/src/main/java/com/nauk/moodl/MoodlBox.java rename to app/src/main/java/com/herbron/moodl/MoodlBox.java index 44cf5c7..f197405 100644 --- a/app/src/main/java/com/nauk/moodl/MoodlBox.java +++ b/app/src/main/java/com/herbron/moodl/MoodlBox.java @@ -1,4 +1,4 @@ -package com.nauk.moodl; +package com.herbron.moodl; import android.content.Context; import android.content.res.Resources; @@ -11,14 +11,12 @@ import android.view.View; import android.view.animation.Animation; import android.view.animation.Transformation; -import com.nauk.moodl.Activities.HomeActivity; -import com.nauk.moodl.DataManagers.CurrencyData.CurrencyDetailsList; +import com.herbron.moodl.Activities.HomeActivity; +import com.herbron.moodl.DataManagers.CurrencyData.CurrencyDetailsList; import org.json.JSONException; import org.json.JSONObject; -import java.io.File; -import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; diff --git a/app/src/main/java/com/nauk/moodl/PlaceholderManager.java b/app/src/main/java/com/herbron/moodl/PlaceholderManager.java similarity index 98% rename from app/src/main/java/com/nauk/moodl/PlaceholderManager.java rename to app/src/main/java/com/herbron/moodl/PlaceholderManager.java index 07e8f5a..fdf4fb1 100644 --- a/app/src/main/java/com/nauk/moodl/PlaceholderManager.java +++ b/app/src/main/java/com/herbron/moodl/PlaceholderManager.java @@ -1,6 +1,6 @@ -package com.nauk.moodl; +package com.herbron.moodl; -import com.nauk.moodl.DataManagers.PreferencesManager; +import com.herbron.moodl.DataManagers.PreferencesManager; /** * Created by Tiji on 19/04/2018. diff --git a/app/src/main/res/layout/activity_add_currency.xml b/app/src/main/res/layout/activity_add_currency.xml index bdb24c9..f3fe515 100644 --- a/app/src/main/res/layout/activity_add_currency.xml +++ b/app/src/main/res/layout/activity_add_currency.xml @@ -3,7 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - tools:context="com.nauk.moodl.Activities.CurrencySelectionActivity"> + tools:context="com.herbron.moodl.Activities.CurrencySelectionActivity"> + tools:context="com.herbron.moodl.Activities.CurrencyDetailsActivity"> - + tools:context="com.herbron.moodl.Activities.HomeActivity"> + tools:context="com.herbron.moodl.Activities.RecordTransactionActivity"> - diff --git a/app/src/main/res/layout/fragment_summary_homeactivity.xml b/app/src/main/res/layout/fragment_summary_homeactivity.xml index a818a19..6166a67 100644 --- a/app/src/main/res/layout/fragment_summary_homeactivity.xml +++ b/app/src/main/res/layout/fragment_summary_homeactivity.xml @@ -6,7 +6,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:fitsSystemWindows="true" - tools:context="com.nauk.moodl.Activities.HomeActivity"> + tools:context="com.herbron.moodl.Activities.HomeActivity">
diff --git a/app/src/test/java/com/nauk/moodl/ExampleUnitTest.java b/app/src/test/java/com/herbron/moodl/ExampleUnitTest.java similarity index 93% rename from app/src/test/java/com/nauk/moodl/ExampleUnitTest.java rename to app/src/test/java/com/herbron/moodl/ExampleUnitTest.java index 8426b2b..dfb0bbf 100644 --- a/app/src/test/java/com/nauk/moodl/ExampleUnitTest.java +++ b/app/src/test/java/com/herbron/moodl/ExampleUnitTest.java @@ -1,4 +1,4 @@ -package com.nauk.moodl; +package com.herbron.moodl; import org.junit.Test;