Update README.md
This commit is contained in:
Родитель
6d43e78740
Коммит
9c64a3457a
|
@ -1,5 +1,4 @@
|
||||||
The sample uses openweathermap.org free subscription rest API to demonstrate the Bolts usage. Please register for free and use the token generated from https://home.openweathermap.org/users/sign_up and replace it with apiKey placeholder in the Constants.m file
|
The sample uses openweathermap.org free subscription rest API to demonstrate the Bolts usage. Please register for free and use the token generated from https://home.openweathermap.org/users/sign_up and replace it with apiKey placeholder in the Constants.m file
|
||||||
|
|
||||||
This project uses bolts as a dependency.When you first clone the repo if you have included ‘--recursive’ skip the next statement. Else
|
This project uses bolts as a dependency.When you first clone the repo if you have included ‘--recursive’ skip the next statement. Else
|
||||||
Navigate to samples root directory and run the ‘git submodule update --init --recursive’ git command.
|
Navigate to samples root directory and run the ‘git submodule update --init --recursive’ git command.
|
||||||
|
|
||||||
|
@ -21,7 +20,7 @@ This happens because I see a different implementations for pThread on Winobjc. s
|
||||||
|
|
||||||
go to your Bolts dependency in the solution and navigate to Bolts/Bolts/Common/BFExecutor.m file. change the below method implementation like this.
|
go to your Bolts dependency in the solution and navigate to Bolts/Bolts/Common/BFExecutor.m file. change the below method implementation like this.
|
||||||
|
|
||||||
'''Objective-c
|
```Objective-c
|
||||||
__attribute__((noinline)) static size_t remaining_stack_size(size_t *restrict totalSize) {
|
__attribute__((noinline)) static size_t remaining_stack_size(size_t *restrict totalSize) {
|
||||||
|
|
||||||
pthread_t currentThread = pthread_self();
|
pthread_t currentThread = pthread_self();
|
||||||
|
@ -42,11 +41,12 @@ __attribute__((noinline)) static size_t remaining_stack_size(size_t *restrict to
|
||||||
return (*totalSize) - (endStack - frameAddr);
|
return (*totalSize) - (endStack - frameAddr);
|
||||||
|
|
||||||
}
|
}
|
||||||
'''
|
```
|
||||||
|
|
||||||
|
```Objective-c
|
||||||
2) go to your Bolts dependency in the solution and navigate to Bolts/Public Headers/Bolts.h file. change the line in import statements like this.
|
2) go to your Bolts dependency in the solution and navigate to Bolts/Public Headers/Bolts.h file. change the line in import statements like this.
|
||||||
#if __has_include(<Bolts/BFAppLink.h>) && WINOBJC && !TARGET_OS_WATCH && !TARGET_OS_TV
|
#if __has_include(<Bolts/BFAppLink.h>) && WINOBJC && !TARGET_OS_WATCH && !TARGET_OS_TV
|
||||||
|
```
|
||||||
|
|
||||||
Now Build and run the sample on to simulator.
|
Now Build and run the sample on to simulator.
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче