Skip to content

Remove eclipse - #2076

Merged
davigonz merged 6 commits into
owncloud:masterfrom
hannesa2:RemoveEclipse
Dec 18, 2018
Merged

davigonz merged 6 commits into
owncloud:masterfrom
hannesa2:RemoveEclipse

Conversation

@hannesa2

@hannesa2 hannesa2 commented Dec 17, 2017 •

Copy link
Copy Markdown
Contributor

I changed my commit mail address, hopefully it works now.

It's related to #2044 Here I will see, if it makes sense to make more afford to improve this app. Much more can be done to remove old Eclipse.
Additionally I updated Gradle build tools and do not support older versions

With this, all older PR will have issues and would need a probably rebase.

Needs owncloud/android-library#180

@jesmrec

jesmrec commented Dec 18, 2017

Copy link
Copy Markdown
Member

thanks for your contribution!! we will review and check this PR in order to know in which version can be included. 2.5.1 is pretty advanced, but next one can be an optimal posibility.

@hannesa2

Copy link
Copy Markdown
Contributor Author

Please don't wait too long, because after one day I've the first conflict and with each day, it will increase the chance to be a dead PR like a lot of others.

Tell me, when you are ready to approve it and I will rebase it once

@davigonz

davigonz commented Jan 9, 2018 •

Copy link
Copy Markdown
Contributor

Hi @hannesa2 , thank you for your PR. We are currently focused on 2.5.1 release. Are you going to include more changes or you have finished here? Review it will take some time since there are a lot of changes.

@hannesa2

hannesa2 commented Jan 9, 2018

Copy link
Copy Markdown
Contributor Author

@davigonz currently not. Because of restructure folders, I want to keep it like it is to not delay a merge

@theScrabi

Copy link
Copy Markdown
Contributor

This will add a new project sturcture to our repository. We can't just merge it since that would ultimately brake all our current PR. Since this PR is also to old for what it is trying to do I'm going to close this.

@theScrabi theScrabi closed this Apr 9, 2018
@hannesa2

Copy link
Copy Markdown
Contributor Author

So you will stay with Eclipse for ever, congrats !
And the other thing was told on Dec 18, 2017

@theScrabi

Copy link
Copy Markdown
Contributor

No :D there are plans to get rid of it.

@hannesa2

hannesa2 commented Dec 7, 2018

Copy link
Copy Markdown
Contributor Author

first we should finish owncloud/android-library#180 then I put afford into this topic

@jesmrec

jesmrec commented Dec 10, 2018

Copy link
Copy Markdown
Member

will work on this very soon...

@jesmrec

jesmrec commented Dec 13, 2018 •

Copy link
Copy Markdown
Member

To test the current issue:

  • App builds in debug mode
  • App builds in release mode
  • Smoke test: not really needed, just in case):
    • Authentication
    • Browse
    • Upload
    • Download
    • Sharing
    • Basic ops: remove, delete, move, copy, create folder

@davigonz

Copy link
Copy Markdown
Contributor

@hannesa2 please rebase and solve the conflicts here so we can move it forward as well

@hannesa2

Copy link
Copy Markdown
Contributor Author

I can do, but are you really really sure to do it now ?
There are 50 open PR's , the less open are there the less pain all of them have.
I recommend to merge all which are merge able in advance !

@jesmrec @davigonz please confirm, when I should do it. Please trigger me again, now or later

@hannesa2

hannesa2 commented Dec 14, 2018 •

Copy link
Copy Markdown
Contributor Author

Now only app and oc_jb_workaround are Eclipse-free, but to be honest I would delete oc_jb_workaround I guess it's for 0,01 % of user and who still needs this credentials-lost-something is > 0,00001 %

tests and automationTest needs some extra work. Are they still used ?

@michaelstingl

Copy link
Copy Markdown
Contributor

@davigonz @jesmrec drop oc_jb_workaround for 2.10/3.0 ?

@davigonz

Copy link
Copy Markdown
Contributor

drop oc_jb_workaround for 2.10/3.0 ?

Yes, this is something we have in mind from time ago, we could drop oc_jb_workaround from our code since has not been recently updated but still keep it in the PlayStore in case someone needs it, but without releasing new versions anymore. What do you think?

@davigonz

davigonz commented Dec 17, 2018 •

Copy link
Copy Markdown
Contributor

I can do, but are you really really sure to do it now ?
There are 50 open PR's , the less open are there the less pain all of them have.

@hannesa2 Well, this structural change is something we can not delay more and the 50 open PRs are not going to be merged before for sure, we will define a strategy about what to do with them. I will take care of other pending PRs, helping the contributors to rebase since the contributions incoming never stops and we cannot wait infinitely.

Comment thread app/build.gradle Outdated

dependencies {
/// dependencies for app building
implementation project(':owncloud-android-library:owncloud-android-library')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this duplicated name correct? It provokes the next change in the project structure

screenshot 2018-12-17 at 12 10 13

@davigonz davigonz Dec 17, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, we have already discussed about this topic in the library PR - owncloud/android-library#180 (comment) - and maybe we have not understood properly each other.

Since in the app we are going to have app module, if we are consistent with the naming, we should use lib instead of owncloud-android-library as the library module name.

I thought we were going to miss owncloud-android-library name but it will be used anyway in the apps using the library by including include ':owncloud-android-library:lib

I will update this in the library, no worries. Done, please update the library reference to the latest one in master and replace ':owncloud-android-library:owncloud-android-library' with ':owncloud-android-library:lib' where needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You already did it.
This would be my recommendation

image

and this is the diff
image

return mClient;
}
/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this file and others like AuthenticatorActivity & AccountUtils detected as X additions and X deletions instead of File renamed without changes , as most of the files here? I do not see any change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it was a tab/space issue. The only significant change is no new line at end of file.
I simply moved files via drag/drop and don't touch any file here, to keep the focus only on restructure. Android Studio did this automatically.
A main issue is the missing automatic applied code format (next future step)

@davigonz

Copy link
Copy Markdown
Contributor

@hannesa2 please have a look at the requested changes and in addition, reinclude com.owncloud packages before android to avoid the next error, same as we did with the library.

screenshot 2018-12-17 at 12 30 15

@hannesa2

Copy link
Copy Markdown
Contributor Author

missing packages

Same issue like in lib: During move of all classes, Android Studio removes all technical-not-needed packages. And I didn't saw it the second time. Thanks for finding

rebase

Git is so smart, when you rebase an older PR to new structure, git applied all on the right way. I tested it in lib

@hannesa2

Copy link
Copy Markdown
Contributor Author

@davigonz I applied all review notes

@hannesa2

hannesa2 commented Dec 18, 2018 •

Copy link
Copy Markdown
Contributor Author

Can someone fix this ?
image

#2401

@davigonz

davigonz commented Dec 18, 2018 •

Copy link
Copy Markdown
Contributor

@hannesa2 what is android.enableAapt2=false used for?
I see The option 'android.enableAapt2' is deprecated and should not be used anymore. Use 'android.enableAapt2=true' to remove this warning. It will be removed at the end of 2018.. warning

@davigonz

Copy link
Copy Markdown
Contributor

what is android.enableAapt2=false used for?
I see The option 'android.enableAapt2' is deprecated and should not be used anymore. Use 'android.enableAapt2=true' to remove this warning. It will be removed at the end of 2018.. warning

@hannesa2 I have checked the documentation and it seems to be used when there's some problems when compiling the app but I have not noticed anything, can we remove that line then?

Comment thread build.gradle Outdated
setOutputFileName(variant, appName, project)
}
}

// Updates output file names of a given variant to format

@davigonz davigonz Dec 18, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hannesa2 The method setOutputFileName is not being used in here, please delete it

Comment thread app/build.gradle
// @param callerProject Caller project.

def setOutputFileName(variant, appName, callerProject) {
logger.info("Setting new name for output of variant $variant.name")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have to rethink this method since the apk generated is called app_2.9.3-debug.apk and it should include owncloud or whatever branded name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are more smarter options:
Currently it's 2.9.3

contain SHA1 ?
remove at last last .3 and replace with commit count ?
who needs this 2.9 ? simply auto generated year_month , eg 18_12.3456-a3ff47 ?

My recommendation: do it in an other commit

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like System.env.OC_APP_NAME is not available

@hannesa2

Copy link
Copy Markdown
Contributor Author

android.enableAapt2=true it is a relict from 2017. Now it's obsolete. I will remove

@hannesa2

Copy link
Copy Markdown
Contributor Author

btw if this org.gradle.jvmargs=-Xmx1536M is necessary, I'm not sure

@davigonz

davigonz commented Dec 18, 2018 •

Copy link
Copy Markdown
Contributor

btw if this org.gradle.jvmargs=-Xmx1536M is necessary, I'm not sure

Yes, let's keep it by now

@hannesa2

hannesa2 commented Dec 18, 2018 •

Copy link
Copy Markdown
Contributor Author

review changes added:

  • remove outdated gradle switch
  • remove dead gradle function
  • add per default Ownclud in apk name

now it's

image

@davigonz
davigonz merged commit d7091c3 into owncloud:master Dec 18, 2018
@davigonz

davigonz commented Dec 18, 2018 •

Copy link
Copy Markdown
Contributor

Basic tests performed @jesmrec , everything worked as expected.

Thanks a lot for this contribution @hannesa2 , now everyone can continue with more interesting stuff

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants