Commit Graph

347 Commits

Author SHA1 Message Date
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 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 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 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
Dylan Vann 9fae3bf697 Upgrade dependencies. 2018-08-19 23:29:26 -04:00
Dylan Vann 05830ad8a7 Add docs for fallback prop. 2018-06-14 22:45:32 -04:00
Dylan Vann 23055db62b Add docs for cache prop. 2018-06-14 22:43:44 -04:00
Dylan Vann 9f422c4a74 Add cache control for Android. 2018-06-14 22:40:10 -04:00
Dylan Vann cf9a595ee9 Add cache control for iOS. 2018-06-13 23:47:10 -04:00
Dylan Vann 30a2ff7909 Add fallback option. 2018-06-13 20:34:30 -04:00
Dylan Vann 400232767b Add example of auto sizing. 2018-06-09 23:38:24 -04:00
Dylan Vann 5221ae90eb Update react-native in example. 2018-06-09 22:50:19 -04:00
Dylan Vann b6719920f3 Formatting. 2018-06-09 22:15:36 -04:00
Dylan Vann fddee2c583
Show local images.
Show local images on iOS and Android.
2018-06-09 22:12:56 -04:00
Patrick Kempff 6e0e6f8f2b Fixed memory leaks (#214) 2018-06-07 23:22:57 -04:00
Dylan Vann b1ca4fe6b6 Use https. 2018-06-07 23:22:41 -04:00
Dylan Vann ad2c48ea1d Update email. 2018-06-07 15:21:25 -04:00
Shintaro Morikawa e5838165b6 Specify type definition file path (#216) 2018-06-05 00:18:08 -04:00
Dylan Vann 5bb18c71d0 Ignore more files, 829.5 kB. 2018-05-24 13:00:36 -04:00
Dylan Vann 0ad0669488 Use jest config file. 2018-05-24 12:30:28 -04:00
Dylan Vann 01d52e4363 More refactoring. 2018-05-24 12:24:47 -04:00