-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
1 parent
ae4cac2
commit 54304dc
Showing
11 changed files
with
381 additions
and
52 deletions.
There are no files selected for viewing
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,48 @@ | ||
{ | ||
"project_info": { | ||
"project_number": "957309260090", | ||
"firebase_url": "https://clapoutsocial.firebaseio.com", | ||
"project_id": "clapoutsocial", | ||
"storage_bucket": "clapoutsocial.appspot.com" | ||
}, | ||
"client": [ | ||
{ | ||
"client_info": { | ||
"mobilesdk_app_id": "1:957309260090:android:4c0b28fe3e19c793d60003", | ||
"android_client_info": { | ||
"package_name": "com.aravi.dot" | ||
} | ||
}, | ||
"oauth_client": [ | ||
{ | ||
"client_id": "957309260090-4i41f1areom9obbifkj2bduoavo4kqoq.apps.googleusercontent.com", | ||
"client_type": 1, | ||
"android_info": { | ||
"package_name": "com.aravi.dot", | ||
"certificate_hash": "fd2cbfcce4368a6e2264f20857921cd9196d675b" | ||
} | ||
}, | ||
{ | ||
"client_id": "957309260090-f0mo8sm1kva49kepuupk86in153n5ssu.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
], | ||
"api_key": [ | ||
{ | ||
"current_key": "AIzaSyA_FgoC5o4YsU6vji-tEjXovmUzg_ldWzI" | ||
} | ||
], | ||
"services": { | ||
"appinvite_service": { | ||
"other_platform_oauth_client": [ | ||
{ | ||
"client_id": "957309260090-f0mo8sm1kva49kepuupk86in153n5ssu.apps.googleusercontent.com", | ||
"client_type": 3 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
"configuration_version": "1" | ||
} |
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
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
41 changes: 41 additions & 0 deletions
41
app/src/main/java/com/aravi/dot/activities/log/database/LogsDao.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,41 @@ | ||
/* | ||
* Copyright (C) 2021. Aravind Chowdary (@kamaravichow) | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package com.aravi.dot.activities.log.database; | ||
|
||
import androidx.lifecycle.LiveData; | ||
import androidx.room.Dao; | ||
import androidx.room.Insert; | ||
import androidx.room.OnConflictStrategy; | ||
import androidx.room.Query; | ||
|
||
import com.aravi.dot.model.Logs; | ||
|
||
import java.util.List; | ||
|
||
@Dao | ||
public interface LogsDao { | ||
|
||
@Insert(onConflict = OnConflictStrategy.IGNORE) | ||
void insert(Logs logs); | ||
|
||
@Query("DELETE FROM logs_database") | ||
void clearAllLogs(); | ||
|
||
@Query("SELECT * FROM logs_database ORDER BY timestamp DESC") | ||
LiveData<List<Logs>> getOrderedLogs(); | ||
} |
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
Oops, something went wrong.