-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(flagship): Make android namespace match package name
The namespace for native android code was always set to com.brandingbrand.reactnative.and.{config.name}, rather than using the defined ID. This lead to some issues with starting activities and imports. BREAKING CHANGE: If anything hard codes the android native project path (ie. android/app/src/main/java/com/brandingbrand/reactnative/and/project-name), it will need to be updated to account for the dynamic package name. Flagship now exports its own modules, so `flagship.path.android.nativeProjectPath(config)` can be used to get the directory without hard coding a path.
- Loading branch information
1 parent
42aa327
commit e53e362
Showing
16 changed files
with
169 additions
and
39 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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
...android/app/src/main/java/com/brandingbrand/reactnative/and/flagship/MainApplication.java
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.brandingbrand.reactnative.and.flagship; | ||
package CONFIG_BUNDLE_ID; | ||
|
||
import android.app.Application; | ||
|
||
|
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
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
2 changes: 1 addition & 1 deletion
2
.../src/main/java/com/brandingbrand/reactnative/and/flagship/ThreadSafeUIImplementation.java
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
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
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,33 @@ | ||
import * as android from './lib/android'; | ||
import * as cocoapods from './lib/cocoapods'; | ||
import * as deeplinking from './lib/deeplinking'; | ||
import * as env from './lib/env'; | ||
import * as fastlane from './lib/fastlane'; | ||
import * as fs from './lib/fs'; | ||
import * as ios from './lib/ios'; | ||
import * as link from './lib/link'; | ||
import * as modules from './lib/modules'; | ||
import * as nativeConstants from './lib/native-constants'; | ||
import * as os from './lib/os'; | ||
import * as path from './lib/path'; | ||
import * as rename from './lib/rename'; | ||
import * as version from './lib/version'; | ||
import * as web from './lib/web'; | ||
|
||
export { | ||
android, | ||
cocoapods, | ||
deeplinking, | ||
env, | ||
fastlane, | ||
fs, | ||
ios, | ||
link, | ||
modules, | ||
nativeConstants, | ||
os, | ||
path, | ||
rename, | ||
version, | ||
web | ||
}; |
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
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
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
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 |
---|---|---|
|
@@ -15952,7 +15952,36 @@ webpack-sources@^1.1.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1: | |
source-list-map "^2.0.0" | ||
source-map "~0.6.1" | ||
|
||
webpack@^4.16.5, webpack@^4.23.1: | ||
[email protected]: | ||
version "4.39.3" | ||
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.39.3.tgz#a02179d1032156b713b6ec2da7e0df9d037def50" | ||
integrity sha512-BXSI9M211JyCVc3JxHWDpze85CvjC842EvpRsVTc/d15YJGlox7GIDd38kJgWrb3ZluyvIjgenbLDMBQPDcxYQ== | ||
dependencies: | ||
"@webassemblyjs/ast" "1.8.5" | ||
"@webassemblyjs/helper-module-context" "1.8.5" | ||
"@webassemblyjs/wasm-edit" "1.8.5" | ||
"@webassemblyjs/wasm-parser" "1.8.5" | ||
acorn "^6.2.1" | ||
ajv "^6.10.2" | ||
ajv-keywords "^3.4.1" | ||
chrome-trace-event "^1.0.2" | ||
enhanced-resolve "^4.1.0" | ||
eslint-scope "^4.0.3" | ||
json-parse-better-errors "^1.0.2" | ||
loader-runner "^2.4.0" | ||
loader-utils "^1.2.3" | ||
memory-fs "^0.4.1" | ||
micromatch "^3.1.10" | ||
mkdirp "^0.5.1" | ||
neo-async "^2.6.1" | ||
node-libs-browser "^2.2.1" | ||
schema-utils "^1.0.0" | ||
tapable "^1.1.3" | ||
terser-webpack-plugin "^1.4.1" | ||
watchpack "^1.6.0" | ||
webpack-sources "^1.4.1" | ||
|
||
webpack@^4.23.1: | ||
version "4.39.1" | ||
resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.39.1.tgz#60ed9fb2b72cd60f26ea526c404d2a4cc97a1bd8" | ||
integrity sha512-/LAb2TJ2z+eVwisldp3dqTEoNhzp/TLCZlmZm3GGGAlnfIWDgOEE758j/9atklNLfRyhKbZTCOIoPqLJXeBLbQ== | ||
|