380 Commits

Author SHA1 Message Date
Dylan Vann
0d66f4cb06 Update example. 2018-11-13 23:10:46 -05:00
Felix Schindler
4cdee52a5e Change usage of compile to implementation in docs (gradle). (#332)
React Native bumped the version of the Android Gradle Plugin
to v3 which uses the newer Gradle dependency
configurations `implementation` and `api` which make `compile`
obsolete.
2018-11-13 12:47:18 -05:00
David Narbutovich(g)
a01f8d596f Add .idea/ to .npmignore. (#344) 2018-11-13 12:45:12 -05:00
tsrkalexandr
1ea804593b Fix file:// scheme on Android. (#345) 2018-11-13 12:41:15 -05:00
Dylan Vann
bb76325794 Update changelog. 2018-11-06 01:44:15 -05:00
Dylan Vann
a0e946c3a3 v5.1.0 v5.1.0 2018-11-06 01:43:35 -05:00
Dylan Vann
f547e55493
Update dependencies. (#341) 2018-11-06 01:38:46 -05:00
Dylan Vann
535f06b535 Update changelog. 2018-11-06 01:23:21 -05:00
Patrick Kempff
7859d5b6d9 Improve error message when bundled resource could not found. (#328)
A team member of mine spend a couple of hours debugging this error:
Couldn't find com.facebook.react.uimanager.annotations.ReactProp.source.

There was no clear indicator of what the underlaying problem was. As it turns out the error was caused by missing assets. To make sure other developers don't waste the same amount of time as we did, we improved the error message.
2018-11-06 01:16:31 -05:00
Dylan Vann
f8606a1f2e
Fix android photo library images not working. (#339) 2018-11-06 01:07:28 -05:00
Dylan Vann
01dac3b745
Upgrade example app. (#340) 2018-11-06 00:57:44 -05:00
Dylan Vann
fc0b620ca3 Update changelog. 2018-10-23 01:03:15 -04:00
Dylan Vann
47e36edc24
Fix local images in production builds. (#324)
* Revert changes to make yarn link work.

* Fixed local images in production builds.

This closes #273, closes #296, closes #246.

* Remove unused code and fix some warnings.
2018-10-23 00:58:35 -04:00
Dylan Vann
65ba0c47d6
Make yarn link work with example project. (#323) 2018-10-23 00:04:46 -04:00
Patrick Kempff
6967876773 Fixed crash where activity was already destroyed before react-native could cleanup view manager (#272) 2018-10-22 22:34:31 -04:00
Dylan Vann
43ac2c9ee4 Update changelog. 2018-10-21 20:56:30 -04:00
Dylan Vann
f40a6d4c4e Updated changelog. 2018-10-21 20:55:22 -04:00
David Narbutovich(g)
ba447531ac Fix flow types (#320) 2018-10-21 20:50:47 -04:00
Patrick Kempff
8f702ed1d9 Fixed crash where activity was already destroyed before react-native could cleanup view manager 2018-10-21 20:37:16 -04:00
Dylan Vann
1443a1a50e
Upgrade dependencies. (#316) 2018-10-16 00:07:51 -04:00
Dylan Vann
b7a2762629
Add release notes for 5.0.11. (#315) 2018-10-15 23:54:42 -04:00
Dylan Vann
accbf24392
Add a changelog. (#313) 2018-10-15 00:44:58 -04:00
Dylan Vann
d44a4edbbf Fix CircleCI caching. 2018-10-15 00:36:56 -04:00
Dylan Vann
038e94e637 Add caching on CircleCI. 2018-10-14 23:14:03 -04:00
Dylan Vann
069d71bc55 v5.0.11 v5.0.11 2018-10-14 18:51:25 -04:00
Dylan Vann
7ffc841ed8
Fix cacheControl property in TypeScript types. (#310) 2018-10-14 18:49:30 -04:00
Dylan Vann
3b4c6fb23f
Upgrade examples. (#309) 2018-10-14 17:18:35 -04:00
Dylan Vann
82a3aeaf28 Upgrade dependencies. 2018-10-13 14:41:42 -04:00
Lucas Vieira
0ef7231018 Fix typo for source.cache in docs.
Thanks to https://github.com/DylanVann/react-native-fast-image/issues/274#issuecomment-418719314 for pointing this out
2018-10-13 14:33:12 -04:00
Dylan Vann
af83017267 v5.0.10 2018-09-23 19:45:25 -04:00
Dylan Vann
ff2d22750b Remove unused dependency. 2018-09-23 19:43:50 -04:00
Dylan Vann
d1fdfea001 Upgrade dependencies. 2018-09-23 19:42:02 -04:00
Dylan Vann
c0a784a683 Install dependencies and add example code. 2018-09-23 19:26:37 -04:00
Dylan Vann
e68fe53fbe Replace with clean examples. 2018-09-23 18:24:06 -04:00
Dylan Vann
c2aa88dd17 v5.0.9 2018-09-23 17:57:53 -04:00
(◕ᴥ◕)
75a6ce766c Handle null view.glideUrl. 2018-09-23 17:54:24 -04:00
Dylan Vann
8289548674 v5.0.8 2018-09-23 17:31:19 -04:00
David Narbutovich
0087b6c7ca Add config files to .npmignore. 2018-09-23 17:29:10 -04:00
David Narbutovich
11c7e9e865 Add Flow type definitions.
* Add flow definitions

* Fix export default
2018-09-23 17:27:57 -04:00
Dylan Vann
e66d7e0b1f Remove unused import in TypeScript types. 2018-09-23 17:25:30 -04:00
David Narbutovich
c265c7a79a Fix TypeScript types for fallback. 2018-09-23 17:12:34 -04:00
Dylan Vann
845ae631d5 v5.0.7 2018-09-23 17:06:14 -04:00
Emanuel Quimper
0c7e323ef0 Add cache enum types. 2018-09-23 17:02:13 -04:00
Laurin Quast
b8c82c7d5e Allow overwriting imageContainer styles.
Closes #286
2018-09-23 17:00:41 -04:00
Dylan Vann
b18728db84 v5.0.5 2018-09-23 16:42:15 -04:00
Dylan Vann
a3b581014d Fix build.gradle. 2018-09-23 16:36:46 -04:00
Danish
649e9a8edf Update obsolete compile to implementation and Exclude app dependencies from test configurations (#250)
FIRST OF ALL, I am using this package from npm so I saw that the git repo one commit ahead that is this one f31a44fc07 (diff-7ae5a9093507568eabbf35c3b0665732) where you upgrade to glide 4 with progress listeners. I couldn't submit PR for the version I am using from NPM. so as of now explain of this PR is as follow:


As React native 0.56.0 is released with MAJOR android changes such as:

-Gradle 3.5.1
-Compile using Android SDK 26
-Google Maven repo
-etc

more about Change log, specially of Android Here, https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#android-projects-are-now-compiled-using-the-android-26-sdk
and https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#android-specific-changes

Aslo as Per Google new "Google Play's target API level requirement", mentioned here  https://developer.android.com/distribute/best-practices/develop/target-sdk

"Google Play will require that new apps target at least Android 8.0 (API level 26) from August 1, 2018, and that app updates target Android 8.0 from November 1, 2018."

It's clear that Android would be moving to new Gradle and new SDK changes, Thus creating a new type of error that is:

"Configuration 'compile' is obsolete and has been replaced with 'implementation' or 'Api'" 

more about the Old and new configuration please see this https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration?utm_source=android-studio#new_configurations 
at the heading of "Use the new dependency configurations"

Therefore, all old "compile" should be now "implementation" or "provided" should be "compileOnly"

I have tested the with "compile" and "implementation" in my current release ready product and also by "renaming" "compile" to "implementation".
Also tested with higher andorid SDK configs such as of below:

```
ext {
    buildToolsVersion = "27.0.3"
    minSdkVersion = 19
    compileSdkVersion = 27
    targetSdkVersion = 27
    supportLibVersion = "27.1.1"
}
```

so SDK 27 was also compiled successully. test on Android phone with ADK 23 all looks good. Thus, `react-native-fast-image` was working just fine as intended. thank you so much for this package btw.

Therefore, Please would it be possible to merge as i am sure many new projects and old one are going to update specially Gradle and SDK as of Google new requirements. 

related mention of Upgrading issue mention here https://github.com/facebook/react-native/issues/20273#issuecomment-405959030


Moreover, if someone still have any issue after upgrading everything successfully, then he should use following in build.gradle under `andorid/build.gradle`

```

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 27
                buildToolsVersion '27.0.3'
                supportLibVersion = "27.1.1"
            }
        }
    }
}
```


PS: as of exclude part in your build.grade, I am not 100% it will work for example mine app has something like this

compile project((':react-native-maps')) {
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
compile 'com.google.android.gms:play-services-base:10.0.1'
compile 'com.google.android.gms:play-services-maps:10.0.1'


after converting this to


implementation project(':react-native-maps')
 android.testVariants.all { variant ->
        variant.getCompileConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-base'
        variant.getRuntimeConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-base'

        variant.getCompileConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-maps'
        variant.getCompileConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'


everything is working fine for me. so please have a look for your just in case.
2018-09-23 16:33:31 -04:00
Danish
5d973a8cec Update obsolete compile to implementation and Exclude app dependencies from test configurations.
FIRST OF ALL, I am using this package from npm so I saw that the git repo one commit ahead that is this one f31a44fc07 (diff-7ae5a9093507568eabbf35c3b0665732) where you upgrade to glide 4 with progress listeners. I couldn't submit PR for the version I am using from NPM. so as of now explain of this PR is as follow:

As React native 0.56.0 is released with MAJOR android changes such as:

-Gradle 3.5.1
-Compile using Android SDK 26
-Google Maven repo
-etc

more about Change log, specially of Android Here, https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#android-projects-are-now-compiled-using-the-android-26-sdk
and https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#android-specific-changes

Aslo as Per Google new "Google Play's target API level requirement", mentioned here  https://developer.android.com/distribute/best-practices/develop/target-sdk

"Google Play will require that new apps target at least Android 8.0 (API level 26) from August 1, 2018, and that app updates target Android 8.0 from November 1, 2018."

It's clear that Android would be moving to new Gradle and new SDK changes, Thus creating a new type of error that is:

"Configuration 'compile' is obsolete and has been replaced with 'implementation' or 'Api'"

more about the Old and new configuration please see this https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration?utm_source=android-studio#new_configurations
at the heading of "Use the new dependency configurations"

Therefore, all old "compile" should be now "implementation" or "provided" should be "compileOnly"

I have tested the with "compile" and "implementation" in my current release ready product and also by "renaming" "compile" to "implementation".
Also tested with higher andorid SDK configs such as of below:

```
ext {
    buildToolsVersion = "27.0.3"
    minSdkVersion = 19
    compileSdkVersion = 27
    targetSdkVersion = 27
    supportLibVersion = "27.1.1"
}
```

so SDK 27 was also compiled successully. test on Android phone with ADK 23 all looks good. Thus, `react-native-fast-image` was working just fine as intended. thank you so much for this package btw.

Therefore, Please would it be possible to merge as i am sure many new projects and old one are going to update specially Gradle and SDK as of Google new requirements.

related mention of Upgrading issue mention here https://github.com/facebook/react-native/issues/20273#issuecomment-405959030

Moreover, if someone still have any issue after upgrading everything successfully, then he should use following in build.gradle under `andorid/build.gradle`

```

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 27
                buildToolsVersion '27.0.3'
                supportLibVersion = "27.1.1"
            }
        }
    }
}
```

PS: as of exclude part in your build.grade, I am not 100% it will work for example mine app has something like this

compile project((':react-native-maps')) {
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
compile 'com.google.android.gms:play-services-base:10.0.1'
compile 'com.google.android.gms:play-services-maps:10.0.1'

after converting this to

implementation project(':react-native-maps')
 android.testVariants.all { variant ->
        variant.getCompileConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-base'
        variant.getRuntimeConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-base'

        variant.getCompileConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-maps'
        variant.getCompileConfiguration().exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'

everything is working fine for me. so please have a look for your just in case.
2018-09-23 16:28:34 -04:00
Dylan Vann
6a2fb83b3e Remove incorrect focusedName prop. 2018-09-23 15:30:37 -04:00
Dylan Vann
52b85ec577 v5.0.4 2018-09-23 15:13:50 -04:00