Skip to content

Commit

Permalink
fix: contributing.md JDK version required
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed May 4, 2022
1 parent 73fe08c commit 5474694
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Contributing to sentry-java

We love pull requests from everyone.
We love pull requests from everyone.
We suggest opening an issue to discuss bigger changes before investing on a big PR.

# Requirements

The project currently requires you run JDK version `1.8.x`.
The project currently requires you run JDK 11.

## Android
## Android

This repository is a monorepo which includes Java and Android libraries.
If you'd like to contribute to Java and don't have an Android SDK with NDK installed,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,18 +231,21 @@ static void applyMetadata(
options.setProguardUuid(
readString(metadata, logger, PROGUARD_UUID, options.getProguardUuid()));

SdkVersion sdkVersion = options.getSdkVersion();
Objects.requireNonNull(sdkVersion, "Property options.sdkVersion must not be null.");
final String sdkVersionName = readString(metadata, logger, SDK_NAME, sdkVersion.getName());
if (sdkVersionName != null) {
sdkVersion.setName(sdkVersionName);
}
final String sdkVersionVersion =
readString(metadata, logger, SDK_VERSION, sdkVersion.getVersion());
if (sdkVersionVersion != null) {
sdkVersion.setVersion(sdkVersionVersion);
SdkVersion sdkInfo = options.getSdkVersion();
if (sdkInfo != null) {
final String sdkName = readString(metadata, logger, SDK_NAME, sdkInfo.getName());
if (sdkName != null) {
sdkInfo.setName(sdkName);
}
final String sdkVersion = readString(metadata, logger, SDK_VERSION, sdkInfo.getVersion());
if (sdkVersion != null) {
sdkInfo.setVersion(sdkVersion);
}
options.setSdkVersion(sdkInfo);
} else {
// Should always be set by the Options constructor but let's error out if that changes.
Objects.requireNonNull(sdkInfo, "Property options.sdkVersion must not be null.");
}
options.setSdkVersion(sdkVersion);
}

options
Expand Down

0 comments on commit 5474694

Please sign in to comment.