Skip to content

Commit c95c435

Browse files
committed
🐳 chore: 添加 GPLv2 协议
1 parent 0abc2f8 commit c95c435

12 files changed

+512
-7
lines changed

LICENSE

+339
Large diffs are not rendered by default.

android/build.gradle

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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
apply plugin: 'com.android.library'
221

322
def DEFAULT_COMPILE_SDK_VERSION = 26

android/src/main/java/com/norcod/rnovpn/RNSimpleOpenvpnModule.java

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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
package com.norcod.rnovpn;
221

322
import static android.app.Activity.RESULT_OK;

android/src/main/java/com/norcod/rnovpn/RNSimpleOpenvpnPackage.java

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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
package com.norcod.rnovpn;
221

322
import com.facebook.react.ReactPackage;

apple/PacketTunnelProvider.h

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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

apple/PacketTunnelProvider.m

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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

index.d.ts

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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
interface VpnOptions {
221
remoteAddress?: string;
322
ovpnFileName?: string;

index.js

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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 { NativeModules, NativeEventEmitter } from 'react-native';
221

322
const { RNSimpleOpenvpn } = NativeModules;

ios/RNSimpleOpenvpn.h

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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;

ios/RNSimpleOpenvpn.m

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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

322
NSString *const RN_OPEN_VPN = @"RNSimpleOpenvpn";

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"name": "Nor Cod",
2929
"email": "[email protected]"
3030
},
31-
"license": "MIT",
31+
"license": "GPLv2",
3232
"licenseFilename": "LICENSE",
3333
"readmeFilename": "README.md",
3434
"devDependencies": {

react-native-simple-openvpn.podspec

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ Pod::Spec.new do |s|
1010
react-native-simple-openvpn
1111
DESC
1212
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" }
1714
s.authors = { "Nor Cod" => "[email protected]" }
1815
s.platforms = { :ios => "9.0" }
1916
s.source = { :git => "https://github.com/ccnnde/react-native-simple-openvpn.git", :tag => "#{s.version}" }
@@ -22,6 +19,4 @@ Pod::Spec.new do |s|
2219
s.requires_arc = true
2320

2421
s.dependency "React"
25-
# ...
26-
# s.dependency "..."
2722
end

0 commit comments

Comments
 (0)