mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-09 12:01:01 +00:00
1. renamed app package
This commit is contained in:
parent
259aa4cbc8
commit
3c2f20b2fc
@ -8,8 +8,8 @@ android {
|
||||
minSdkVersion 15
|
||||
targetSdkVersion 29
|
||||
|
||||
versionCode 32
|
||||
versionName "2.0.14"
|
||||
versionCode 34
|
||||
versionName "2.0.16"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
setProperty("archivesBaseName", project.getParent().name+"-"+versionName)
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import androidx.test.InstrumentationRegistry
|
||||
import androidx.test.runner.AndroidJUnit4
|
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="io.github.chronosx88.yggdrasil">
|
||||
package="org.yggdrasil.app.crispa">
|
||||
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
|
||||
<application
|
||||
android:name=".YggApplication"
|
||||
android:name="org.yggdrasil.app.crispa.YggApplication"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
@ -17,31 +17,31 @@
|
||||
android:usesCleartextTraffic="true"
|
||||
tools:ignore="GoogleAppIndexingWarning">
|
||||
<activity
|
||||
android:name=".AboutActivity"
|
||||
android:parentActivityName=".MainActivity"
|
||||
android:name="org.yggdrasil.app.crispa.AboutActivity"
|
||||
android:parentActivityName="org.yggdrasil.app.crispa.MainActivity"
|
||||
android:label="@string/title_activity_about"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:screenOrientation="portrait"/>
|
||||
<activity
|
||||
android:name=".PeerListActivity"
|
||||
android:parentActivityName=".MainActivity"
|
||||
android:name="org.yggdrasil.app.crispa.PeerListActivity"
|
||||
android:parentActivityName="org.yggdrasil.app.crispa.MainActivity"
|
||||
android:label="@string/title_activity_peer_list"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:screenOrientation="portrait"/>
|
||||
<activity
|
||||
android:name=".DNSListActivity"
|
||||
android:parentActivityName=".MainActivity"
|
||||
android:name="org.yggdrasil.app.crispa.DNSListActivity"
|
||||
android:parentActivityName="org.yggdrasil.app.crispa.MainActivity"
|
||||
android:label="@string/title_activity_dns_list"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:screenOrientation="portrait"/>
|
||||
<activity
|
||||
android:name=".CopyLocalNodeInfoActivity"
|
||||
android:parentActivityName=".MainActivity"
|
||||
android:name="org.yggdrasil.app.crispa.CopyLocalNodeInfoActivity"
|
||||
android:parentActivityName="org.yggdrasil.app.crispa.MainActivity"
|
||||
android:label="@string/title_activity_copy_local_node_info"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:screenOrientation="portrait"/>
|
||||
<service
|
||||
android:name=".YggdrasilTunService"
|
||||
android:name="org.yggdrasil.app.crispa.YggdrasilTunService"
|
||||
android:stopWithTask="true"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
@ -51,7 +51,7 @@
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
<activity android:name=".MainActivity"
|
||||
<activity android:name="org.yggdrasil.app.crispa.MainActivity"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme.NoActionBar"
|
||||
android:screenOrientation="portrait">
|
||||
|
@ -1,5 +0,0 @@
|
||||
package io.github.chronosx88.yggdrasil.models
|
||||
|
||||
class Status {
|
||||
var up: Boolean = false
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.os.Bundle
|
||||
import android.text.Html
|
@ -1,13 +1,12 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.os.Bundle
|
||||
import android.widget.ListView
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.preference.PreferenceManager
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import io.github.chronosx88.yggdrasil.models.NodeInfo
|
||||
import io.github.chronosx88.yggdrasil.models.config.NodeInfoListAdapter
|
||||
import org.yggdrasil.app.crispa.models.NodeInfo
|
||||
import org.yggdrasil.app.crispa.models.config.NodeInfoListAdapter
|
||||
|
||||
class CopyLocalNodeInfoActivity: AppCompatActivity() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
@ -9,11 +9,11 @@ import android.widget.*
|
||||
import androidx.appcompat.app.AlertDialog
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
import io.github.chronosx88.yggdrasil.models.DNSInfo
|
||||
import io.github.chronosx88.yggdrasil.models.config.SelectDNSInfoListAdapter
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringList2DNSInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.ping
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.serializeDNSInfoSet2StringList
|
||||
import org.yggdrasil.app.crispa.models.DNSInfo
|
||||
import org.yggdrasil.app.crispa.models.config.SelectDNSInfoListAdapter
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringList2DNSInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.ping
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.serializeDNSInfoSet2StringList
|
||||
import kotlinx.coroutines.*
|
||||
import java.net.InetAddress
|
||||
import kotlin.concurrent.thread
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.ActivityManager
|
||||
@ -14,17 +14,17 @@ import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.appcompat.widget.SwitchCompat
|
||||
import androidx.preference.PreferenceManager
|
||||
import dalvik.system.DexFile
|
||||
import io.github.chronosx88.yggdrasil.models.DNSInfo
|
||||
import io.github.chronosx88.yggdrasil.models.PeerInfo
|
||||
import io.github.chronosx88.yggdrasil.models.config.DNSInfoListAdapter
|
||||
import io.github.chronosx88.yggdrasil.models.config.PeerInfoListAdapter
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializePeerStringList2PeerInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringList2DNSInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringList2PeerInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringSet2DNSInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringSet2PeerInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.serializeDNSInfoSet2StringList
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.serializePeerInfoSet2StringList
|
||||
import org.yggdrasil.app.crispa.models.DNSInfo
|
||||
import org.yggdrasil.app.crispa.models.PeerInfo
|
||||
import org.yggdrasil.app.crispa.models.config.DNSInfoListAdapter
|
||||
import org.yggdrasil.app.crispa.models.config.PeerInfoListAdapter
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializePeerStringList2PeerInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringList2DNSInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringList2PeerInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringSet2DNSInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringSet2PeerInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.serializeDNSInfoSet2StringList
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.serializePeerInfoSet2StringList
|
||||
import kotlin.concurrent.thread
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.app.Activity
|
||||
import android.content.Intent
|
||||
@ -21,13 +21,13 @@ import com.hbb20.CCPCountry
|
||||
import com.vincentbrison.openlibraries.android.dualcache.Builder
|
||||
import com.vincentbrison.openlibraries.android.dualcache.SizeOf
|
||||
import com.vincentbrison.openlibraries.android.dualcache.JsonSerializer
|
||||
import io.github.chronosx88.yggdrasil.models.PeerInfo
|
||||
import io.github.chronosx88.yggdrasil.models.Status
|
||||
import io.github.chronosx88.yggdrasil.models.config.DropDownAdapter
|
||||
import io.github.chronosx88.yggdrasil.models.config.SelectPeerInfoListAdapter
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringList2PeerInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.ping
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.serializePeerInfoSet2StringList
|
||||
import org.yggdrasil.app.crispa.models.PeerInfo
|
||||
import org.yggdrasil.app.crispa.models.Status
|
||||
import org.yggdrasil.app.crispa.models.config.DropDownAdapter
|
||||
import org.yggdrasil.app.crispa.models.config.SelectPeerInfoListAdapter
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringList2PeerInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.ping
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.serializePeerInfoSet2StringList
|
||||
import kotlinx.coroutines.*
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.io.FileNotFoundException
|
||||
@ -43,7 +43,7 @@ class PeerListActivity : AppCompatActivity() {
|
||||
|
||||
companion object {
|
||||
const val PEER_LIST = "PEER_LIST"
|
||||
const val PEER_LIST_URL = "xxx"
|
||||
const val PEER_LIST_URL = "http://y4.rivchain.org/rest/peers.json"
|
||||
const val CACHE_NAME = "PEER_LIST_CACHE"
|
||||
const val ONLINE_PEERINFO_LIST = "online_peer_info_list"
|
||||
const val OFFLINE_PEERINFO_LIST = "offline_peer_info_list"
|
@ -1,9 +1,9 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.content.Context
|
||||
import com.google.gson.Gson
|
||||
import config.NodeConfig
|
||||
import io.github.chronosx88.yggdrasil.models.config.Config
|
||||
import org.yggdrasil.app.crispa.models.config.Config
|
||||
import java.io.File
|
||||
|
||||
val gson = Gson()
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
@ -11,7 +11,7 @@ import org.acra.sender.HttpSender
|
||||
class YggApplication : Application() {
|
||||
|
||||
companion object {
|
||||
const val ACRA_BACKEND_URL = "xxx"
|
||||
const val ACRA_BACKEND_URL = "http://acrarium.rivchain.org/acrarium-1.4.6/report"
|
||||
}
|
||||
|
||||
override fun attachBaseContext(base: Context) {
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import android.app.*
|
||||
import android.content.Context
|
||||
@ -14,13 +14,13 @@ import androidx.core.app.NotificationCompat
|
||||
import androidx.preference.PreferenceManager
|
||||
import com.google.gson.Gson
|
||||
import com.google.gson.reflect.TypeToken
|
||||
import io.github.chronosx88.yggdrasil.models.DNSInfo
|
||||
import io.github.chronosx88.yggdrasil.models.PeerInfo
|
||||
import io.github.chronosx88.yggdrasil.models.config.Peer
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.convertPeer2PeerStringList
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.convertPeerInfoSet2PeerIdSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringList2DNSInfoSet
|
||||
import io.github.chronosx88.yggdrasil.models.config.Utils.Companion.deserializeStringList2PeerInfoSet
|
||||
import org.yggdrasil.app.crispa.models.DNSInfo
|
||||
import org.yggdrasil.app.crispa.models.PeerInfo
|
||||
import org.yggdrasil.app.crispa.models.config.Peer
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.convertPeer2PeerStringList
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.convertPeerInfoSet2PeerIdSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringList2DNSInfoSet
|
||||
import org.yggdrasil.app.crispa.models.config.Utils.Companion.deserializeStringList2PeerInfoSet
|
||||
import mobile.Mobile
|
||||
import mobile.Yggdrasil
|
||||
import org.acra.ACRA
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models
|
||||
package org.yggdrasil.app.crispa.models
|
||||
|
||||
import android.content.Context
|
||||
import com.hbb20.CCPCountry
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models
|
||||
package org.yggdrasil.app.crispa.models
|
||||
|
||||
class NodeInfo {
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models
|
||||
package org.yggdrasil.app.crispa.models
|
||||
|
||||
import android.content.Context
|
||||
import com.hbb20.CCPCountry
|
@ -0,0 +1,5 @@
|
||||
package org.yggdrasil.app.crispa.models
|
||||
|
||||
class Status {
|
||||
var up: Boolean = false
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import android.content.Context
|
||||
import android.view.LayoutInflater
|
||||
@ -7,8 +7,8 @@ import android.view.ViewGroup
|
||||
import android.widget.ArrayAdapter
|
||||
import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import io.github.chronosx88.yggdrasil.R
|
||||
import io.github.chronosx88.yggdrasil.models.DNSInfo
|
||||
import org.yggdrasil.app.crispa.R
|
||||
import org.yggdrasil.app.crispa.models.DNSInfo
|
||||
|
||||
|
||||
class DNSInfoListAdapter(
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import android.content.Context
|
||||
import android.view.LayoutInflater
|
||||
@ -11,7 +11,7 @@ import android.widget.AdapterView.OnItemClickListener
|
||||
import android.widget.ArrayAdapter
|
||||
import android.widget.PopupWindow
|
||||
import android.widget.TextView
|
||||
import io.github.chronosx88.yggdrasil.R
|
||||
import org.yggdrasil.app.crispa.R
|
||||
|
||||
|
||||
class DropDownAdapter(
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import android.content.Context
|
||||
import android.net.ConnectivityManager
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import android.content.ClipData
|
||||
import android.content.ClipboardManager
|
||||
@ -9,8 +9,8 @@ import android.view.ViewGroup
|
||||
import android.widget.TextView
|
||||
import android.widget.Toast
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import io.github.chronosx88.yggdrasil.R
|
||||
import io.github.chronosx88.yggdrasil.models.NodeInfo
|
||||
import org.yggdrasil.app.crispa.R
|
||||
import org.yggdrasil.app.crispa.models.NodeInfo
|
||||
|
||||
class NodeInfoListAdapter(private val context: Context, private val infoSet: Array<NodeInfo>) :
|
||||
RecyclerView.Adapter<NodeInfoListAdapter.ViewHolder>() {
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import android.content.Context
|
||||
import android.view.LayoutInflater
|
||||
@ -7,8 +7,8 @@ import android.view.ViewGroup
|
||||
import android.widget.ArrayAdapter
|
||||
import android.widget.ImageView
|
||||
import android.widget.TextView
|
||||
import io.github.chronosx88.yggdrasil.R
|
||||
import io.github.chronosx88.yggdrasil.models.PeerInfo
|
||||
import org.yggdrasil.app.crispa.R
|
||||
import org.yggdrasil.app.crispa.models.PeerInfo
|
||||
|
||||
|
||||
class PeerInfoListAdapter(
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import android.content.ClipData
|
||||
import android.content.ClipboardManager
|
||||
@ -9,8 +9,8 @@ import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.*
|
||||
import io.github.chronosx88.yggdrasil.R
|
||||
import io.github.chronosx88.yggdrasil.models.DNSInfo
|
||||
import org.yggdrasil.app.crispa.R
|
||||
import org.yggdrasil.app.crispa.models.DNSInfo
|
||||
|
||||
class SelectDNSInfoListAdapter(
|
||||
context: Context,
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import android.content.ClipData
|
||||
import android.content.ClipboardManager
|
||||
@ -9,8 +9,8 @@ import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.*
|
||||
import io.github.chronosx88.yggdrasil.R
|
||||
import io.github.chronosx88.yggdrasil.models.PeerInfo
|
||||
import org.yggdrasil.app.crispa.R
|
||||
import org.yggdrasil.app.crispa.models.PeerInfo
|
||||
|
||||
class SelectPeerInfoListAdapter(
|
||||
context: Context,
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
@ -1,8 +1,8 @@
|
||||
package io.github.chronosx88.yggdrasil.models.config
|
||||
package org.yggdrasil.app.crispa.models.config
|
||||
|
||||
import com.google.gson.Gson
|
||||
import io.github.chronosx88.yggdrasil.models.DNSInfo
|
||||
import io.github.chronosx88.yggdrasil.models.PeerInfo
|
||||
import org.yggdrasil.app.crispa.models.DNSInfo
|
||||
import org.yggdrasil.app.crispa.models.PeerInfo
|
||||
import org.acra.ACRA
|
||||
import java.net.InetAddress
|
||||
import java.net.InetSocketAddress
|
@ -1,4 +1,4 @@
|
||||
package io.github.chronosx88.yggdrasil
|
||||
package org.yggdrasil.app.crispa
|
||||
|
||||
import org.junit.Test
|
||||
|
Loading…
Reference in New Issue
Block a user