File tree Expand file tree Collapse file tree 3 files changed +12
-25
lines changed
apps/AEPSampleApp/extensions
android/src/main/java/com/adobe/marketing/mobile/reactnative/places Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ const ViewTypes = {
3333 content : 1 ,
3434} ;
3535
36- const TARGET_OFFER_TYPE_TEXT = 'text/plain' ;
3736const TARGET_OFFER_TYPE_JSON = 'application/json' ;
3837const TARGET_OFFER_TYPE_HTML = 'text/html' ;
3938
@@ -113,26 +112,14 @@ export default ({navigation}: any) => {
113112 setImageProposition ( propositions . get ( decisionScopeImage . getName ( ) ) ) ;
114113 setHtmlProposition ( propositions . get ( decisionScopeHtml . getName ( ) ) ) ;
115114 setJsonProposition ( propositions . get ( decisionScopeJson . getName ( ) ) ) ;
116- setTargetProposition (
117- propositions . get ( decisionScopeTargetMbox . getName ( ) ) ,
118- ) ;
115+ setTargetProposition ( propositions . get ( decisionScopeTargetMbox . getName ( ) ) ) ;
119116 }
120117 } ,
121118 } ) ;
122119
123120 const renderTargetOffer = ( ) => {
124121 if ( targetProposition ?. items ) {
125- if ( targetProposition . items [ 0 ] . format === TARGET_OFFER_TYPE_TEXT ) {
126- return (
127- < Text
128- style = { { margin : 10 , fontSize : 18 } }
129- onPress = { ( ) => {
130- targetProposition ?. items [ 0 ] . tapped ( targetProposition ) ;
131- } } >
132- { targetProposition . items [ 0 ] . content }
133- </ Text >
134- ) ;
135- } else if ( targetProposition . items [ 0 ] . format === TARGET_OFFER_TYPE_JSON ) {
122+ if ( targetProposition . items [ 0 ] . format === TARGET_OFFER_TYPE_JSON ) {
136123 return (
137124 < Text
138125 style = { { margin : 10 , fontSize : 18 } }
Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ public class RCTAEPPlacesDataBridge {
2929
3030
3131 // @{link PlacesAuthorizationStatus}
32- public final static String AEP_PLACES_AUTH_STATUS_DENIED = "AEP_PLACES_AUTH_STATUS_DENIED " ;
33- public final static String AEP_PLACES_AUTH_STATUS_ALWAYS = "AEP_PLACES_AUTH_STATUS_ALWAYS " ;
34- public final static String AEP_PLACES_AUTH_STATUS_UNKNOWN = "AEP_PLACES_AUTH_STATUS_UNKNOWN " ;
35- public final static String AEP_PLACES_AUTH_STATUS_RESTRICTED = "AEP_PLACES_AUTH_STATUS_RESTRICTED " ;
36- public final static String AEP_PLACES_AUTH_STATUS_WHEN_IN_USE = "AEP_PLACES_AUTH_STATUS_WHEN_IN_USE " ;
32+ public final static String AEP_PLACES_AUTH_STATUS_DENIED = "PLACES_AUTH_STATUS_DENIED " ;
33+ public final static String AEP_PLACES_AUTH_STATUS_ALWAYS = "PLACES_AUTH_STATUS_ALWAYS " ;
34+ public final static String AEP_PLACES_AUTH_STATUS_UNKNOWN = "PLACES_AUTH_STATUS_UNKNOWN " ;
35+ public final static String AEP_PLACES_AUTH_STATUS_RESTRICTED = "PLACES_AUTH_STATUS_RESTRICTED " ;
36+ public final static String AEP_PLACES_AUTH_STATUS_WHEN_IN_USE = "PLACES_AUTH_STATUS_WHEN_IN_USE " ;
3737
3838 // Location
3939 private final static String AEP_PLACES_LOCATION_LATITUDE = "latitude" ;
Original file line number Diff line number Diff line change 1515
1616// @{link PlacesAuthorizationStatus}
1717static NSString *const AEP_PLACES_AUTH_STATUS_DENIED =
18- @" AEP_PLACES_AUTH_STATUS_DENIED " ;
18+ @" PLACES_AUTH_STATUS_DENIED " ;
1919static NSString *const AEP_PLACES_AUTH_STATUS_ALWAYS =
20- @" AEP_PLACES_AUTH_STATUS_ALWAYS " ;
20+ @" PLACES_AUTH_STATUS_ALWAYS " ;
2121static NSString *const AEP_PLACES_AUTH_STATUS_UNKNOWN =
22- @" AEP_PLACES_AUTH_STATUS_UNKNOWN " ;
22+ @" PLACES_AUTH_STATUS_UNKNOWN " ;
2323static NSString *const AEP_PLACES_AUTH_STATUS_RESTRICTED =
24- @" AEP_PLACES_AUTH_STATUS_RESTRICTED " ;
24+ @" PLACES_AUTH_STATUS_RESTRICTED " ;
2525static NSString *const AEP_PLACES_AUTH_STATUS_WHEN_IN_USE =
26- @" AEP_PLACES_AUTH_STATUS_WHEN_IN_USE " ;
26+ @" PLACES_AUTH_STATUS_WHEN_IN_USE " ;
2727
2828// Location
2929static NSString *const LOCATION_LATITUDE = @" latitude" ;
You can’t perform that action at this time.
0 commit comments