[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/fenix][tor-browser-84.0.0b2-10.5-1] 3 commits: Bug 40123: Allow building the instrumented tests apks for variants other than debug



Title: GitLab

Matthew Finkel pushed to branch tor-browser-84.0.0b2-10.5-1 at The Tor Project / Applications / fenix

Commits:

3 changed files:

Changes:

  • app/build.gradle
    ... ... @@ -17,7 +17,16 @@ import org.gradle.internal.logging.text.StyledTextOutputFactory
    17 17
     
    
    18 18
     import static org.gradle.api.tasks.testing.TestResult.ResultType
    
    19 19
     
    
    20
    +def obtainTestBuildType() {
    
    21
    +    def result = "debug";
    
    22
    +    if (project.hasProperty("testBuildType")) {
    
    23
    +        result = project.getProperties().get("testBuildType")
    
    24
    +    }
    
    25
    +    result
    
    26
    +}
    
    27
    +
    
    20 28
     android {
    
    29
    +    testBuildType obtainTestBuildType()
    
    21 30
         compileSdkVersion Config.compileSdkVersion
    
    22 31
         defaultConfig {
    
    23 32
             applicationId "org.torproject"
    

  • app/proguard-rules.pro
    ... ... @@ -119,4 +119,7 @@
    119 119
     
    
    120 120
     # Keep Android Lifecycle methods
    
    121 121
     # https://bugzilla.mozilla.org/show_bug.cgi?id=1596302
    
    122
    --keep class androidx.lifecycle.** { *; }
    \ No newline at end of file
    122
    +-keep class androidx.lifecycle.** { *; }
    
    123
    +
    
    124
    +# Workaround for 'already has mapping' r8 issue (https://issuetracker.google.com/issues/140851070)
    
    125
    +-keep class com.google.android.gms.common.internal.BaseGmsClient { *; }
    \ No newline at end of file

  • app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuAboutRobot.kt
    ... ... @@ -107,8 +107,8 @@ private fun assertVersionNumber() {
    107 107
     }
    
    108 108
     
    
    109 109
     private fun assertProductCompany() {
    
    110
    -    onView(withId(R.id.tor_about_content))
    
    111
    -        .check(matches(withText(containsString("Firefox Preview is produced by the Tor Project."))))
    
    110
    +    onView(withId(R.id.about_content))
    
    111
    +        .check(matches(withText(containsString("Tor Browser Nightly is produced by the Tor Project, a U.S.-based 501(c)(3) nonprofit."))))
    
    112 112
     }
    
    113 113
     
    
    114 114
     private fun assertCurrentTimestamp() {
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits