Skip to content

Install release and debug version on same device - #2391

Closed
hannesa2 wants to merge 1 commit into
owncloud:masterfrom
hannesa2:specifyDebugName
Closed

hannesa2 wants to merge 1 commit into
owncloud:masterfrom
hannesa2:specifyDebugName

Conversation

@hannesa2

@hannesa2 hannesa2 commented Dec 8, 2018

Copy link
Copy Markdown
Contributor

It's useful when you have production and debug version on same device

@davigonz

Copy link
Copy Markdown
Contributor

Thanks @hannesa2 for this contribution, reviewing it...

Comment thread res/values/setup.xml Resolved
@davigonz

Copy link
Copy Markdown
Contributor

@hannesa2 please have a look at the comments above, thanks!

@hannesa2

Copy link
Copy Markdown
Contributor Author

please mention #2393

Comment thread build.gradle Resolved
Comment thread build.gradle Resolved
@davigonz

Copy link
Copy Markdown
Contributor

A couple of changes here @hannesa2

@hannesa2
hannesa2 force-pushed the specifyDebugName branch 4 times, most recently from 55af907 to 0d32f05 Compare December 19, 2018 18:58
@hannesa2

Copy link
Copy Markdown
Contributor Author

For me it seems all reviews are done

@hannesa2
hannesa2 force-pushed the specifyDebugName branch 3 times, most recently from 1d0796e to 14c4ebc Compare December 27, 2018 21:49
@hannesa2

hannesa2 commented Dec 28, 2018 •

Copy link
Copy Markdown
Contributor Author

I split it into #2408 (only SHA1 in preferences) and this one

1 apply requested changes

by @davigonz

Now it looks like
image

2 fix some lints

image

3 open issue

Please mention #2393 this prevent from a successful install release and debug on one device and let's them running properly. Any hints ?

@hannesa2 hannesa2 changed the title specify debug version by name Install release and debug version on same device Dec 28, 2018
@hannesa2
hannesa2 force-pushed the specifyDebugName branch 5 times, most recently from 04eef09 to 3a19de5 Compare January 15, 2019 18:33
Comment thread owncloudApp/build.gradle Resolved
Comment thread owncloudApp/build.gradle Resolved
Comment thread owncloudApp/release/output.json Resolved
@davigonz

davigonz commented Jan 22, 2019 •

Copy link
Copy Markdown
Contributor

Please @hannesa2 , can you rebase to solve the conflicts and apply the requested changes? After that, I will have a look at what you mentioned in #2393 (comment) to see if we can fix that scenario.

@hannesa2
hannesa2 force-pushed the specifyDebugName branch 3 times, most recently from 39fd39a to ffcc4f5 Compare February 13, 2019 17:55
@jesmrec
jesmrec requested a review from hosy February 19, 2019 13:18
Comment thread owncloudApp/build.gradle Resolved
@michaelstingl

Copy link
Copy Markdown
Contributor

@ChrisEdS could you propose an icon for the debug Android version?

@davigonz

Copy link
Copy Markdown
Contributor

@hannesa2 the code does not compile correctly, the error below appears when building the app.

Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 18 declared in library [androidx.test.uiautomator:uiautomator:2.2.0] /Users/davidgonzalez/.gradle/caches/transforms-1/files-1.1/uiautomator-2.2.0.aar/1736dbec808c8c14847ce0966d82d053/AndroidManifest.xml as the library might be using APIs not available in 15
	Suggestion: use a compatible library with a minSdk of at most 15,
		or increase this project's minSdk version to at least 18,
		or use tools:overrideLibrary="android_libs.ub_uiautomator" to force usage (may lead to runtime failures)

I dealt with this issue when I rebased the new architecture branch with Android X changes, have a look at 05600dc#diff-050758b7ce347d44dcebdfca7601244dR31 to see how I fixed it.

Comment thread owncloudApp/build.gradle Resolved
@hannesa2

Copy link
Copy Markdown
Contributor Author

To build at least Espresso tests I made a separate PR #2457

@davigonz

davigonz commented Feb 21, 2019 •

Copy link
Copy Markdown
Contributor

To build at least Espresso tests I made a separate PR #2457

If you do not apply the fix I described in #2391 (comment) to this branch (specifyDebugName) I cannot continue with it because it does not compile, thanks

@hannesa2

Copy link
Copy Markdown
Contributor Author

When I see this #2457 in multiple PR then it's a separate PR, which should be merged soon and others should rebase

@hannesa2
hannesa2 force-pushed the specifyDebugName branch 2 times, most recently from de2e34c to 1b1042b Compare February 27, 2019 06:31
@davigonz

Copy link
Copy Markdown
Contributor

Now the code compiles but I get the next error when trying to install a release apk when the debug apk is already installed in the device.

adb: failed to install owncloud_2.10.0-beta.1-release.apk: Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.owncloud.android-f6URMtpwKir8DF0Gd5AMFg==: Can't install because provider name org.owncloud.search.users_and_groups (in package com.owncloud.android) is already used by com.owncloud.android.debug]

Having a look at your code it seems you have forgotten to include:

@davigonz davigonz modified the milestones: 2.10.0, 2.11.0 Mar 4, 2019
@hannesa2
hannesa2 force-pushed the specifyDebugName branch 2 times, most recently from a8dab52 to 16e3135 Compare March 9, 2019 06:27
@davigonz

Copy link
Copy Markdown
Contributor

@hannesa2 any update on this? You could have a look at #2391 (comment) and #2393 (comment) to keep working on it.

@hannesa2

Copy link
Copy Markdown
Contributor Author

I don't need this PR any more. I solved this by improve Log view in release version.
I someone else see this really useful, I can open PR again

@hannesa2 hannesa2 closed this Mar 15, 2019
@michaelstingl

Copy link
Copy Markdown
Contributor

@hannesa2 you’re right. No longer a priority /cc @jesmrec @davigonz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants