Change remaining old project name/config to PeerTube Live

This commit is contained in:
Anthony Chomienne 2021-07-07 17:24:56 +02:00
parent 6eb9be5fe5
commit 6ae948f0cd
7 changed files with 12 additions and 12 deletions

View File

@ -1 +1 @@
Peeriscope Peertube Live

View File

@ -1,4 +1,4 @@
package org.framasoft.peertubelive package fr.mobdev.peertubelive
import androidx.test.platform.app.InstrumentationRegistry import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.ext.junit.runners.AndroidJUnit4
@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() { fun useAppContext() {
// Context of the app under test. // Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("org.framasoft.peeriscope", appContext.packageName) assertEquals("fr.mobdev.peertubelive", appContext.packageName)
} }
} }

View File

@ -9,7 +9,7 @@ import android.database.sqlite.SQLiteOpenHelper
class DatabaseHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, 2) { class DatabaseHelper(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, 2) {
companion object { companion object {
const val DB_NAME: String = "peeriscope.db" const val DB_NAME: String = "PeerTubeLive.db"
const val TABLE_CREDS: String = "Credentials" const val TABLE_CREDS: String = "Credentials"
const val CREDS_USERNAME: String = "Username" const val CREDS_USERNAME: String = "Username"
const val CREDS_BASE_URL: String = "Instance" const val CREDS_BASE_URL: String = "Instance"

View File

@ -146,7 +146,7 @@ class OAuthManager {
val registerUrl = URL(url) val registerUrl = URL(url)
val connection: HttpURLConnection = registerUrl.openConnection() as HttpURLConnection val connection: HttpURLConnection = registerUrl.openConnection() as HttpURLConnection
connection.requestMethod = "GET" 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("Content-Type", "application/json")
connection.setRequestProperty("Accept", "application/json") connection.setRequestProperty("Accept", "application/json")
connection.doInput = true connection.doInput = true
@ -200,7 +200,7 @@ class OAuthManager {
val getUserTokenUrl = URL(url) val getUserTokenUrl = URL(url)
val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection
connection.requestMethod = "POST" 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("Content-Type", "application/x-www-form-urlencoded")
connection.setRequestProperty("Accept", "application/json") connection.setRequestProperty("Accept", "application/json")
connection.doInput = true connection.doInput = true
@ -281,7 +281,7 @@ class OAuthManager {
val getUserTokenUrl = URL(url) val getUserTokenUrl = URL(url)
val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection
connection.requestMethod = "POST" 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("Content-Type", "application/x-www-form-urlencoded")
connection.setRequestProperty("Accept", "application/json") connection.setRequestProperty("Accept", "application/json")
connection.doInput = true connection.doInput = true
@ -359,7 +359,7 @@ class OAuthManager {
val data = message.args.getBundle(DATA)!! val data = message.args.getBundle(DATA)!!
val connection: HttpURLConnection = postUrl.openConnection() as HttpURLConnection val connection: HttpURLConnection = postUrl.openConnection() as HttpURLConnection
connection.requestMethod = "POST" 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("Content-Type", data.getString(CONTENT_TYPE,"application/json"))
connection.setRequestProperty("Accept", "application/json") connection.setRequestProperty("Accept", "application/json")
connection.doInput = true connection.doInput = true
@ -437,7 +437,7 @@ class OAuthManager {
val getUserTokenUrl = URL(url) val getUserTokenUrl = URL(url)
val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection val connection: HttpURLConnection = getUserTokenUrl.openConnection() as HttpURLConnection
connection.requestMethod = "GET" 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("Content-Type", "application/json")
connection.setRequestProperty("Accept", "application/json") connection.setRequestProperty("Accept", "application/json")

View File

@ -1,5 +1,5 @@
<resources> <resources>
<string name="app_name">Peertube Live</string> <string name="app_name">PeerTube Live</string>
<!-- errors --> <!-- errors -->
<string name="network_error">Aucune connexion internet détecté</string> <string name="network_error">Aucune connexion internet détecté</string>

View File

@ -1,4 +1,4 @@
package org.framasoft.peertubelive package fr.mobdev.peertubelive
import org.junit.Test import org.junit.Test

View File

@ -3,4 +3,4 @@ include ':rtplibrary'
include ':rtmp' include ':rtmp'
include ':encoder' include ':encoder'
include ':app' include ':app'
rootProject.name = "Peeriscope" rootProject.name = "Peertube Live"