File tree Expand file tree Collapse file tree 12 files changed +512
-7
lines changed
src/main/java/com/norcod/rnovpn Expand file tree Collapse file tree 12 files changed +512
-7
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120apply plugin : ' com.android.library'
221
322def DEFAULT_COMPILE_SDK_VERSION = 26
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120package com .norcod .rnovpn ;
221
322import static android .app .Activity .RESULT_OK ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120package com .norcod .rnovpn ;
221
322import com .facebook .react .ReactPackage ;
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120@import NetworkExtension;
221@import OpenVPNAdapter;
322
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120#import " PacketTunnelProvider.h"
221#import < NetworkExtension/NetworkExtension.h>
322
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120interface VpnOptions {
221 remoteAddress ?: string ;
322 ovpnFileName ?: string ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120import { NativeModules , NativeEventEmitter } from 'react-native' ;
221
322const { RNSimpleOpenvpn } = NativeModules ;
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120#import < React/RCTBridgeModule.h>
221#import < React/RCTEventEmitter.h>
322@import NetworkExtension;
Original file line number Diff line number Diff line change 1+ /* *
2+ * Copyright (C) 2021 Nor Cod
3+ *
4+ * This file is part of react-native-simple-openvpn.
5+ *
6+ * react-native-simple-openvpn is free software: you can redistribute it and/or modify
7+ * it under the terms of the GNU General Public License as published by
8+ * the Free Software Foundation, either version 2 of the License, or
9+ * (at your option) any later version.
10+ *
11+ * react-native-simple-openvpn is distributed in the hope that it will be useful,
12+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+ * GNU General Public License for more details.
15+ *
16+ * You should have received a copy of the GNU General Public License
17+ * along with react-native-simple-openvpn. If not, see <http://www.gnu.org/licenses/>.
18+ */
19+
120#import " RNSimpleOpenvpn.h"
221
322NSString *const RN_OPEN_VPN = @" RNSimpleOpenvpn" ;
You can’t perform that action at this time.
0 commit comments