Change remaining old project name/config to PeerTube Live
This commit is contained in:
parent
6eb9be5fe5
commit
6ae948f0cd
|
@ -1 +1 @@
|
|||
Peeriscope
|
||||
Peertube Live
|
|
@ -1,4 +1,4 @@
|
|||
package org.framasoft.peertubelive
|
||||
package fr.mobdev.peertubelive
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
|
@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
|
|||
fun useAppContext() {
|
||||
// Context of the app under test.
|
||||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
|
||||
assertEquals("org.framasoft.peeriscope", appContext.packageName)
|
||||
assertEquals("fr.mobdev.peertubelive", appContext.packageName)
|
||||
}
|
||||
}
|
|
@ -9,7 +9,7 @@ import android.database.sqlite.SQLiteOpenHelper
|
|||
class DatabaseHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, 2) {
|
||||
|
||||
companion object {
|
||||
const val DB_NAME: String = "peeriscope.db"
|
||||
const val DB_NAME: String = "PeerTubeLive.db"
|
||||
const val TABLE_CREDS: String = "Credentials"
|
||||
const val CREDS_USERNAME: String = "Username"
|
||||
const val CREDS_BASE_URL: String = "Instance"
|
||||
|
|
|
@ -146,7 +146,7 @@ class OAuthManager {
|
|||
val registerUrl = URL(url)
|
||||
val connection: HttpURLConnection = registerUrl.openConnection() as HttpURLConnection
|
||||
connection.requestMethod = "GET"
|
||||
connection.setRequestProperty("User-Agent", "Peeriscope")
|
||||
connection.setRequestProperty("User-Agent", message.context.getString(R.string.app_name))
|
||||
connection.setRequestProperty("Content-Type", "application/json")
|
||||
connection.setRequestProperty("Accept", "application/json")
|
||||
connection.doInput = true
|
||||
|
@ -200,7 +200,7 @@ class OAuthManager {
|
|||
val getUserTokenUrl = URL(url)
|
||||
val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection
|
||||
connection.requestMethod = "POST"
|
||||
connection.setRequestProperty("User-Agent", "Peeriscope")
|
||||
connection.setRequestProperty("User-Agent", message.context.getString(R.string.app_name))
|
||||
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded")
|
||||
connection.setRequestProperty("Accept", "application/json")
|
||||
connection.doInput = true
|
||||
|
@ -281,7 +281,7 @@ class OAuthManager {
|
|||
val getUserTokenUrl = URL(url)
|
||||
val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection
|
||||
connection.requestMethod = "POST"
|
||||
connection.setRequestProperty("User-Agent", "Peeriscope")
|
||||
connection.setRequestProperty("User-Agent", message.context.getString(R.string.app_name))
|
||||
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded")
|
||||
connection.setRequestProperty("Accept", "application/json")
|
||||
connection.doInput = true
|
||||
|
@ -359,7 +359,7 @@ class OAuthManager {
|
|||
val data = message.args.getBundle(DATA)!!
|
||||
val connection: HttpURLConnection = postUrl.openConnection() as HttpURLConnection
|
||||
connection.requestMethod = "POST"
|
||||
connection.setRequestProperty("User-Agent", "Peeriscope")
|
||||
connection.setRequestProperty("User-Agent", message.context.getString(R.string.app_name))
|
||||
connection.setRequestProperty("Content-Type", data.getString(CONTENT_TYPE,"application/json"))
|
||||
connection.setRequestProperty("Accept", "application/json")
|
||||
connection.doInput = true
|
||||
|
@ -437,7 +437,7 @@ class OAuthManager {
|
|||
val getUserTokenUrl = URL(url)
|
||||
val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection
|
||||
connection.requestMethod = "GET"
|
||||
connection.setRequestProperty("User-Agent", "Peeriscope")
|
||||
connection.setRequestProperty("User-Agent", message.context.getString(R.string.app_name))
|
||||
connection.setRequestProperty("Content-Type", "application/json")
|
||||
connection.setRequestProperty("Accept", "application/json")
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<resources>
|
||||
<string name="app_name">Peertube Live</string>
|
||||
<string name="app_name">PeerTube Live</string>
|
||||
|
||||
<!-- errors -->
|
||||
<string name="network_error">Aucune connexion internet détecté</string>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package org.framasoft.peertubelive
|
||||
package fr.mobdev.peertubelive
|
||||
|
||||
import org.junit.Test
|
||||
|
||||
|
|
|
@ -3,4 +3,4 @@ include ':rtplibrary'
|
|||
include ':rtmp'
|
||||
include ':encoder'
|
||||
include ':app'
|
||||
rootProject.name = "Peeriscope"
|
||||
rootProject.name = "Peertube Live"
|
Loading…
Reference in New Issue