File tree Expand file tree Collapse file tree 5 files changed +16
-3
lines changed
packages/share/android/src
main/java/net/mjstudio/rnkakao/share Expand file tree Collapse file tree 5 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ The `package.json` file contains various scripts for common tasks:
4141- ` old ` : convert example project to old architecture
4242- ` new:pod ` : convert example project to new architecture with pod install
4343- ` old:pod ` : convert example project to old architecture with pod install
44+ - ` old:clean ` : convert example project to old architecture with clean project, pod install
45+ - ` new:clean ` : convert example project to old architecture with clean project, pod install
4446
4547** Codegen**
4648
Original file line number Diff line number Diff line change 4444 "new:pod" : " script/arch-convert.sh true true" ,
4545 "old" : " script/arch-convert.sh false false" ,
4646 "new" : " script/arch-convert.sh true false" ,
47+ "old:clean" : " script/arch-convert.sh true false true" ,
48+ "new:clean" : " script/arch-convert.sh true false true" ,
4749 "codegen:android" : " cd example/android && ./gradlew generateCodegenArtifactsFromSchema" ,
4850 "codegen:ios" : " node node_modules/react-native/scripts/generate-codegen-artifacts.js --path example/ --outputPath example/ios" ,
4951 "codegen" : " yarn codegen:android && yarn codegen:ios"
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class RNCKakaoShareModule internal constructor(context: ReactApplicationContext)
1919
2020 @ReactMethod
2121 override fun shareCustom (
22- templateId : Int ,
22+ templateId : Double ,
2323 useWebBrowserIfKakaoTalkNotAvailable : Boolean ,
2424 templateArgs : ReadableMap ? ,
2525 serverCallbackArgs : ReadableMap ? ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import com.facebook.react.bridge.ReadableMap
88abstract class KakaoShareSpec internal constructor(context : ReactApplicationContext ) :
99 ReactContextBaseJavaModule (context) {
1010 abstract fun shareCustom (
11- templateId : Int ,
11+ templateId : Double ,
1212 useWebBrowserIfKakaoTalkNotAvailable : Boolean ,
1313 templateArgs : ReadableMap ? ,
1414 serverCallbackArgs : ReadableMap ? ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ PROPERTY="newArchEnabled"
66# New value from first command line argument
77NEW_VALUE=" $1 "
88POD=" $2 "
9+ CLEAN=" $3 "
910
1011# Validate new value is either "true" or "false"
1112if [ " ${NEW_VALUE} " != " true" ] && [ " ${NEW_VALUE} " != " false" ]; then
@@ -26,6 +27,10 @@ JSON="example/app.json"
2627sed -i ' ' -e " s/\" newArchEnabled\" : true/\" newArchEnabled\" : ${NEW_VALUE} /g" $JSON
2728sed -i ' ' -e " s/\" newArchEnabled\" : false/\" newArchEnabled\" : ${NEW_VALUE} /g" $JSON
2829
30+ if [[ $CLEAN == ' true' ]]; then
31+ yes | yarn gen:android:clean
32+ yes | yarn gen:ios:clean
33+ else
2934yarn gen:android
3035yarn gen:ios
3136
@@ -35,4 +40,8 @@ if [[ $NEW_VALUE == 'true' ]]; then
3540else
3641 yarn pod:old
3742fi
38- fi
43+ fi
44+ fi
45+
46+
47+
You can’t perform that action at this time.
0 commit comments