Commit Graph

33 Commits

Author SHA1 Message Date
Wojciech Lewicki
98c14b4f45 chore: add CI for JS, iOS and Android formatting (#1782)
Added CI workflow and local pre-commit hook for formatting and linting the newly added JS, iOS and Android code.
2022-08-16 12:00:32 +02:00
Wojciech Lewicki
77267be5fc feat: support Fabric on Android (#1804)
Most of Android changes for Fabric and bump of FabricExample to RN 0.69.2. iOS and JS changes are available in #1821.
The most notable change on Android is adding methods to components that accept String values of each NumberProp instead of Dynamic. Another change is changed structure of RenderableViewManager.java since we needed to abstract methods that belong only to components inheriting from VirtualView in order to be able to properly override them in their children.
2022-08-12 11:42:44 +02:00
Mrinal Maheshwari
39c8332f4d Adding mavenCentral() as jcenter() is shutting (#1570)
Adding mavenCentral() as jcenter() is shutting down
2022-02-25 14:21:56 +01:00
SaeedZhiany
b893785014 bumped AGP to 3.6.1 and removed buildToolsVersion 2020-03-02 14:59:22 +03:30
SaeedZhiany
81252b8249 Refactored Gradle setup
- moved safeExtGet to out of `buildscript` block, because it's no longer needed to be there (previously we needed it there for getting AGP version from root project)

- bumped AGP version to 3.5.3

- replace `${safeExtGet('reactnativeVersion', '+')}` with `+`, becase react-native version automatically resolved by npm and it does not need to handle using `safeExtGet`
2020-02-11 15:36:28 +03:30
SaeedZhiany
d3b2f27e22 Load Android Gradle Plugin conditionally 2019-10-21 09:11:01 +03:30
SaeedZhiany
44ff4da5a0 Update build.gradle
Fixed android build failure
2019-08-05 02:15:22 +03:00
SaeedZhiany
c999cd6acd Update build.gradle
get react-native version from root project
2019-08-05 02:15:22 +03:00
SaeedZhiany
4bc3890a55 Update build.gradle
read android gradle plugin version from root project
2019-08-05 02:15:22 +03:00
Mikael Sand
7e8d7428f3 Fix gradle 2019-06-09 13:07:41 +03:00
SaeedZhiany
d32b661e7b Merge branch 'master' into patch-1 2019-05-01 17:22:42 +04:30
SaeedZhiany
f0223ab881 Update build.gradle
Upgrade android gradle plugin to latest version
2019-02-13 08:26:34 +03:30
Mikael Sand
b4c8985b81 Sync version used in build.gradle with react-native master
Add gradleBuildTools configuration to override gradle classpath
2019-02-11 15:34:10 +02:00
jesse
81f483aaf5 add google for build gradle repository 2018-12-09 07:19:36 +02:00
Abdulaziz Ghuloum
a82d4876b3 upgraded gradle to 3.2.1 2018-12-09 07:19:11 +02:00
Mikael Sand
69e9fcde14 Use Android SDK 27 2018-11-17 04:12:52 +02:00
Mikael Sand
e48dbdb08b bump android gradle build tools to 3.1.4 2018-11-17 04:08:29 +02:00
Mikael Sand
349c3b3367 Rebase pull request #807 from agustin107/master
Update README.md, changing dependency configuration for Android platform
2018-10-12 16:04:59 +03:00
colorfulberry
62a72e12ac Update build.gradle
compile should instead implemention
2018-07-27 17:21:30 +08:00
Mikael Sand
890d4d9d45 Merge remote-tracking branch 'yeomann/patch-1' 2018-07-26 23:53:26 +03:00
Danish
22bdfa930e Update obsolete compile to implemenation
Hi, 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-svg` was working just fine as intended. thank you so much for this package btw. Love this package so much :)

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"
            }
        }
    }
}
```
2018-07-19 20:28:05 +03:00
Reza
89ae631c95 upgrade SDK Build Tools 2018-07-06 01:10:42 +04:30
Mikael Sand
1c12e4bd04 Align SDK and gradle with react-native init
Remove com.android.support:appcompat-v7 dependency (less version issues)
Copy PaintCompat.hasGlyph implementation verbatim.
It is the only really needed part.

Minimize issues for beginners and make first experience maximally smooth
2018-02-03 20:52:49 +02:00
Mikael Sand
a77d104a51 Fix linting and gradle 3.0.1 compatibility 2018-01-19 17:53:08 +02:00
Hem Brahmbhatt
20ea2d9bb5 Upgrade build tools (#492) 2017-11-23 13:48:31 -08:00
Mikael Sand
b38ae08e9c Add com.android.support:appcompat-v7:25.3.1 to dependencies.
Set SDK version to latest stable with available sources.
2017-08-03 21:46:01 +03:00
Mikael Sand
553c17794e Implement support for multi-letter ligatures.
Typographic ligature: In writing and typography, a ligature occurs where two or more graphemes or letters are joined as a single glyph.
Optimize kerning and advance widths calculation using Paint.getTextWidths(String text, float[] widths);
Make strokeWidth numberProp instead of string.
Fix caching of AlignmentBaseline.
Rename distance to pathLength.
Upgrade gradle build tools.
2017-08-03 21:35:30 +03:00
Mikael Sand
7994070c41 Upgrade com.android.tools.build:gradle to 2.3.2 and buildToolsVersion to 26 2017-07-22 03:13:57 +03:00
Mikael Sand
3960a11c21 Fix code inspection / analysis warnings.
Update sdk, build tools, gradle, and target sdk version.
2017-07-21 02:41:54 +03:00
Lucas Bento
47a79d392a Change SDK Build Tools version 2017-03-16 14:25:50 -03:00
Nhat
a1424bcb52 Upgrade gradle to match the version in react native.
Change url of react native repository so that it loads the correct local version.
2016-07-08 17:32:19 +07:00
Horcrux
677bbbe408 change package names 2016-04-20 13:06:31 +08:00
Horcrux
7c288b0005 Android get rid of ART dependency 2016-04-20 12:52:35 +08:00