Skip to content

Commit

Permalink
Update SETTING_ANDROID.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kjh5833 authored Nov 15, 2021
1 parent 0691743 commit ab902ae
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions manuals/SETTING_ANDROID.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,13 @@
아임포트 캐패시터 모듈 안드로이드 설정 안내입니다.

### 1. 아임포트 모듈 추가하기
`MainActivity.java` 파일(adnorid/app/src/main/java/[...]에 위치)에 아임포트 캐패시터 모듈을 아래와 같이 추가해주세요.
capacitor v3 부터는 BridgeActivity를 통해 플러그인 추가 할 필요가 없습니다.
https://capacitorjs.com/docs/updating/3-0#switch-to-automatic-android-plugin-loading

```java
...
import kr.iamport.capacitor.IamportCapacitor;

public class MainActivity extends BridgeActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
...
add(IamportCapacitor.class); // 아임포트 캐패시터 모듈 추가
}});
}
}
```

Expand All @@ -38,4 +29,4 @@ public class MainActivity extends BridgeActivity {
...
</application>
</manifest>
```
```

0 comments on commit ab902ae

Please sign in to comment.