Work fork of an Android Jabber client for bridge users git.sr.ht/~singpolyma/cheogram-android
sopranica sgx xmpp jabber
0

Configure Feed

Select the types of activity you want to include in your feed.

startConversation screenshot

Stephen Paul Weber (Mar 14, 2022, 3:02 PM -0500) 2db270cf f1fcaeb3

+12 -5
fastlane/metadata/android/en_US/images/phoneScreenshots/conversation.png

This is a binary file and will not be displayed.

fastlane/metadata/android/en_US/images/phoneScreenshots/startConversation.png

This is a binary file and will not be displayed.

+12 -5
src/androidTest/java/com/cheogram/android/test/ScreenshotTest.java
··· 42 42 import eu.siacs.conversations.services.XmppConnectionService; 43 43 import eu.siacs.conversations.test.R; 44 44 import eu.siacs.conversations.ui.ConversationsActivity; 45 + import eu.siacs.conversations.ui.StartConversationActivity; 45 46 import eu.siacs.conversations.xml.Element; 46 47 import eu.siacs.conversations.xmpp.Jid; 47 48 import eu.siacs.conversations.xmpp.pep.Avatar; ··· 83 84 84 85 Contact cheogram = account.getRoster().getContact(Jid.of("cheogram.com")); 85 86 cheogram.setOption(Contact.Options.IN_ROSTER); 87 + cheogram.setPhotoUri("android.resource://" + pkg + "/" + String.valueOf(R.drawable.cheogram)); 86 88 Presence cheogramPresence = Presence.parse(null, null, ""); 87 89 IqPacket discoPacket = new IqPacket(IqPacket.TYPE.RESULT); 88 90 Element query = discoPacket.addChild("query", "http://jabber.org/protocol/disco#info"); ··· 97 99 public static void teardown() { 98 100 CleanStatusBar.disable(); 99 101 } 100 - 101 - @Rule 102 - public ActivityScenarioRule<ConversationsActivity> activityRule = new ActivityScenarioRule<>(ConversationsActivity.class); 103 102 104 103 @Test 105 - public void testTakeScreenshot() throws FileBackend.FileCopyException, InterruptedException { 104 + public void testConversation() throws FileBackend.FileCopyException, InterruptedException { 106 105 Conversation conversation = xmppConnectionService.findOrCreateConversation(account, Jid.of("+15550737737@cheogram.com"), false, false); 107 106 conversation.getContact().setOption(Contact.Options.IN_ROSTER); 108 107 conversation.getContact().setSystemName("Pepper"); ··· 135 134 new Message(conversation, "👍", 0, Message.STATUS_RECEIVED) 136 135 )); 137 136 138 - ActivityScenario scenario = activityRule.getScenario(); 137 + ActivityScenario scenario = ActivityScenario.launch(ConversationsActivity.class); 139 138 scenario.onActivity((Activity activity) -> { 140 139 ((ConversationsActivity) activity).switchToConversation(conversation); 141 140 }); 142 141 InstrumentationRegistry.getInstrumentation().waitForIdleSync(); 143 142 Thread.sleep(100); // ImageView not paited yet after waitForIdleSync 144 143 Screengrab.screenshot("conversation"); 144 + } 145 + 146 + @Test 147 + public void testStartConversation() throws InterruptedException { 148 + ActivityScenario scenario = ActivityScenario.launch(StartConversationActivity.class); 149 + InstrumentationRegistry.getInstrumentation().waitForIdleSync(); 150 + Thread.sleep(100); // ImageView not paited yet after waitForIdleSync 151 + Screengrab.screenshot("startConversation"); 145 152 } 146 153 }
src/androidTest/res/drawable/cheogram.png

This is a binary file and will not be displayed.