Skip to content

Commit

Permalink
Rename folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Agamagsm13 committed Apr 5, 2020
1 parent 88aa448 commit a6d1d1b
Show file tree
Hide file tree
Showing 50 changed files with 139 additions and 151 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
package="com.example.mvvmkotlincoroutineretrofitdemo">
package="com.example.portfolio">

<dist:module dist:instant="true" />

Expand All @@ -16,14 +16,14 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".view.MainActivity">
<activity android:name="com.example.portfolio.view.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".view.RegisterView">
<activity android:name="com.example.portfolio.view.RegisterView">
</activity>
</application>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.example.portfolio.constants

object Colors {
const val WHITE = "#FFFFFF"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.constants
package com.example.portfolio.constants

object Currencies {
val currenciesArray = arrayOf("BTC", "USD", "EUR", "BCH", "RUB", "TRY")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.constants
package com.example.portfolio.constants

object Days {
const val MONTH_IN_SEC = 2592000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.mvvmkotlincoroutineretrofitdemo.interfaces
package com.example.portfolio.interfaces

import com.example.mvvmkotlincoroutineretrofitdemo.model.*
import com.example.portfolio.model.*
import kotlinx.coroutines.Deferred
import retrofit2.Response
import retrofit2.http.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.manager
package com.example.portfolio.manager

import android.view.GestureDetector
import android.view.MotionEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.example.mvvmkotlincoroutineretrofitdemo.manager
package com.example.portfolio.manager

import com.example.mvvmkotlincoroutineretrofitdemo.interfaces.ApiService
import com.example.portfolio.interfaces.ApiService
import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory
import okhttp3.OkHttpClient
import retrofit2.Retrofit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

class LoginBody(username:String,password:String){
var username = username
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

class RegisterBody(email: String, username:String,password:String){
var email = email
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.mvvmkotlincoroutineretrofitdemo.model
package com.example.portfolio.model

import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.Trade
import com.example.mvvmkotlincoroutineretrofitdemo.model.Transaction
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.Trade
import com.example.portfolio.model.Transaction
import java.net.SocketTimeoutException
import java.net.UnknownHostException
import java.time.LocalDateTime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager.transTradesApi
import com.example.mvvmkotlincoroutineretrofitdemo.model.LoginBody
import com.example.portfolio.manager.RetrofitManager.transTradesApi
import com.example.portfolio.model.LoginBody
import java.net.SocketTimeoutException
import java.net.UnknownHostException

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.aachartmodel.aainfographics.AAInfographicsLib.AAChartConfiger.AASeriesElement
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.Rate
import com.example.mvvmkotlincoroutineretrofitdemo.model.Trade
import com.example.mvvmkotlincoroutineretrofitdemo.model.Transaction
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.Rate
import com.example.portfolio.model.Trade
import com.example.portfolio.model.Transaction
import java.math.BigDecimal
import java.net.SocketTimeoutException
import java.net.UnknownHostException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Days
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Days.DAY_IN_SEC
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.Rate
import com.example.mvvmkotlincoroutineretrofitdemo.model.Trade
import com.example.mvvmkotlincoroutineretrofitdemo.model.Transaction
import com.example.portfolio.constants.Days.DAY_IN_SEC
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.Rate
import com.example.portfolio.model.Trade
import com.example.portfolio.model.Transaction
import java.math.BigDecimal
import java.net.SocketTimeoutException
import java.net.UnknownHostException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Days.DAY_IN_SEC
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.Rate
import com.example.mvvmkotlincoroutineretrofitdemo.model.Trade
import com.example.mvvmkotlincoroutineretrofitdemo.model.Transaction
import com.example.portfolio.constants.Days.DAY_IN_SEC
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.Rate
import com.example.portfolio.model.Trade
import com.example.portfolio.model.Transaction
import java.math.BigDecimal
import java.net.SocketTimeoutException
import java.net.UnknownHostException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Days
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.Rate
import com.example.mvvmkotlincoroutineretrofitdemo.model.Trade
import com.example.mvvmkotlincoroutineretrofitdemo.model.Transaction
import com.example.portfolio.constants.Days
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.Rate
import com.example.portfolio.model.Trade
import com.example.portfolio.model.Transaction
import java.math.BigDecimal
import java.net.SocketTimeoutException
import java.net.UnknownHostException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.provider.SyncStateContract
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Days
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager.rateApi
import com.example.mvvmkotlincoroutineretrofitdemo.model.Rate
import com.example.mvvmkotlincoroutineretrofitdemo.model.Transaction
import com.example.portfolio.constants.Days
import com.example.portfolio.manager.RetrofitManager.rateApi
import com.example.portfolio.model.Rate
import com.example.portfolio.model.Transaction
import java.math.BigDecimal
import java.net.SocketTimeoutException
import java.net.UnknownHostException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.RelevantRate
import com.example.mvvmkotlincoroutineretrofitdemo.model.Trade
import com.example.mvvmkotlincoroutineretrofitdemo.model.Transaction
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.RelevantRate
import com.example.portfolio.model.Trade
import com.example.portfolio.model.Transaction
import java.math.BigDecimal
import java.net.SocketTimeoutException
import java.net.UnknownHostException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.Portfolio
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.Portfolio
import java.net.SocketTimeoutException
import java.net.UnknownHostException

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.Rate
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.Rate
import java.net.SocketTimeoutException
import java.net.UnknownHostException

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.RegisterBody
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.RegisterBody
import java.net.SocketTimeoutException
import java.net.UnknownHostException

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager.rateApi
import com.example.mvvmkotlincoroutineretrofitdemo.model.Rate
import com.example.portfolio.manager.RetrofitManager.rateApi
import com.example.portfolio.model.Rate
import java.net.SocketTimeoutException
import java.net.UnknownHostException
import java.util.*

class RepositoryForRelativeRates {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.example.mvvmkotlincoroutineretrofitdemo.repository
package com.example.portfolio.repository

import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.example.mvvmkotlincoroutineretrofitdemo.manager.RetrofitManager
import com.example.mvvmkotlincoroutineretrofitdemo.model.RegisterBody
import com.example.portfolio.manager.RetrofitManager
import com.example.portfolio.model.RegisterBody
import okhttp3.MultipartBody
import okhttp3.RequestBody
import java.net.SocketTimeoutException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
package com.example.mvvmkotlincoroutineretrofitdemo.view
package com.example.portfolio.view


import android.content.Context
import android.graphics.Color
import android.graphics.DashPathEffect
import android.graphics.Typeface
import com.aachartmodel.aainfographics.AAInfographicsLib.AAChartConfiger.*
import com.anychart.AnyChart
import com.example.mvvmkotlincoroutineretrofitdemo.R
import com.example.portfolio.R
import java.math.BigDecimal
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Colors
import com.example.portfolio.constants.Colors
import com.github.mikephil.charting.charts.PieChart
import com.github.mikephil.charting.components.Legend
import com.github.mikephil.charting.components.YAxis
import com.github.mikephil.charting.data.PieData
import com.github.mikephil.charting.data.PieDataSet
import com.github.mikephil.charting.data.PieEntry
import com.github.mikephil.charting.utils.ColorTemplate
import com.github.mikephil.charting.utils.MPPointF
import kotlin.math.abs

class ChartAdapter {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.mvvmkotlincoroutineretrofitdemo.view
package com.example.portfolio.view

import com.aachartmodel.aainfographics.AAInfographicsLib.AAChartConfiger.*
import com.example.mvvmkotlincoroutineretrofitdemo.R
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Colors
import com.example.portfolio.R
import com.example.portfolio.constants.Colors

class ColumnChartAdapter {
fun setColumnChart(aaChartView: AAChartView?, data: Array<AASeriesElement>, year: Int){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.example.mvvmkotlincoroutineretrofitdemo.view
package com.example.portfolio.view

import com.aachartmodel.aainfographics.AAInfographicsLib.AAChartConfiger.*
import com.example.mvvmkotlincoroutineretrofitdemo.R
import com.example.mvvmkotlincoroutineretrofitdemo.constants.Colors
import com.example.portfolio.R
import com.example.portfolio.constants.Colors
import java.math.BigDecimal

class CurBalanceChartAdapter {
Expand Down
Loading

0 comments on commit a6d1d1b

Please sign in to comment.