Skip to content

Commit c95c435

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

12 files changed

+512
-7
lines changed

LICENSE

Lines changed: 339 additions & 0 deletions
Large diffs are not rendered by default.

android/build.gradle

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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

Lines changed: 19 additions & 0 deletions
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";

0 commit comments

Comments
 (0)