Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

Upgrade the example to Gradle 4.2 and Android plugin 2.3.3 #329

Merged
merged 2 commits into from
Oct 11, 2017
Merged

Upgrade the example to Gradle 4.2 and Android plugin 2.3.3 #329

merged 2 commits into from
Oct 11, 2017

Conversation

sschuberth
Copy link
Contributor

Along with the necessary build system adjustments.

Along with the necessary build system adjustments.
Do not check for the NDK during Gradle configurion phase, otherwise a
simple "gradle tasks" would fail if no NDK is configured. Do the checks
later when the ndkBuild task is actually executed.
@sschuberth
Copy link
Contributor Author

Also, do not check for the NDK during Gradle configurion phase, otherwise a simple "gradle tasks" would fail if no NDK is configured. Do the checks later when the ndkBuild task is actually executed.

@xianwen xianwen self-requested a review September 26, 2017 16:04
@artwyman
Copy link
Contributor

Leaving this to @xianwen to review and merge, but my high-level take is that since this is for the sample app, the risk of any compatibility-breakage is minimal. So long as this works, and depends on GA versions of tools all Android devs are likely to have (i.e. not beta/preview versions) it should be fine.

@artwyman
Copy link
Contributor

@sschuberth looks like our CLA-bot is broken, but it looks like we don't have a record of you signing the Dropbox CLA. Can you please sign it online here? https://opensource.dropbox.com/cla/

@sschuberth
Copy link
Contributor Author

@artwyman That link seems to be dead. (Which might be the reason your CLA bot does not work?)

@artwyman
Copy link
Contributor

Link seems to work for me right now, so maybe there was a temporary issue? Try again, please.

@sschuberth
Copy link
Contributor Author

Still dead for me:

Server not found

Firefox can’t find the server at opensource.dropbox.com.

@sschuberth
Copy link
Contributor Author

Nevermind, seems to be an intranet issue.

@artwyman
Copy link
Contributor

Sadly some companies block Dropbox for security reasons (misguided ones if you ask me :).
Did you manage to get through? I don't see a signature in the back-end yet.

@sschuberth
Copy link
Contributor Author

sschuberth commented Sep 29, 2017

I first need to get the CLA reviewed, which will take some more time, I'm sorry.

@sschuberth
Copy link
Contributor Author

@artwyman I've signed the CLA now!

@artwyman
Copy link
Contributor

Confirmed the CLA, thanks! @xianwen can take it from here.

@xianwen xianwen self-assigned this Oct 4, 2017
@sschuberth
Copy link
Contributor Author

Any update @xianwen?

@xianwen
Copy link

xianwen commented Oct 11, 2017

Sorry for the delay, I'll take a look at it today, and get back to you once I finished the review.
Thanks for your patience.

@@ -1,25 +1,43 @@
#!/usr/bin/env bash
#!/usr/bin/env sh
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please note that this file is automatically created by the Gradle wrapper task. As to why the Gradle devs decided to go for sh, I guess that's for better portability across platforms.


:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
Copy link
Contributor Author

@sschuberth sschuberth Oct 11, 2017

Choose a reason for hiding this comment

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

Please see my comment above, this file is also auto-generated by the wrapper task and thus comes straight from Gradle. Anyway, see gradle/gradle#657 for the details.

Copy link

Choose a reason for hiding this comment

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

Oops, I just removed my comments since I'v figured out that these 2 files are auto-generated.

@xianwen
Copy link

xianwen commented Oct 11, 2017

LGTM, make all passed after testing it on latest master branch

@xianwen xianwen merged commit e675e31 into dropbox:master Oct 11, 2017
@sschuberth sschuberth deleted the upgrade-example-build branch October 11, 2017 15:12
@sschuberth sschuberth mentioned this pull request Nov 27, 2017
xianwen pushed a commit that referenced this pull request Jan 4, 2018
* example: Guard against ndkDir being null at configuration time

This is a follow-up to PR #329.

* example: Upgrade to Android Gradle plugin 3.0.1

Each version of the Android Gradle Plugin now has a default version of the
build tools. The "compile" configuration was renamed to "implementation".

* example: Upgrade to Gradle 4.4.1
mariannegru added a commit to mariannegru/djinni that referenced this pull request Jan 19, 2018
* upstream/master: (54 commits)
  Upgrade example build (dropbox#339)
  Separate `flags` to `enum_flags.djinni` (dropbox#346)
  Add a script to build static fat binary lib. (dropbox#341)
  Upgrade the example to Gradle 4.2 and Android plugin 2.3.3 (dropbox#329)
  Android parcelable support (dropbox#308)
  Add assembly to produce standalone jar. (dropbox#324)
  New "flags" archetype for enums oriented towards bitwise flags (dropbox#323)
  Add Xianwen to contacts
  Fix CFStringEncoding/NSStringEncoding confusion
  Added missing std:: in platform_threads_impl (dropbox#321)
  Avoid unused variable warning when compiling djinni_support.cpp (dropbox#319)
  [Android] Fix Djinni initialization crash in multi shared library case (dropbox#310)
  Fix rsync commands to not update timestamps on unchanged contents
  Swap the README.md change for a CONTRIBUTORS file for attribution.
  Renaming "temp" to "proxy_handle" to make more readable.
  Adding comment to warn of the potential segfault in gcc.
  Making three changes to fix compilation in our environment.
  Make Swift code more idiomatic
  move CMakeLists.txt file to root directory and rename target name to djinni_support_lib
  revert unintended generator change
  ...

# Conflicts:
#	example/generated-src/objc/TXSTextboxListener+Private.mm
#	example/objc/TextSort.xcodeproj/project.pbxproj
#	example/objc/TextSort.xcodeproj/xcshareddata/xcschemes/TextSort.xcscheme
#	src/source/ObjcppGenerator.scala
#	src/source/parser.scala
#	test-suite/djinni/common.djinni
#	test-suite/generated-src/inFileList.txt
#	test-suite/generated-src/objc/DBClientInterface+Private.mm
#	test-suite/generated-src/objc/DBEnumUsageInterface+Private.mm
#	test-suite/generated-src/objc/DBExternInterface2+Private.mm
#	test-suite/generated-src/objc/DBFirstListener+Private.mm
#	test-suite/generated-src/objc/DBObjcOnlyListener+Private.mm
#	test-suite/generated-src/objc/DBSecondListener+Private.mm
#	test-suite/generated-src/objc/DBUserToken+Private.mm
#	test-suite/generated-src/objc/DBUsesSingleLanguageListeners+Private.mm
#	test-suite/generated-src/outFileList.txt
#	test-suite/handwritten-src/java/com/dropbox/djinni/test/AllTests.java
#	test-suite/objc/DjinniObjcTest.xcodeproj/project.pbxproj
KhalilBellakrid pushed a commit to KhalilBellakrid/djinni that referenced this pull request Mar 8, 2018
* Upgrade the example to Gradle 4.2 and Android plugin 2.3.3

Along with the necessary build system adjustments.

* Move the NDK checks to Gradle execution phase

Do not check for the NDK during Gradle configurion phase, otherwise a
simple "gradle tasks" would fail if no NDK is configured. Do the checks
later when the ndkBuild task is actually executed.
KhalilBellakrid pushed a commit to KhalilBellakrid/djinni that referenced this pull request Mar 8, 2018
* example: Guard against ndkDir being null at configuration time

This is a follow-up to PR dropbox#329.

* example: Upgrade to Android Gradle plugin 3.0.1

Each version of the Android Gradle Plugin now has a default version of the
build tools. The "compile" configuration was renamed to "implementation".

* example: Upgrade to Gradle 4.4.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants