Skip to content

Trying to fix issue #72 - Targeting Android 28, with Android Studio 3.2.1 #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 29, 2018

Conversation

yos1p
Copy link
Contributor

@yos1p yos1p commented Oct 12, 2018

Fixes #72

@samtstern
Copy link
Contributor

I have not reviewed this for functionality in here, but there's nothing malicious.
/ok-to-test

@ashwinraghav
Copy link
Contributor

/retest

@yos1p
Copy link
Contributor Author

yos1p commented Oct 17, 2018

I do find the test failures a bit unexpected. I have tested them all locally and all was good.

Is there any way I can do check, smoke-tests-debug, smoke-tests-release locally?

@yos1p
Copy link
Contributor Author

yos1p commented Oct 19, 2018

/retest

1 similar comment
@yos1p
Copy link
Contributor Author

yos1p commented Oct 19, 2018

/retest

@yos1p
Copy link
Contributor Author

yos1p commented Oct 19, 2018

Finally it went through.
@samtstern what do you think of this PR?

@@ -98,7 +98,7 @@ class LicenseResolverPlugin implements Plugin<Project> {

// must run before preBuild, otherwise it produces an empty license report.
project.tasks.getByName('preBuild').mustRunAfter licensesTask
project.tasks.getByName("bundle${variantName}") {
project.tasks.getByName("bundle${variantName}Aar") {
Copy link
Contributor

Choose a reason for hiding this comment

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

@ashwinraghav can you sanity check this?
@iamyaoxi can you explain this change? Is this something to do with the newer gradle plugin?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I think it's related to the newer Gradle plugin. I tried to use bundle${variantName} task, it always failing. And I read it's already replaced with bundleAar

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I opened (but already closed) issue #71
The error was: Task with name 'bundleRelease' not found in project ':firebase-common'

@@ -45,8 +46,8 @@ android {
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility 1.8
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason not to use JavaVersion constants?

defaultConfig {
minSdkVersion 14
}
buildTypes {
Copy link
Contributor

Choose a reason for hiding this comment

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

These lines look a little suspicious:

  • Do we need the empty sourceSets?
  • Shouldn't the compileOptions be inherited?
  • I don't think we want useProguard true anymore, we're not proguarding these SDKs going forward. Or is that only needed to pass forward the consumerProguardFiles?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • compileOptions is not inherited. It always failed when I didn't set it to Java 8.
  • I only follow pattern of other projects for the use of useProguard true. So should we remove it, as well in other projects?

Copy link
Contributor

Choose a reason for hiding this comment

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

- Remove useProguard true, as we want to opensource the SDK
- Remove empty source sets
- Use gradle 4.10.2, to anticipate network error and reduce build time
@yos1p
Copy link
Contributor Author

yos1p commented Oct 20, 2018

I find it weird for it to fail on something different. Try again.

/retest

Copy link
Contributor

@ashwinraghav ashwinraghav left a comment

Choose a reason for hiding this comment

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

Thank you for the submission and waiting on the review patiently 😃

- Test apps are not using Java 8
- firebase-database-collection minSdkVersion revert to 9
- protolite-well-known-types indent & reformat
@yos1p
Copy link
Contributor Author

yos1p commented Oct 27, 2018

/retest

Copy link
Contributor

@ashwinraghav ashwinraghav left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution and nice work :)

@ashwinraghav ashwinraghav merged commit 8ccb305 into firebase:master Oct 29, 2018
@samtstern
Copy link
Contributor

@iamyaoxi thanks for all the hard work and patience!

@yos1p
Copy link
Contributor Author

yos1p commented Oct 30, 2018

Thank you @samtstern and @ashwinraghav

I'll do my best to keep on contributing, and hopefully can give more meaningful contributions! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to Android 28
4 participants