-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Adds Maven Support For Gradle Dependency [xx]
Summary: In order to easily include RN Sound in a brownfield project, this sets up the maven dependency generation. The maven files can then be referenced similary to how RN is referenced in that it no longer requires adding the native dependency to the node modules folder. Test plan: - verified generated maven files work as expected
- Loading branch information
1 parent
c7e933c
commit 18f99f2
Showing
18 changed files
with
163 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
README | ||
====== | ||
|
||
Steps before publishing a new version to npm: | ||
|
||
1. Be sure to have the Android [SDK](https://developer.android.com/studio/index.html) and [NDK](https://developer.android.com/ndk/guides/index.html) installed | ||
2. Be sure to have a `local.properties` file in this folder that points to the Android SDK and NDK | ||
``` | ||
ndk.dir=/Users/{username}/Library/Android/sdk/ndk-bundle | ||
sdk.dir=/Users/{username}/Library/Android/sdk | ||
``` | ||
3. Delete the `maven` folder | ||
4. Run `sudo ./gradlew installArchives` | ||
5. Verify that latest set of generated files is in the maven folder with the correct version number | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+22.8 KB
.../maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12-javadoc.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...en/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12-javadoc.jar.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
60106aaefd1651dfce923a4471716e21 |
1 change: 1 addition & 0 deletions
1
...n/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12-javadoc.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dd52b4d751cec99c67422ad6a7a4eba7d8d347e6 |
Binary file added
BIN
+4.12 KB
.../maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12-sources.jar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...en/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12-sources.jar.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1bcef3718951fc026eccd47926697f4d |
1 change: 1 addition & 0 deletions
1
...n/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12-sources.jar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2855b2257d3f4a718bd4863ca57a7cd9562091aa |
Binary file added
BIN
+11.3 KB
android/maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12.aar
Binary file not shown.
1 change: 1 addition & 0 deletions
1
android/maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12.aar.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
203e4fc952c468155bb4b9e689270736 |
1 change: 1 addition & 0 deletions
1
...oid/maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12.aar.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c48e14575bba63f2e3f271f0e56070745239a79d |
25 changes: 25 additions & 0 deletions
25
android/maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.zmxv.RNSound</groupId> | ||
<artifactId>react-native-sound</artifactId> | ||
<version>0.10.12</version> | ||
<packaging>aar</packaging> | ||
<name>React Native Sound</name> | ||
<description>React Native module for playing sound clips on iOS, Android, and Windows</description> | ||
<url>null</url> | ||
<licenses> | ||
<license> | ||
<name>MIT</name> | ||
<url>null/blob/master/null</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<developers> | ||
<developer> | ||
<id>zmxv</id> | ||
<name>Zhen Wang (http://blog.zmxv.com)</name> | ||
</developer> | ||
</developers> | ||
</project> |
1 change: 1 addition & 0 deletions
1
android/maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12.pom.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cc939039245e899b4bc7457de3c3e6cf |
1 change: 1 addition & 0 deletions
1
...oid/maven/com/zmxv/RNSound/react-native-sound/0.10.12/react-native-sound-0.10.12.pom.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
53f0cb9cfd309dfd902d2f6690f2d4b805db62f3 |
12 changes: 12 additions & 0 deletions
12
android/maven/com/zmxv/RNSound/react-native-sound/maven-metadata.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<metadata> | ||
<groupId>com.zmxv.RNSound</groupId> | ||
<artifactId>react-native-sound</artifactId> | ||
<versioning> | ||
<release>0.10.12</release> | ||
<versions> | ||
<version>0.10.12</version> | ||
</versions> | ||
<lastUpdated>20190614175543</lastUpdated> | ||
</versioning> | ||
</metadata> |
1 change: 1 addition & 0 deletions
1
android/maven/com/zmxv/RNSound/react-native-sound/maven-metadata.xml.md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
79e5fc5cdd7143aaabc5561945558b4c |
1 change: 1 addition & 0 deletions
1
android/maven/com/zmxv/RNSound/react-native-sound/maven-metadata.xml.sha1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e17070c134bc996b14a099b3f807b581da900a90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,15 @@ | |
"sound", | ||
"audio" | ||
], | ||
"author": "Zhen Wang <[email protected]> (http://blog.zmxv.com)", | ||
"author": { | ||
"name": "Zhen Wang (http://blog.zmxv.com)", | ||
"email": "[email protected]" | ||
}, | ||
"license": "MIT", | ||
"devDependencies": { | ||
"react-native": "0.59.9" | ||
}, | ||
"peerDependencies": { | ||
"react-native": ">=0.8.0" | ||
} | ||
} | ||
} |