Skip to content
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

Merge upstream into fork #1

Merged
merged 59 commits into from
Aug 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
22028b4
Working around ndk paths containing spaces in it (#445)
mganandraj Jun 11, 2020
fdeb6d2
Fix -[RCTDynamicColor effectiveColor] being called off UI thread (#438)
tido64 Jun 11, 2020
9a4e56c
Applying package update to 0.61.40 ***NO_CI***
rnbot Jun 11, 2020
fc68d2e
Merge branch 'publish-temp-1591894497253'
rnbot Jun 11, 2020
1e5eabd
Adds AccessibilityInfo.isScreenReaderEnabled to RN MacOS (#444)
graytmatterMS Jun 11, 2020
929b57c
Applying package update to 0.61.41 ***NO_CI***
rnbot Jun 11, 2020
33c5b49
Enabling AccessibilityInfo.setAccessibilityFocus for MacOS (#450)
graytmatterMS Jun 16, 2020
77c048f
Applying package update to 0.61.42 ***NO_CI***
rnbot Jun 16, 2020
8b6a438
Fix styling of single-line TextInput (#449)
tido64 Jun 16, 2020
b3543bd
Fix exception thrown when unfocusing multiline TextInput (#441)
tido64 Jun 16, 2020
3da0d32
Applying package update to 0.61.43 ***NO_CI***
rnbot Jun 16, 2020
06db930
Fix ActivityIndicator with custom color causing brief flicker (#446)
tido64 Jun 17, 2020
2e1f262
Applying package update to 0.61.44 ***NO_CI***
rnbot Jun 17, 2020
8481328
Fix onSubmitEditing firing on delete/tab (#442)
tido64 Jun 17, 2020
8dc7d97
Applying package update to 0.61.45 ***NO_CI***
rnbot Jun 17, 2020
2897f37
Fix `backgroundColor` not being applied to correctly to TextInput (#443)
tido64 Jun 17, 2020
5d986bd
Applying package update to 0.61.46 ***NO_CI***
rnbot Jun 17, 2020
86e3855
Switching the build pipleine to run on Ubuntu image (#456)
mganandraj Jun 18, 2020
c896fef
Applying package update to 0.61.47 ***NO_CI***
rnbot Jun 18, 2020
84f277a
Implementing AccessibilityInfo.DisplayOptions ex: isInvertColorsEnabl…
graytmatterMS Jun 19, 2020
ebc8370
Applying package update to 0.61.48 ***NO_CI***
rnbot Jun 19, 2020
d68e94b
Fix onSubmitEditing not being called on single-line TextInput (#458)
tido64 Jun 19, 2020
2803dc8
Align multi-line TextInput onSubmitEditing with Android (#463)
tido64 Jun 19, 2020
58949cb
Fix isSelected not being passed to FlatList.renderItem (#464)
tido64 Jun 19, 2020
c5458a7
Applying package update to 0.61.49 ***NO_CI***
rnbot Jun 19, 2020
374cef8
Fix RCTScrollContentView layout with fixed size (#453)
tido64 Jun 20, 2020
1c042d8
Applying package update to 0.61.50 ***NO_CI***
rnbot Jun 20, 2020
67527e1
Fixing OS specific failure in publish task (#469)
mganandraj Jun 23, 2020
68904a8
Applying package update to 0.61.51 ***NO_CI***
rnbot Jun 23, 2020
ecbff77
Fix overflow:'hidden' github issue #399 (attempt 2) (#457)
sahrens Jun 25, 2020
819cff0
Applying package update to 0.61.52 ***NO_CI***
rnbot Jun 25, 2020
6386729
Alleviate excessive layout jittering when resizing window (#439)
tido64 Jun 29, 2020
ed94fa0
Applying package update to 0.61.53 ***NO_CI***
rnbot Jun 29, 2020
3ee8ed2
Implemented AccessibilityInfo.announceForAccessibility (#470)
graytmatterMS Jun 30, 2020
0b3c3a8
Publish verification in PR job (#474)
mganandraj Jun 30, 2020
337d753
Applying package update to 0.61.54 ***NO_CI***
rnbot Jun 30, 2020
d7e8504
Merge branch 'publish-temp-1593536367695'
rnbot Jun 30, 2020
c04ca1b
Fix multiline TextInput crash when inserting/removing lots of text (#…
tido64 Jul 8, 2020
45aa5b3
Applying package update to 0.61.55 ***NO_CI***
rnbot Jul 8, 2020
9fe70d5
Fixed Images not announcing in VoiceOver (#475)
graytmatterMS Jul 14, 2020
ea78edd
Applying package update to 0.61.56 ***NO_CI***
rnbot Jul 14, 2020
d7ec297
Get react-native building with Xcode 12 universal (#504)
HeyImChris Jul 14, 2020
f78917f
Applying package update to 0.61.57 ***NO_CI***
rnbot Jul 14, 2020
a073278
Fixed Voiceover reading of Text (#476)
graytmatterMS Jul 15, 2020
fdcf227
Applying package update to 0.61.58 ***NO_CI***
rnbot Jul 15, 2020
6c83289
Enable fat binaries with arm64 and x86_64 support (#505)
HeyImChris Jul 16, 2020
317a3ae
Applying package update to 0.61.59 ***NO_CI***
rnbot Jul 16, 2020
4ee9c18
Fix onFocus/onBlur event bubbling (#506)
tom-un Jul 20, 2020
2df7c9d
Applying package update to 0.61.60 ***NO_CI***
rnbot Jul 20, 2020
0aa3efa
Fixes in the nuget spec to clear non-existing v8executor and a case s…
mganandraj Jul 21, 2020
79ca53b
Applying package update to 0.61.61 ***NO_CI***
rnbot Jul 21, 2020
40c5a66
Fix crash in NSLayoutManager during autorelease dealloc (#523)
tom-un Jul 28, 2020
26f1d06
Applying package update to 0.61.62 ***NO_CI***
rnbot Jul 28, 2020
3f1014b
Fixing publish script as the task argument uses wrong file path separ…
mganandraj Jul 29, 2020
3ea5e7d
Applying package update to 0.61.63 ***NO_CI***
rnbot Jul 29, 2020
072283d
Add issue templates for feature and module requests (#530)
harinikmsft Aug 4, 2020
220bf17
Applying package update to 0.61.64 ***NO_CI***
rnbot Aug 4, 2020
b2db9f0
Xcode12 beta4 compiler fixes (#534)
HeyImChris Aug 8, 2020
f10f1de
Applying package update to 0.61.65 ***NO_CI***
rnbot Aug 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 35 additions & 104 deletions .ado/android-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- job: AndroidRNPR
displayName: Android React Native PR
pool:
vmImage: vs2017-win2016
vmImage: ubuntu-18.04
timeoutInMinutes: 90 # how long to run the job before automatically cancelling
cancelTimeoutInMinutes: 5 # how much time to give 'run always even if cancelled tasks' before killing them
steps:
Expand All @@ -27,18 +27,27 @@ jobs:
submodules: recursive # set to 'true' for a single level of submodules or 'recursive' to get submodules of submodules
persistCredentials: false # set to 'true' to leave the OAuth token in the Git config after the initial fetch

- task: UseNode@1
inputs:
version: '12.x'

- template: templates/apple-droid-node-patching.yml
parameters:
apply_office_patches: true

- task: UseNode@1
# Install NuGet
- task: CmdLine@2
inputs:
version: '10.x'
script: mkdir $(System.DefaultWorkingDirectory)/nuget-bin/ && curl -o $(System.DefaultWorkingDirectory)/nuget-bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe


# Install NuGet v4.6.4+
- task: NuGetToolInstaller@1
# This is currently required as the command task (strangely) always runs elevated ..
# which makes all the files touched by the above patching step unreadable by following non-command tasks without sudo.
# This makes all the files readable.
- task: CmdLine@2
displayName: chmod
inputs:
versionSpec: '>=4.6.4'
script: chmod -R +r .

- task: CmdLine@2
displayName: "Rename package to react-native"
Expand All @@ -50,119 +59,41 @@ jobs:
inputs:
script: npm install

- task: NuGetCommand@2
displayName: NuGet restore
inputs:
command: restore
restoreSolution: ReactAndroid/packages.config
feedsToUse: config
#vstsFeed: # Required when feedsToUse == Select
#includeNuGetOrg: true # Required when feedsToUse == Select
nugetConfigPath: ReactAndroid/NuGet.Config
#externalFeedCredentials: # Optional
#noCache: false
#disableParallelProcessing: false
restoreDirectory: packages/
verbosityRestore: Detailed # Options: quiet, normal, detailed
#packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg' # Required when command == Push
#nuGetFeedType: 'internal' # Required when command == Push# Options: internal, external
#publishVstsFeed: # Required when command == Push && NuGetFeedType == Internal
#publishPackageMetadata: true # Optional
#allowPackageConflicts: # Optional
#publishFeedCredentials: # Required when command == Push && NuGetFeedType == External
#verbosityPush: 'Detailed' # Options: quiet, normal, detailed
#packagesToPack: '**/*.csproj' # Required when command == Pack
#configuration: '$(BuildConfiguration)' # Optional
#packDestination: '$(Build.ArtifactStagingDirectory)' # Optional
#versioningScheme: 'off' # Options: off, byPrereleaseNumber, byEnvVar, byBuildNumber
#includeReferencedProjects: false # Optional
#versionEnvVar: # Required when versioningScheme == ByEnvVar
#majorVersion: '1' # Required when versioningScheme == ByPrereleaseNumber
#minorVersion: '0' # Required when versioningScheme == ByPrereleaseNumber
#patchVersion: '0' # Required when versioningScheme == ByPrereleaseNumber
#packTimezone: 'utc' # Required when versioningScheme == ByPrereleaseNumber# Options: utc, local
#includeSymbols: false # Optional
#toolPackage: # Optional
#buildProperties: # Optional
#basePath: # Optional
#verbosityPack: 'Detailed' # Options: quiet, normal, detailed
#arguments: # Required when command == Custom

# - task: CmdLine@2
# displayName: Setup Build Dependencies
# inputs:
# script: .ado\setup_droid_deps.bat

- task: CmdLine@2
displayName: Remove RNTesterApp.android.bundle
inputs:
script: del RNTesterApp.android.bundle
script: rm -f RNTesterApp.android.bundle

- task: CmdLine@2
displayName: Create RNTester bundle
inputs:
script: node cli.js bundle --entry-file .\RNTester\js\RNTesterApp.android.js --bundle-output RNTesterApp.android.bundle --platform android
script: node cli.js bundle --entry-file ./RNTester/js/RNTesterApp.android.js --bundle-output RNTesterApp.android.bundle --platform android

- task: Gradle@1
- task: CmdLine@2
displayName: gradlew installArchives
# env:
# REACT_NATIVE_DEPENDENCIES: $(System.DefaultWorkingDirectory)\build_deps
inputs:
gradleWrapperFile: gradlew
# workingDirectory: src\react-native\
options: -Pparam="excludeLibs"
tasks: installArchives
publishJUnitResults: false
#testResultsFiles: '**/TEST-*.xml' # Required when publishJUnitResults == True
#testRunTitle: # Optional
#codeCoverageToolOption: 'None' # Optional. Options: none, cobertura, jaCoCo
#codeCoverageClassFilesDirectories: 'build/classes/main/' # Required when codeCoverageToolOption == False
#codeCoverageClassFilter: # Optional
#codeCoverageFailIfEmpty: false # Optional
#javaHomeOption: 'JDKVersion' # Options: jDKVersion, path
#jdkVersionOption: 'default' # Optional. Options: default, 1.11, 1.10, 1.9, 1.8, 1.7, 1.6
#jdkDirectory: # Required when javaHomeOption == Path
#jdkArchitectureOption: 'x64' # Optional. Options: x86, x64
#gradleOptions: '-Xmx1024m' # Optional
#sonarQubeRunAnalysis: false
#sqGradlePluginVersionChoice: 'specify' # Required when sonarQubeRunAnalysis == True# Options: specify, build
#sonarQubeGradlePluginVersion: '2.6.1' # Required when sonarQubeRunAnalysis == True && SqGradlePluginVersionChoice == Specify
#checkStyleRunAnalysis: false # Optional
#findBugsRunAnalysis: false # Optional
#pmdRunAnalysis: false # Optional
script: ./gradlew installArchives -Pparam="excludeLibs"

- template: templates\prep-android-nuget.yml

- task: NuGetCommand@2
# Very similar to the default pack task .. but appends 'ndk21' to the nuget pack version
- task: CmdLine@2
displayName: 'Verify NuGet can be packed'
inputs:
command: pack
packagesToPack: 'ReactAndroid/ReactAndroid.nuspec'
packDestination: '$(System.DefaultWorkingDirectory)'
buildProperties: buildNumber=$(buildNumber);commitId=$(Build.SourceVersion)
script: NDK=ndk`cat ${ANDROID_SDK_ROOT}/ndk-bundle/source.properties 2>&1 | grep Pkg.Revision | awk '{ print $3}' | awk -F. '{ print $1 }'`; mono $(System.DefaultWorkingDirectory)/nuget-bin/nuget.exe pack $(System.DefaultWorkingDirectory)/ReactAndroid/ReactAndroid.nuspec -OutputDirectory $(System.DefaultWorkingDirectory) -Properties buildNumber=$(buildNumber)-$NDK;commitId=$(Build.SourceVersion)

- task: Gradle@1
- task: CmdLine@2
displayName: 'Npm pack'
inputs:
script: node .ado/npmOfficePack.js --fake
env:
BUILD_STAGINGDIRECTORY: $(Build.StagingDirectory)
BUILD_SOURCESDIRECTORY: $(Build.SourcesDirectory)
BUILD_SOURCEBRANCH: $(Build.SourceBranch)
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
githubApiToken: $(githubApiToken)

- task: CmdLine@2
displayName: gradlew clean
inputs:
gradleWrapperFile: gradlew
# workingDirectory: src\
#options: # Optional
tasks: clean
publishJUnitResults: false
#testResultsFiles: '**/build/test-results/TEST-*.xml'
#testRunTitle: # Optional
#codeCoverageToolOption: 'None' # Optional. Options: none, cobertura, jaCoCo
#codeCoverageClassFilesDirectories: 'build/classes/main/' # Required when codeCoverageToolOption == False
#codeCoverageClassFilter: # Optional
#codeCoverageFailIfEmpty: false # Optional
#javaHomeOption: 'JDKVersion' # Options: jDKVersion, path
#jdkVersionOption: 'default' # Optional. Options: default, 1.11, 1.10, 1.9, 1.8, 1.7, 1.6
#jdkDirectory: # Required when javaHomeOption == Path
#jdkArchitectureOption: 'x64' # Optional. Options: x86, x64
#gradleOptions: '-Xmx1024m' # Optional
#sonarQubeRunAnalysis: false
#sqGradlePluginVersionChoice: 'specify' # Required when sonarQubeRunAnalysis == True# Options: specify, build
#sonarQubeGradlePluginVersion: '2.6.1' # Required when sonarQubeRunAnalysis == True && SqGradlePluginVersionChoice == Specify
#checkStyleRunAnalysis: false # Optional
#findBugsRunAnalysis: false # Optional
#pmdRunAnalysis: false # Optional
script: ./gradlew clean
28 changes: 28 additions & 0 deletions .ado/android_symlink_ndk.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
REM @if "%DEBUG%" == "" @echo off

REM Android tools doesn't support SDK/NDK paths containing space in it.
REM This scrip creates a symlink to Android NDK to work around the limitation.
REM We use the

set ANDROID_NDK_SYMLINK_PATH=c:\android_ndk_symlink__

REM 1. Try ANDROID_NDK environment variable
set ANDROID_NDK_PATH=%ANDROID_NDK%

REM 2. May be SDK has ndk-bundle in it.
IF "%ANDROID_NDK_PATH%"=="" set ANDROID_NDK_PATH=%ANDROID_home%\ndk-bundle

echo %ANDROID_NDK_PATH%

if exist %ANDROID_NDK_PATH% (
mklink /J %ANDROID_NDK_SYMLINK_PATH% "%ANDROID_NDK_PATH%"
goto :success
) else (
goto :error
)

:success
exit /b 0

:error
exit /b 1
20 changes: 16 additions & 4 deletions .ado/npmOfficePack.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ function exec(command) {
}
}

function doPublish() {
function doPublish(fakeMode) {
console.log(`Target branch to publish to: ${publishBranchName}`);

const {releaseVersion, branchVersionSuffix} = gatherVersionInfo()

const onlyTagSource = !!branchVersionSuffix;
if (!onlyTagSource) {
// -------- Generating Android Artifacts with JavaDoc
exec("gradlew installArchives");
exec(path.join(process.env.BUILD_SOURCESDIRECTORY, "gradlew") + " installArchives");

// undo uncommenting javadoc setting
exec("git checkout ReactAndroid/gradle.properties");
Expand All @@ -40,7 +40,19 @@ function doPublish() {
const npmTarPath = path.resolve(__dirname, '..', npmTarFileName);
const finalTarPath = path.join(process.env.BUILD_STAGINGDIRECTORY, 'final', npmTarFileName);
console.log(`Copying tar file ${npmTarPath} to: ${finalTarPath}`)
fs.copyFileSync(npmTarPath, finalTarPath);

if(fakeMode) {
if (!fs.existsSync(npmTarPath))
throw "The final artefact to be published is missing.";
} else {
fs.copyFileSync(npmTarPath, finalTarPath);
}
}

doPublish();
var args = process.argv.slice(2);

let fakeMode = false;
if (args.length > 0 && args[0] === '--fake')
fakeMode = true;

doPublish(fakeMode);
Loading