564 Commits

Author SHA1 Message Date
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
Dylan Vann
e08be5b66d Fix incorrect icon names in example. 2018-09-23 02:00:51 -04:00
Sam Oh
efd02a307d Add missing breaks in converter. 2018-09-23 01:56:53 -04:00
David Narbutovich
0f78b13d13 Remove unnecessary import. 2018-09-23 01:43:11 -04:00
Dylan Vann
47965fa952 v5.0.3 2018-08-23 13:45:12 -04:00
Dylan Vann
b504131083 Use supportLibVersion from ext. 2018-08-23 13:43:27 -04:00
Dylan Vann
93b59295ce Fix android build.gradle. 2018-08-23 13:36:25 -04:00
Dylan Vann
7a66b7ae05 v5.0.2 v5.0.2 2018-08-23 02:06:04 -04:00
Dylan Vann
111c3aab15 Fix tests. 2018-08-23 02:05:01 -04:00
Dylan Vann
7edb4544dd Update dependencies. 2018-08-23 01:51:05 -04:00
Dylan Vann
203aaa5ddb Update react native in example. 2018-08-23 01:19:45 -04:00
Dylan Vann
d4c04012f6 Update example. 2018-08-23 01:06:28 -04:00
Dylan Vann
642aa3ab7a v5.0.1 v5.0.1 2018-08-23 00:38:15 -04:00
Michael Lefkowitz
22541243d9 react-native link now targets react-native-fast-image (#264) 2018-08-23 00:36:10 -04:00
Dylan Vann
327205c0dc 5.0.0 v5.0.0 2018-08-22 23:28:51 -04:00
Martin Richter
d2c33a85ce Fix cache enum names in README (#251)
The `priority` attribute was probably a copy-paste error?
2018-08-22 23:23:47 -04:00
Ben Wildeman
d142379e6f make sure headers only accepts key value pairs (#229) 2018-08-22 23:23:03 -04:00