Skip to content

Commit d260c81

Browse files
committed
Use offline keyword
1 parent 9f77680 commit d260c81

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

app/build.gradle

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,20 @@ android {
4444
debuggable true
4545

4646
// suffix the app id and the app name with git branch name
47-
def workingBranch = getGitWorkingBranch()
48-
def normalizedWorkingBranch = workingBranch.replaceFirst("^[^A-Za-z]+", "").replaceAll("[^0-9A-Za-z]+", "")
49-
if (normalizedWorkingBranch.isEmpty() || workingBranch == "master" || workingBranch == "dev") {
50-
// default values when branch name could not be determined or is master or dev
51-
applicationIdSuffix ".debug"
52-
resValue "string", "app_name", "NewPipe Debug"
53-
} else {
54-
applicationIdSuffix ".debug." + normalizedWorkingBranch
55-
resValue "string", "app_name", "NewPipe " + workingBranch
56-
archivesBaseName = 'NewPipe_' + normalizedWorkingBranch
57-
}
47+
// def workingBranch = getGitWorkingBranch()
48+
// def normalizedWorkingBranch = workingBranch.replaceFirst("^[^A-Za-z]+", "").replaceAll("[^0-9A-Za-z]+", "")
49+
// if (normalizedWorkingBranch.isEmpty() || workingBranch == "master" || workingBranch == "dev") {
50+
// // default values when branch name could not be determined or is master or dev
51+
// applicationIdSuffix ".debug"
52+
// resValue "string", "app_name", "NewPipe Debug"
53+
// } else {
54+
// applicationIdSuffix ".debug." + normalizedWorkingBranch
55+
// resValue "string", "app_name", "NewPipe " + workingBranch
56+
// archivesBaseName = 'NewPipe_' + normalizedWorkingBranch
57+
// }
58+
applicationIdSuffix ".debug.offline"
59+
resValue "string", "app_name", "Offline NewPipe "
60+
archivesBaseName = 'NewPipe_offline'
5861
}
5962

6063
release {

app/src/androidTest/java/org/schabi/newpipe/database/DatabaseMigrationTest.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ class DatabaseMigrationTest {
322322

323323
@Test
324324
fun migrateDatabaseFrom9to10() {
325-
val databaseInV9 = testHelper.createDatabase(AppDatabase.DATABASE_NAME, Migrations.DB_VER_9)
326-
327325
testHelper.runMigrationsAndValidate(
328326
AppDatabase.DATABASE_NAME, Migrations.DB_VER_9,
329327
true, Migrations.MIGRATION_9_10

0 commit comments

Comments
 (0)