File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/integrations/src Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ async function prepareAndroid({
26
26
slug
27
27
} : Context ) {
28
28
const identifier = slug ( '.' ) . toLowerCase ( )
29
- const classSlug = `${ slug ( ) } Integration`
30
29
const {
31
30
maven : {
32
31
repo = undefined ,
@@ -35,11 +34,11 @@ async function prepareAndroid({
35
34
) . toLowerCase ( ) } `,
36
35
version = '+@aar'
37
36
} = { } ,
38
- factory : {
39
- class : factoryClass = classSlug ,
40
- import : factoryImport = `com.segment.analytics.android.integrations.${ identifier } .${ classSlug } `
41
- } = { }
37
+ factory : { class : factoryClass = `${ slug ( ) } Integration` } = { }
42
38
} = android
39
+ const {
40
+ import : factoryImport = `com.segment.analytics.android.integrations.${ identifier } .${ factoryClass } `
41
+ } = android . factory || { }
43
42
const classpath = `com.segment.analytics.reactnative.integration.${ identifier } `
44
43
const dependency = `${ depName } :${ version } `
45
44
const root = 'android/src/main'
You can’t perform that action at this time.
0 commit comments