-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
2,846 additions
and
607 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.example.vladislav.menu" | ||
android:versionCode="1" | ||
android:versionName="0.1.0-alpha"> | ||
android:versionCode="2" | ||
android:versionName="0.5.0-beta"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application | ||
android:name="com.example.vladislav.app.App" | ||
android:allowBackup="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=".MenuActivity" | ||
android:name="com.example.vladislav.screen.menu.MenuActivity" | ||
android:label="@string/app_name" | ||
android:theme="@style/AppTheme.NoActionBar"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
|
||
<activity | ||
android:name="com.example.vladislav.screen.detailscreen.DetailScreenActivity" | ||
android:label="@string/title_activity_detail_screen" /> | ||
<activity android:name="com.example.vladislav.screen.notificationscreen.ICONotificationActivity"/> | ||
|
||
<service | ||
android:name="com.example.vladislav.service.TestFirebaseMessagingService"> | ||
<intent-filter> | ||
<action android:name="com.google.firebase.MESSAGING_EVENT"/> | ||
</intent-filter> | ||
</service> | ||
|
||
<service | ||
android:name="com.example.vladislav.service.TestFirebaseInstanceIdService"> | ||
<intent-filter> | ||
<action android:name="com.google.firebase.INSTANCE_ID_EVENT"/> | ||
</intent-filter> | ||
</service> | ||
|
||
</application> | ||
|
||
</manifest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.example.vladislav.app; | ||
|
||
import android.app.Application; | ||
import android.content.Context; | ||
|
||
/** | ||
* Created by d3m1d0v on 22.03.2018. | ||
*/ | ||
|
||
public class App extends Application { | ||
|
||
private static App INSTANCE; | ||
|
||
public App() { | ||
super(); | ||
|
||
INSTANCE = this; | ||
} | ||
|
||
public static Context getAppContext() { | ||
return INSTANCE.getApplicationContext(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.example.vladislav.app; | ||
|
||
/** | ||
* Created by Isa on 09.03.2018. | ||
*/ | ||
|
||
public class Constant { | ||
//https://developer.android.com/reference/android/util/Log.html | ||
public static final String TAG = "Crypto"; | ||
|
||
public static final String[] CURRENCIES_NAME = { | ||
"BTC", | ||
"ETH", | ||
"LTC", | ||
"XRP", | ||
"BCH", | ||
"TRX", | ||
"ETC", | ||
"EOS", | ||
"NEO", | ||
"XMR", | ||
"DASH", | ||
"XRB", | ||
"HT", | ||
"OMG", | ||
"ZEC", | ||
"ADA", | ||
"BNB", | ||
"ABT*", | ||
"IOT", | ||
"IOST", | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
app/src/main/java/com/example/vladislav/data/CryptoDatabase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.example.vladislav.data; | ||
|
||
import android.arch.persistence.room.Database; | ||
import android.arch.persistence.room.Room; | ||
import android.arch.persistence.room.RoomDatabase; | ||
|
||
import com.example.vladislav.app.App; | ||
|
||
/** | ||
* Created by d3m1d0v on 22.03.2018. | ||
*/ | ||
|
||
@Database(entities = {CurrencyData.class}, version = 3) | ||
public abstract class CryptoDatabase extends RoomDatabase { | ||
|
||
private static CryptoDatabase INSTANCE; | ||
|
||
public abstract CurrencyDataDao currencyDataDao(); | ||
|
||
public static CryptoDatabase getInstance() { | ||
if (INSTANCE == null) { | ||
INSTANCE = Room.databaseBuilder(App.getAppContext(), | ||
CryptoDatabase.class, "Crypto.db") | ||
.fallbackToDestructiveMigration().build(); | ||
} | ||
return INSTANCE; | ||
} | ||
} |
14 changes: 0 additions & 14 deletions
14
app/src/main/java/com/example/vladislav/data/CryptoRepository.java
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
app/src/main/java/com/example/vladislav/data/CurrencyBaseInfo.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.