File tree 12 files changed +512
-7
lines changed
src/main/java/com/norcod/rnovpn
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
+
1
20
apply plugin : ' com.android.library'
2
21
3
22
def 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
+
1
20
package com .norcod .rnovpn ;
2
21
3
22
import 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
+
1
20
package com .norcod .rnovpn ;
2
21
3
22
import 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
+
1
20
@import NetworkExtension;
2
21
@import OpenVPNAdapter;
3
22
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
+
1
20
#import " PacketTunnelProvider.h"
2
21
#import < NetworkExtension/NetworkExtension.h>
3
22
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
+
1
20
interface VpnOptions {
2
21
remoteAddress ?: string ;
3
22
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
+
1
20
import { NativeModules , NativeEventEmitter } from 'react-native' ;
2
21
3
22
const { 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
+
1
20
#import < React/RCTBridgeModule.h>
2
21
#import < React/RCTEventEmitter.h>
3
22
@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
+
1
20
#import " RNSimpleOpenvpn.h"
2
21
3
22
NSString *const RN_OPEN_VPN = @" RNSimpleOpenvpn" ;
Original file line number Diff line number Diff line change 28
28
"name" : " Nor Cod" ,
29
29
30
30
},
31
- "license" : " MIT " ,
31
+ "license" : " GPLv2 " ,
32
32
"licenseFilename" : " LICENSE" ,
33
33
"readmeFilename" : " README.md" ,
34
34
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ Pod::Spec.new do |s|
10
10
react-native-simple-openvpn
11
11
DESC
12
12
s . homepage = "https://github.com/ccnnde/react-native-simple-openvpn"
13
- # brief license entry:
14
- s . license = "MIT"
15
- # optional - use expanded license entry instead:
16
- # s.license = { :type => "MIT", :file => "LICENSE" }
13
+ s . license = { :type => "GPLv2" , :file => "LICENSE" }
17
14
s . authors = { "Nor Cod" => "[email protected] " }
18
15
s . platforms = { :ios => "9.0" }
19
16
s . source = { :git => "https://github.com/ccnnde/react-native-simple-openvpn.git" , :tag => "#{ s . version } " }
@@ -22,6 +19,4 @@ Pod::Spec.new do |s|
22
19
s . requires_arc = true
23
20
24
21
s . dependency "React"
25
- # ...
26
- # s.dependency "..."
27
22
end
You can’t perform that action at this time.
0 commit comments