Skip to content

Commit

Permalink
Merge trunk and resolve conflict in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
zwarm committed Dec 11, 2023
2 parents e88fdf9 + ef73a7f commit abf9f35
Show file tree
Hide file tree
Showing 203 changed files with 5,832 additions and 3,945 deletions.
2 changes: 1 addition & 1 deletion .configure
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"project_name": "WordPress-Android",
"branch": "trunk",
"pinned_hash": "91e71c2268b4df54591ff9cedbfd03ac93ba865d",
"pinned_hash": "715a5a119a334ec1ef16b5a6bd77c52094144813",
"files_to_copy": [
{
"file": "android/WPAndroid/gradle.properties",
Expand Down
Binary file modified .configure-files/gradle.properties.enc
Binary file not shown.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* [*] Block Editor: In the deeply nested block warning, only display the ungroup option for blocks that support it [https://github.com/WordPress/gutenberg/pull/56445]
* [**] Enable Optimize Image setting (via Me → App Settings) by default, and change default compression and resolution values. [https://github.com/wordpress-mobile/WordPress-Android/pull/19581]
* [*] Fixed an issue that prevented theme installation on atomic sites [https://github.com/wordpress-mobile/WordPress-Android/pull/19668]
* [*] Fixed an issue with the pagination of the Blogging Prompts response list [https://github.com/wordpress-mobile/WordPress-Android/pull/19730]

23.7
-----
Expand Down
10 changes: 3 additions & 7 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ android {
buildConfigField "boolean", "ENABLE_DOMAIN_MANAGEMENT_FEATURE", "false"
buildConfigField "boolean", "PLANS_IN_SITE_CREATION", "false"
buildConfigField "boolean", "READER_IMPROVEMENTS", "false"
buildConfigField "boolean", "BLOGANUARY_DASHBOARD_NUDGE", "false"
buildConfigField "boolean", "IN_APP_REVIEWS", "false"

// Override these constants in jetpack product flavor to enable/ disable features
buildConfigField "boolean", "ENABLE_SITE_CREATION", "true"
Expand Down Expand Up @@ -420,14 +422,8 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-process:$androidxLifecycleVersion"
implementation "com.android.volley:volley:$androidVolleyVersion"
implementation "com.google.android.gms:play-services-auth:$googlePlayServicesAuthVersion"
implementation "com.google.android.gms:play-services-code-scanner:$googlePlayServicesCodeScannerVersion"
implementation "com.google.mlkit:barcode-scanning-common:$googleMLKitBarcodeScanningVersion"
implementation "com.google.mlkit:text-recognition:$mlkitTextRecognitionVersion"
implementation "com.google.mlkit:barcode-scanning:$mlkitBarcodeScanningVersion"

// CameraX
implementation "androidx.camera:camera-camera2:$androidxCameraVersion"
implementation "androidx.camera:camera-lifecycle:$androidxCameraVersion"
implementation "androidx.camera:camera-view:$androidxCameraVersion"

implementation "com.android.installreferrer:installreferrer:$androidInstallReferrerVersion"
implementation "com.github.chrisbanes:PhotoView:$chrisbanesPhotoviewVersion"
Expand Down
17 changes: 8 additions & 9 deletions WordPress/jetpack_metadata/PlayStoreStrings.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ msgstr ""
"X-Generator: VsCode\n"
"Project-Id-Version: Jetpack - Apps - Android - Release Notes\n"

msgctxt "release_note_238"
msgid ""
"23.8:\n"
"- Block editor only shows the “ungroup” option for nested blocks that support it.\n"
"- Optimize Images setting uses optimal size and quality by default.\n"
"- Themes install properly for sites on Business and Commerce plans.\n"
msgstr ""

msgctxt "release_note_237"
msgid ""
"23.7:\n"
Expand All @@ -18,15 +26,6 @@ msgid ""
"- We fixed block editor issues caused by pasting deeply nested content, or using text colors in older site themes.\n"
msgstr ""

msgctxt "release_note_236"
msgid ""
"23.6:\n"
"- New domain/plan options and checkout screens in site creation process\n"
"- My Site navigation has links to common sections\n"
"- Inactive social icons and Synced Pattern titles are visible in dark mode for block-based themes\n"
"- Content can be converted into blocks in the Classic editor\n"
msgstr ""

#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
#. translators: Title to be displayed in the Play Store. Limit to 30 characters including spaces and commas!
msgctxt "play_store_app_title"
Expand Down
9 changes: 3 additions & 6 deletions WordPress/jetpack_metadata/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
* [*] [Jetpack-only] Block Editor: Ensure text is always visible within Contact Info block [https://github.com/Automattic/jetpack/pull/33873]
* [*] Block Editor: Ensure uploaded audio is always visible within Audio block [https://github.com/WordPress/gutenberg/pull/55627]
* [*] Block Editor: In the deeply nested block warning, only display the ungroup option for blocks that support it [https://github.com/WordPress/gutenberg/pull/56445]
* [**] Enable Optimize Image setting (via Me → App Settings) by default, and change default compression and resolution values. [https://github.com/wordpress-mobile/WordPress-Android/pull/19581]
* [*] Fixed an issue that prevented theme installation on atomic sites [https://github.com/wordpress-mobile/WordPress-Android/pull/19668]

- Block editor only shows the “ungroup” option for nested blocks that support it.
- Optimize Images setting uses optimal size and quality by default.
- Themes install properly for sites on Business and Commerce plans.
15 changes: 8 additions & 7 deletions WordPress/metadata/PlayStoreStrings.po
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,21 @@ msgstr ""
"X-Generator: VsCode\n"
"Project-Id-Version: Release Notes & Play Store Descriptions\n"

msgctxt "release_note_238"
msgid ""
"23.8:\n"
"- Block editor only shows the “ungroup” option for nested blocks that support it.\n"
"- Optimize Images setting uses optimal size and quality by default.\n"
"- Themes install properly for sites on Business and Commerce plans.\n"
msgstr ""

msgctxt "release_note_237"
msgid ""
"23.7:\n"
"- The Posts & Pages screen now has clean, simple display options. The context menu also lets you access comments, settings, and other actions for a post or page.\n"
"- We fixed block editor issues caused by pasting deeply nested content, or using text colors in older site themes.\n"
msgstr ""

msgctxt "release_note_236"
msgid ""
"23.6:\n"
"- Inactive social icons and Synced Pattern titles are no longer invisible in block-based themes using dark mode. Good try, fellas, but you’re not as ninja as you think.\n"
"- In the Classic editor, you can now convert your content into blocks with the click of a button.\n"
msgstr ""

#. translators: Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
#. translators: Shorter Release notes for this version to be displayed in the Play Store. Limit to 500 characters including spaces and commas!
msgctxt "sample_post_content"
Expand Down
7 changes: 3 additions & 4 deletions WordPress/metadata/release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
* [*] Block Editor: Ensure uploaded audio is always visible within Audio block [https://github.com/WordPress/gutenberg/pull/55627]
* [*] Block Editor: In the deeply nested block warning, only display the ungroup option for blocks that support it [https://github.com/WordPress/gutenberg/pull/56445]
* [**] Enable Optimize Image setting (via Me → App Settings) by default, and change default compression and resolution values. [https://github.com/wordpress-mobile/WordPress-Android/pull/19581]
* [*] Fixed an issue that prevented theme installation on atomic sites [https://github.com/wordpress-mobile/WordPress-Android/pull/19668]
- Block editor only shows the “ungroup” option for nested blocks that support it.
- Optimize Images setting uses optimal size and quality by default.
- Themes install properly for sites on Business and Commerce plans.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package org.wordpress.android.editor.savedinstance

import android.os.Parcelable
import dagger.hilt.android.testing.HiltAndroidTest
import org.junit.Assert.assertArrayEquals
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test

@HiltAndroidTest
class ParcelableObjectTest {
private lateinit var parcelable: Parcelable

@Before
fun setUp() {
parcelable = TestParcelable("testData")
}

@Test
fun testConstructorWithParcelable() {
val parcelableObject = ParcelableObject(parcelable)
val parcelData = parcelableObject.toBytes()
val objectFromParcel = ParcelableObject(parcelData)
assertArrayEquals(objectFromParcel.toBytes(), parcelData)
}

@Test
fun testConstructorWithByteArray() {
val parcelableObject = ParcelableObject(parcelable)
val data = parcelableObject.toBytes()
val parcelableResult = ParcelableObject(data)
assertArrayEquals(parcelableObject.toBytes(), parcelableResult.toBytes())
}

@Test
fun getParcelReturnsTheSameParcelObject() {
val parcelableObject = ParcelableObject(parcelable)
val initialParcel = parcelableObject.getParcel()
val nextParcel = parcelableObject.getParcel()
assertEquals(initialParcel, nextParcel)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package org.wordpress.android.editor.savedinstance

import android.content.Context
import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testing.HiltAndroidTest
import kotlinx.parcelize.parcelableCreator
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Rule
import org.junit.Test
import javax.inject.Inject

@HiltAndroidTest
class SavedInstanceDatabaseTest {
@get:Rule
val hiltRule = HiltAndroidRule(this)

@Inject
lateinit var context: Context

private lateinit var db: SavedInstanceDatabase

@Before
fun setUp() {
hiltRule.inject()
db = SavedInstanceDatabase.getDatabase(context)!!
db.reset(db.writableDatabase)
}

@Test
fun testStoreAndRetrieve() {
val parcelId = "testParcelId"
val parcelData = TestParcelable("testData")
db.addParcel(parcelId, parcelData)
val result = db.getParcel(parcelId, parcelableCreator<TestParcelable>())
assertEquals(parcelData, result)
}

@Test
fun testHasParcel() {
val parcelId = "testParcelId"
val parcelData = TestParcelable("testData")
db.addParcel(parcelId, parcelData)
val result = db.hasParcel(parcelId)
assertTrue(result)
}

@Test
fun testHasNoParcel() {
val parcelId1 = "testParcelId1"
val parcelId2 = "testParcelId2"
val parcelData = TestParcelable("testData")
db.addParcel(parcelId1, parcelData)
val result = db.hasParcel(parcelId2)
assertFalse(result)
}

@Test
fun testNullParcel() {
val parcelId = "testParcelId"
db.addParcel(parcelId, null)
val result = db.hasParcel(parcelId)
assertFalse(result)
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package org.wordpress.android.editor.savedinstance

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

@Parcelize
data class TestParcelable(val data: String) : Parcelable

This file was deleted.

This file was deleted.

Loading

0 comments on commit abf9f35

Please sign in to comment.