Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions base/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ dependencies {
//Logging
api 'org.slf4j:slf4j-api:1.7.36'
api 'com.github.tony19:logback-android:2.0.0'
implementation ('net.logstash.logback:logstash-logback-encoder:5.0') {
exclude group: 'ch.qos.logback', module: 'logback-core'
}
//Room
api "androidx.room:room-rxjava2:$room"
api "androidx.room:room-runtime:$room"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 34,
"identityHash": "3a598c80b4a2b71fa6d9d85c139ccf19",
"identityHash": "5e159935e39a27894dd80222509ad820",
"entities": [
{
"tableName": "ping_results",
Expand Down Expand Up @@ -411,7 +411,7 @@
},
{
"tableName": "StaticRegion",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`cityName` TEXT, `countryCode` TEXT, `deviceName` TEXT, `id` INTEGER, `ipId` INTEGER, `name` TEXT, `ovpnX509` TEXT, `serverId` INTEGER, `shortName` TEXT, `staticIp` TEXT, `type` TEXT, `wgIp` TEXT, `wgPubKey` TEXT, `pingHost` TEXT, `passwordEncoded` TEXT, `userNameEncoded` TEXT, `nodecityName` TEXT, `nodednsHostname` TEXT, `nodehostname` TEXT, `nodeip` TEXT, `nodeip2` TEXT, `nodeip3` TEXT, PRIMARY KEY(`id`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`cityName` TEXT, `countryCode` TEXT, `deviceName` TEXT, `id` INTEGER, `ipId` INTEGER, `name` TEXT, `ovpnX509` TEXT, `serverId` INTEGER, `shortName` TEXT, `staticIp` TEXT, `type` TEXT, `wgIp` TEXT, `wgPubKey` TEXT, `pingHost` TEXT, `status` INTEGER, `passwordEncoded` TEXT, `userNameEncoded` TEXT, `nodecityName` TEXT, `nodednsHostname` TEXT, `nodehostname` TEXT, `nodeip` TEXT, `nodeip2` TEXT, `nodeip3` TEXT, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "cityName",
Expand Down Expand Up @@ -497,6 +497,12 @@
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "status",
"columnName": "status",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "credentials.passwordEncoded",
"columnName": "passwordEncoded",
Expand Down Expand Up @@ -739,7 +745,7 @@
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '3a598c80b4a2b71fa6d9d85c139ccf19')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5e159935e39a27894dd80222509ad820')"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 35,
"identityHash": "f84f9d3820d9fab9e07c87398d9e2596",
"identityHash": "5e159935e39a27894dd80222509ad820",
"entities": [
{
"tableName": "ping_results",
Expand All @@ -28,10 +28,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"node_name"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand Down Expand Up @@ -60,10 +60,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"user_name"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand All @@ -86,10 +86,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"user_name"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand Down Expand Up @@ -118,10 +118,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"notification_id"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand Down Expand Up @@ -210,10 +210,10 @@
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"primaryKey"
],
"autoGenerate": true
]
},
"indices": [
{
Expand All @@ -222,14 +222,15 @@
"columnNames": [
"region_id"
],
"orders": [],
"createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Region_region_id` ON `${TABLE_NAME}` (`region_id`)"
}
],
"foreignKeys": []
},
{
"tableName": "City",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`city_id` INTEGER NOT NULL, `nodes` TEXT, `primaryKey` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `region_id` INTEGER NOT NULL, `gps` TEXT, `nick` TEXT, `city` TEXT, `ping_ip` TEXT DEFAULT '', `pro` INTEGER NOT NULL, `wg_pubkey` TEXT, `tz` TEXT, `ovpn_x509` TEXT, `link_speed` TEXT, `health` INTEGER NOT NULL)",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`city_id` INTEGER NOT NULL, `nodes` TEXT, `primaryKey` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `region_id` INTEGER NOT NULL, `gps` TEXT, `health` INTEGER NOT NULL, `link_speed` TEXT, `nick` TEXT, `city` TEXT, `ovpn_x509` TEXT, `ping_ip` TEXT DEFAULT '', `pro` INTEGER NOT NULL, `wg_pubkey` TEXT, `tz` TEXT, `ping_host` TEXT)",
"fields": [
{
"fieldPath": "id",
Expand Down Expand Up @@ -261,6 +262,18 @@
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "health",
"columnName": "health",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "linkSpeed",
"columnName": "link_speed",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "nickName",
"columnName": "nick",
Expand All @@ -273,6 +286,12 @@
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "ovpnX509",
"columnName": "ovpn_x509",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "pingIp",
"columnName": "ping_ip",
Expand All @@ -299,29 +318,17 @@
"notNull": false
},
{
"fieldPath": "ovpnX509",
"columnName": "ovpn_x509",
"fieldPath": "pingHost",
"columnName": "ping_host",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "linkSpeed",
"columnName": "link_speed",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "health",
"columnName": "health",
"affinity": "INTEGER",
"notNull": true
}
],
"primaryKey": {
"autoGenerate": true,
"columnNames": [
"primaryKey"
],
"autoGenerate": true
]
},
"indices": [],
"foreignKeys": []
Expand All @@ -338,17 +345,17 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"favourite_id"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "PingTime",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`static` INTEGER NOT NULL, `ping_time` INTEGER NOT NULL, `ping_id` INTEGER NOT NULL, `isPro` INTEGER NOT NULL, `region_id` INTEGER NOT NULL, PRIMARY KEY(`ping_id`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`static` INTEGER NOT NULL, `ping_time` INTEGER NOT NULL, `ping_id` INTEGER NOT NULL, `isPro` INTEGER NOT NULL, `region_id` INTEGER NOT NULL, `updated_at` INTEGER NOT NULL, `ip` TEXT, PRIMARY KEY(`ping_id`))",
"fields": [
{
"fieldPath": "isStatic",
Expand Down Expand Up @@ -379,20 +386,32 @@
"columnName": "region_id",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "updatedAt",
"columnName": "updated_at",
"affinity": "INTEGER",
"notNull": true
},
{
"fieldPath": "ip",
"columnName": "ip",
"affinity": "TEXT",
"notNull": false
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"ping_id"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
},
{
"tableName": "StaticRegion",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`cityName` TEXT, `countryCode` TEXT, `deviceName` TEXT, `id` INTEGER, `ipId` INTEGER, `name` TEXT, `serverId` INTEGER, `shortName` TEXT, `staticIp` TEXT, `type` TEXT, `wgIp` TEXT, `wgPubKey` TEXT, `ovpnX509` TEXT, `passwordEncoded` TEXT, `userNameEncoded` TEXT, `nodecityName` TEXT, `nodednsHostname` TEXT, `nodehostname` TEXT, `nodeip` TEXT, `nodeip2` TEXT, `nodeip3` TEXT, PRIMARY KEY(`id`))",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`cityName` TEXT, `countryCode` TEXT, `deviceName` TEXT, `id` INTEGER, `ipId` INTEGER, `name` TEXT, `ovpnX509` TEXT, `serverId` INTEGER, `shortName` TEXT, `staticIp` TEXT, `type` TEXT, `wgIp` TEXT, `wgPubKey` TEXT, `pingHost` TEXT, `status` INTEGER, `passwordEncoded` TEXT, `userNameEncoded` TEXT, `nodecityName` TEXT, `nodednsHostname` TEXT, `nodehostname` TEXT, `nodeip` TEXT, `nodeip2` TEXT, `nodeip3` TEXT, PRIMARY KEY(`id`))",
"fields": [
{
"fieldPath": "cityName",
Expand Down Expand Up @@ -430,6 +449,12 @@
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "ovpnX509",
"columnName": "ovpnX509",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "serverId",
"columnName": "serverId",
Expand Down Expand Up @@ -467,11 +492,17 @@
"notNull": false
},
{
"fieldPath": "ovpnX509",
"columnName": "ovpnX509",
"fieldPath": "pingHost",
"columnName": "pingHost",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "status",
"columnName": "status",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "credentials.passwordEncoded",
"columnName": "passwordEncoded",
Expand Down Expand Up @@ -522,10 +553,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand Down Expand Up @@ -566,10 +597,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"networkName"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand Down Expand Up @@ -616,10 +647,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"primary_key"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand Down Expand Up @@ -702,10 +733,10 @@
}
],
"primaryKey": {
"autoGenerate": false,
"columnNames": [
"id"
],
"autoGenerate": false
]
},
"indices": [],
"foreignKeys": []
Expand All @@ -714,7 +745,7 @@
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'f84f9d3820d9fab9e07c87398d9e2596')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '5e159935e39a27894dd80222509ad820')"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class AmazonBillingManager implements PurchasingListener, LifecycleObserv

private final Application app;

private final Logger logger = LoggerFactory.getLogger("Amazon:Billing_m");
private final Logger logger = LoggerFactory.getLogger("billing");

public AmazonBillingManager(Application app) {
this.app = app;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class GoogleBillingManager implements PurchasesUpdatedListener, Lifecycle

private final Application app;

private final Logger logger = LoggerFactory.getLogger("Billing manager");
private final Logger logger = LoggerFactory.getLogger("billing");

// private BillingManagerResponseListener mListener;
private BillingClient mBillingClient;
Expand Down
Loading