Skip to content

Commit 8b668e4

Browse files
committed
Build: Automatically migrate to non-transitive r classes
The changes in this commit was automatically applied on triggering the "Refactor" -> "Migration to Non-Transitive R Classes..." migration process via AS.
1 parent 79ae159 commit 8b668e4

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

app/src/androidTest/kotlin/org/wordpress/aztec/demo/pages/EditLinkPage.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import androidx.test.espresso.assertion.ViewAssertions
99
import androidx.test.espresso.matcher.ViewMatchers.withId
1010
import androidx.test.espresso.matcher.ViewMatchers.withText
1111
import org.wordpress.aztec.demo.BasePage
12-
import org.wordpress.aztec.demo.R
1312

1413
class EditLinkPage : BasePage() {
1514

@@ -24,9 +23,9 @@ class EditLinkPage : BasePage() {
2423
get() = onView(withText("Insert link"))
2524

2625
init {
27-
urlField = onView(withId(R.id.linkURL))
28-
nameField = onView(withId(R.id.linkText))
29-
openInNewWindowCheckbox = onView(withId(R.id.openInNewWindow))
26+
urlField = onView(withId(org.wordpress.aztec.R.id.linkURL))
27+
nameField = onView(withId(org.wordpress.aztec.R.id.linkText))
28+
openInNewWindowCheckbox = onView(withId(org.wordpress.aztec.R.id.openInNewWindow))
3029
okButton = onView(withId(android.R.id.button1))
3130
cancelButton = onView(withId(android.R.id.button2))
3231
removeButton = onView(withId(android.R.id.button3))

app/src/androidTest/kotlin/org/wordpress/aztec/demo/pages/EditorPage.kt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,20 @@ class EditorPage : BasePage() {
5858
undoButton = onView(withId(R.id.undo))
5959
redoButton = onView(withId(R.id.redo))
6060

61-
openMediaToolbarButton = onView(withId(R.id.format_bar_button_media_collapsed))
62-
closeMediaToolbarButton = onView(withId(R.id.format_bar_button_media_expanded))
63-
headingButton = onView(withId(R.id.format_bar_button_heading))
64-
listButton = onView(withId(R.id.format_bar_button_list))
65-
quoteButton = onView(withId(R.id.format_bar_button_quote))
66-
boldButton = onView(withId(R.id.format_bar_button_bold))
67-
italicsButton = onView(withId(R.id.format_bar_button_italic))
68-
linkButton = onView(withId(R.id.format_bar_button_link))
69-
underlineButton = onView(withId(R.id.format_bar_button_underline))
70-
strikethroughButton = onView(withId(R.id.format_bar_button_strikethrough))
71-
horizontalRuleButton = onView(withId(R.id.format_bar_button_horizontal_rule))
72-
moreRuleButton = onView(withId(R.id.format_bar_button_more))
73-
pageButton = onView(withId(R.id.format_bar_button_page))
74-
htmlButton = onView(withId(R.id.format_bar_button_html))
61+
openMediaToolbarButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_media_collapsed))
62+
closeMediaToolbarButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_media_expanded))
63+
headingButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_heading))
64+
listButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_list))
65+
quoteButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_quote))
66+
boldButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_bold))
67+
italicsButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_italic))
68+
linkButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_link))
69+
underlineButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_underline))
70+
strikethroughButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_strikethrough))
71+
horizontalRuleButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_horizontal_rule))
72+
moreRuleButton = onView(withId(org.wordpress.aztec.plugins.wpcomments.R.id.format_bar_button_more))
73+
pageButton = onView(withId(org.wordpress.aztec.plugins.wpcomments.R.id.format_bar_button_page))
74+
htmlButton = onView(withId(org.wordpress.aztec.R.id.format_bar_button_html))
7575

7676
photoButton = onView(allOf(withId(android.R.id.title), withText("Photo from device")))
7777
galleryButton = onView(withId(R.id.media_bar_button_gallery))

app/src/main/kotlin/org/wordpress/aztec/demo/MainActivity.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ open class MainActivity : AppCompatActivity(),
489489
aztec.visualEditor.setCalypsoMode(false)
490490
aztec.sourceEditor?.setCalypsoMode(false)
491491

492-
aztec.visualEditor.setBackgroundSpanColor(ContextCompat.getColor(this, R.color.blue_dark))
492+
aztec.visualEditor.setBackgroundSpanColor(ContextCompat.getColor(this, org.wordpress.aztec.R.color.blue_dark))
493493

494494
aztec.sourceEditor?.displayStyledAndFormattedHtml(EXAMPLE)
495495

@@ -704,7 +704,7 @@ open class MainActivity : AppCompatActivity(),
704704
startActivityForResult(intent, REQUEST_MEDIA_PHOTO)
705705
} catch (exception: ActivityNotFoundException) {
706706
AppLog.e(AppLog.T.EDITOR, exception.message)
707-
ToastUtils.showToast(this, getString(R.string.error_chooser_photo), ToastUtils.Duration.LONG)
707+
ToastUtils.showToast(this, getString(org.wordpress.aztec.R.string.error_chooser_photo), ToastUtils.Duration.LONG)
708708
}
709709
}
710710
}
@@ -719,7 +719,7 @@ open class MainActivity : AppCompatActivity(),
719719
startActivityForResult(intent, REQUEST_MEDIA_VIDEO)
720720
} catch (exception: ActivityNotFoundException) {
721721
AppLog.e(AppLog.T.EDITOR, exception.message)
722-
ToastUtils.showToast(this, getString(R.string.error_chooser_video), ToastUtils.Duration.LONG)
722+
ToastUtils.showToast(this, getString(org.wordpress.aztec.R.string.error_chooser_video), ToastUtils.Duration.LONG)
723723
}
724724
}
725725
}
@@ -819,7 +819,7 @@ open class MainActivity : AppCompatActivity(),
819819
val mediaPending = aztec.visualEditor.getAllElementAttributes(uploadingPredicate).isNotEmpty()
820820

821821
if (mediaPending) {
822-
ToastUtils.showToast(this, R.string.media_upload_dialog_message)
822+
ToastUtils.showToast(this, org.wordpress.aztec.R.string.media_upload_dialog_message)
823823
} else {
824824
aztec.toolbar.toggleEditorMode()
825825
}

0 commit comments

Comments
 (0)