Skip to content

Commit

Permalink
Fixes Error: more than one library with package name 'com.reactlibrar…
Browse files Browse the repository at this point in the history
…y' issue.
  • Loading branch information
a7ul committed Dec 26, 2017
1 parent db43163 commit 49de295
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Nothing to be done here ( its pure JS for IOS ;) )

1. Open up `android/app/src/main/java/[...]/MainActivity.java`

- Add `import com.reactlibrary.RNAppstoreVersionCheckerPackage;` to the imports at the top of the file
- Add `import com.masteratul.RNAppstoreVersionCheckerPackage;` to the imports at the top of the file
- Add `new RNAppstoreVersionCheckerPackage()` to the list returned by the `getPackages()` method

2. Append the following lines to `android/settings.gradle`:
Expand Down
3 changes: 1 addition & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.reactlibrary">
package="com.masteratul">

</manifest>

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

package com.reactlibrary;
package com.masteratul;

import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactApplicationContext;
Expand Down Expand Up @@ -36,4 +36,4 @@ public void appVersionExtractor(
}

}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

package com.reactlibrary;
package com.masteratul;

import java.util.Arrays;
import java.util.Collections;
Expand All @@ -25,4 +25,4 @@ public List<Class<? extends JavaScriptModule>> createJSModules() {
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-appstore-version-checker",
"version": "2.0.0",
"version": "2.2.0",
"description": "A react native module to find the app version on play store and ios app store",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 49de295

Please sign in to comment.